No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cm-help.en.txt 363KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360
  1. == CMD_DESCRIPTION_ACCESS_TOKEN ==
  2. Allows the user to manage Access Tokens.
  3. == CMD_USAGE_ACCESS_TOKEN ==
  4. Usage:
  5. cm ^accesstoken <command> [options]
  6. Commands:
  7. - ^create
  8. - ^list
  9. - ^reveal
  10. - ^revoke
  11. To get more information about each command run:
  12. cm ^accesstoken <command> --^usage
  13. cm ^accesstoken <command> --^help
  14. == CMD_HELP_ACCESS_TOKEN ==
  15. Examples:
  16. cm ^accesstoken ^create "To be used by the Build Server"
  17. cm ^accesstoken ^list
  18. cm ^accesstoken ^reveal 19c57d0f-c525-4767-8670-82f7ecc2ccdb
  19. cm ^accesstoken ^revoke 19c57d0f-c525-4767-8670-82f7ecc2ccdb
  20. == CMD_DESCRIPTION_ACCESS_TOKEN_CREATE ==
  21. Creates a new access token.
  22. == CMD_USAGE_ACCESS_TOKEN_CREATE ==
  23. Usage:
  24. cm ^accesstoken ^create <description> [<repserverspec>]
  25. [--^format=<str_format>] [--dateformat=<str_date_format>]
  26. description A description that helps identify the purpose
  27. of the access token.
  28. repserverspec Repository server specification.
  29. (Use 'cm ^help ^objectspec' to learn more about rep server
  30. specs.)
  31. --^format Retrieves the output message in a specific format. See
  32. Remarks for more info.
  33. --^dateformat Sets the output format to print dates.
  34. == CMD_HELP_ACCESS_TOKEN_CREATE ==
  35. Remarks:
  36. The access token lifespan will be determined by the server configuration.
  37. It is not possible to set the token lifespan at creation time.
  38. Output format parameters (--^format option):
  39. This command accepts a format string to show the output.
  40. The output parameters of this command are the following:
  41. {^id} | {0} ID of the access token.
  42. {^description} | {1} Description of the access token.
  43. {^owner} | {2} Owner of the access token.
  44. {^creationdate} | {3} Creation date of the access token.
  45. {^expirationdate} | {4} Expiration date of the access token.
  46. {^lastusedate} | {5} Last use date of the access token.
  47. {^tab} Inserts a tab space.
  48. {^newline} Inserts a new line.
  49. If the format parameter is not specified, the output will be printed
  50. using a table format.
  51. Examples:
  52. cm ^accesstoken ^create "Token for Build Server"
  53. (Creates a new access token with the provided description against the default
  54. repserver.)
  55. cm ^accesstoken ^create "Token for Build Server" skull:8087
  56. (Creates a new access token with the provided description on repserver skull:8087.)
  57. cm ^accesstoken ^create "Token for Build Server" --^format="{^id}"
  58. (Creates a new access token with the provided description against the default
  59. repserver and only displays its ID.)
  60. == CMD_DESCRIPTION_ACCESS_TOKEN_LIST ==
  61. Lists access tokens.
  62. == CMD_USAGE_ACCESS_TOKEN_LIST ==
  63. Usage:
  64. cm ^accesstoken ^list [<repserverspec>]
  65. [--^format=<str_format>] [--^dateformat=<str_date_format>]
  66. repserverspec Repository server specification.
  67. (Use 'cm ^help ^objectspec' to learn more about rep server
  68. specs.)
  69. --^format Retrieves the output message in a specific format. See
  70. Remarks for more info.
  71. --^dateformat Sets the output format to print dates.
  72. == CMD_HELP_ACCESS_TOKEN_LIST ==
  73. Remarks:
  74. You can only list your own access tokens. Revoked access tokens will not be
  75. returned as part of the result. On the other hand, expired access tokens will.
  76. Output format parameters (--^format option):
  77. This command accepts a format string to show the output.
  78. The output parameters of this command are the following:
  79. {^id} | {0} ID of the access token.
  80. {^description} | {1} Description of the access token.
  81. {^owner} | {2} Owner of the access token.
  82. {^creationdate} | {3} Creation date of the access token.
  83. {^expirationdate} | {4} Expiration date of the access token.
  84. {^lastusedate} | {5} Last use date of the access token.
  85. {^tab} Inserts a tab space.
  86. {^newline} Inserts a new line.
  87. If the format parameter is not specified, the output will be printed
  88. using a table format.
  89. Examples:
  90. cm ^accesstoken ^list
  91. (Lists access tokens on the default repserver.)
  92. cm ^accesstoken ^list skull:8087
  93. (Lists access tokens on repserver skull:8087.)
  94. cm ^accesstoken ^list --^format="{^id}"
  95. (Lists access tokens on the default repserver and only displays their IDs.)
  96. == CMD_DESCRIPTION_ACCESS_TOKEN_REVOKE ==
  97. Revokes an existing access token.
  98. == CMD_USAGE_ACCESS_TOKEN_REVOKE ==
  99. Usage:
  100. cm ^accesstoken ^revoke <id> [<repserverspec>]
  101. id The ID of the access token to be revoked.
  102. repserverspec Repository server specification.
  103. (Use 'cm ^help ^objectspec' to learn more about rep server
  104. specs.)
  105. == CMD_HELP_ACCESS_TOKEN_REVOKE ==
  106. Remarks:
  107. You can only revoke your own access tokens. Trying to revoke an access token
  108. that does not exist or does not belong to you will result in an error.
  109. (See '^cm ^accesstoken ^list --^help' for further information.)
  110. To revoke an access token you need to provide the full ID.
  111. Revoking an access token does not mean that the already revealed Unity VCS
  112. tokens will stop functioning immediately.
  113. The maximum amount of time that can pass between revoking an access token
  114. and the revealed Unity VCS token stopping working depends on the
  115. 'TokenExpirationTimeSpan' configuration key in your server.conf.
  116. By default, it is 1 hour.
  117. If you need to know the exact value configured for your Unity VCS server,
  118. please contact your repository server administrator.
  119. (See '^cm ^accesstoken ^reveal --^help' for further information.)
  120. Examples:
  121. cm ^accesstoken ^revoke de0be8a4-2a7a-44c6-9c4c-82c8222dbc6f
  122. (Revokes the access token with the provided ID from the default repserver.)
  123. cm ^accesstoken ^revoke de0be8a4-2a7a-44c6-9c4c-82c8222dbc6f skull:8087
  124. (Revokes the access token with the provided ID from repserver skull:8087.)
  125. == CMD_DESCRIPTION_ACCESS_TOKEN_REVEAL ==
  126. Reveals an access token so it can be used as the authentication credentials.
  127. == CMD_USAGE_ACCESS_TOKEN_REVEAL ==
  128. Usage:
  129. cm ^accesstoken ^reveal <id> [<repserverspec>]
  130. id The ID of the access token to be revealed.
  131. repserverspec Repository server specification.
  132. (Use 'cm ^help ^objectspec' to learn more about rep server
  133. specs.)
  134. == CMD_HELP_ACCESS_TOKEN_REVEAL ==
  135. Remarks:
  136. You can only reveal your own access tokens. Trying to reveal an access token
  137. that does not exist or does not belong to you will result in an error.
  138. (See '^cm ^accesstoken ^list --^help' for further information.)
  139. To reveal an access token you need to provide the full ID.
  140. The revealed token can be used for automation purposes. You can pass it down
  141. in subsequent 'cm' commands (either in the same machine or a different one)
  142. by using the following 'cm' arguments (replace accordingly):
  143. $ cm ^repo ^list \
  144. --^username=^Peter \
  145. --^workingmode=^OIDCWorkingMode \
  146. --^token="the revealed token" \
  147. --^server=skull:8087
  148. The revealed token will be valid from the very moment it was revealed, and
  149. will be automatically renewed as long as the related access token is not
  150. expired nor revoked.
  151. Examples:
  152. cm ^accesstoken ^reveal d2f43753-f612-4e51-b9b4-3c2883d7cf95
  153. (Reveals the access token with the provided ID on the default repserver.)
  154. cm ^accesstoken ^reveal d2f43753-f612-4e51-b9b4-3c2883d7cf95 skull:8087
  155. (Reveals the access token with the provided ID on repserver skull:8087.)
  156. == CMD_DESCRIPTION_ACL ==
  157. Sets permissions on an object.
  158. == CMD_USAGE_ACL ==
  159. Usage:
  160. cm ^acl (--^user=<usr_name> | --^group=<group_name>)
  161. (-^allowed|-^denied|-^overrideallowed|-^overridedenied=+|-<permission>[,...])[,...]
  162. <objectspec>
  163. Options:
  164. --^user User name.
  165. --^group Group name.
  166. -^allowed Enables the specified permission or permissions. Use a
  167. comma to separate permissions. (Use 'cm ^showpermissions'
  168. to display all the available permissions.)
  169. -^denied Denies the specified permission or permission. Use a
  170. comma to separate permissions. (Use 'cm ^showpermissions'
  171. to display all the available permissions.)
  172. -^overrideallowed Overrides the allowed permission or permissions. Use a
  173. comma to separate permissions. (Use 'cm ^showpermissions'
  174. to display all the available permissions.)
  175. -^overridedenied Overrides the denied permission or permissions. Use a
  176. comma to separate permissions. (Use 'cm ^showpermissions'
  177. to display all the available permissions.)
  178. objectspec The object whose permissions will be set.
  179. The valid objects for this command are:
  180. repserver, repository, branch, label, and attribute.
  181. (Use 'cm ^help ^objectspec' to learn more about specs.)
  182. Special usage for secured paths:
  183. cm ^acl [(--^user=<usr_name> | --^group=<group_name>)
  184. (-^allowed|-^denied|-^overrideallowed|-^overridedenied=+|-<permission>[,...])[,...]]
  185. [--^delete] [--^branches=[+ | -]<branch>[,...]]
  186. <spec>
  187. --^delete Removes a secured path.
  188. See Remarks for more info.
  189. --^branches Sets the secured path permissions to a group of branches.
  190. Use a comma to separate branches.
  191. Optionally, each branch can be preceded by the + or -
  192. sign to specify whether a branch must be added or deleted
  193. to the list when editing.
  194. See Remarks for more info.
  195. spec The secured path where to set the permissions.
  196. == CMD_HELP_ACL ==
  197. Configuring permissions requires understanding how Unity VCS security works.
  198. Check the Security Guide to learn how permissions work:
  199. https://www.plasticscm.com/download/help/securityguide
  200. Remarks:
  201. This command sets permissions for a user or group on the specified objects,
  202. repositories, branches, labels and/or server paths.
  203. Object specs:
  204. (Use 'cm ^help ^objectspec' to learn how to specify objects.)
  205. The '^acl' command uses a special type of spec: secured paths.
  206. Secured paths specs: ^path:server_path[#tag]
  207. Examples:
  208. - ^path:/src/foo.c
  209. - ^path:/doc/pdf
  210. - ^path:/doc/pdf#documents
  211. Permission action:
  212. Use -^allowed and -^denied to specify what permissions to set.
  213. Use -^overrideallowed and -^overridedenied arguments to specify what
  214. permissions to override.
  215. Each action requires a permission list separated by commas.
  216. Permission names:
  217. Each permission name is preceded by + or - symbol.
  218. The + symbol sets the permission and the - symbol clears it.
  219. To see the permissions of an object, use the 'cm ^showacl' command.
  220. Overridden permissions:
  221. Overriding a permission using -^overrideallowed and -^overridedenied
  222. allows you to bypass inheritance.
  223. It is helpful to bypass permissions set at the repository or server
  224. level.
  225. Example:
  226. cm ^acl --^user=vio -^allowed=+^ci -^overrideallowed=+^ci ^br:qa@test
  227. (Allows user 'vio' to checkin on the branch 'qa' on repo 'test'
  228. even if she has the permission denied at the repo level.)
  229. Server path permissions (a.k.a. secured paths):
  230. - It is possible to specify permissions for a given server path.
  231. - These permissions are checked during the checkin operation.
  232. - These permissions can also be checked during the update operation,
  233. and can be used as a way to prevent certain directories and files to
  234. be downloaded to the workspace.
  235. - For every item to checkin, the server tries to match the item path
  236. with a secured path. If it matches, the checkin operation checks
  237. whether the item has permissions to be checked in.
  238. The permissions that can be defined for a secured path are the
  239. following:
  240. '^ci', '^change', '^add', '^move', '^rm', '^read'
  241. If the permissions check is not successful for any of the involved
  242. items, the checkin operation will be rolled back.
  243. To set secured path permissions to a group of branches, use the
  244. --^branches option.
  245. Example:
  246. cm ^acl --^user=jo -^denied=+^ci ^path:/src#rule0 --^branches=main,main/rel0
  247. To edit the ACL associated to the secured path, the tag is useful.
  248. Example:
  249. cm ^acl --^user=jo -^denied=+^rm ^path:/src#rule0
  250. (Without the tag, the list of branches would need to be specified
  251. again.)
  252. The list of branches of the secured path can be edited.
  253. Example:
  254. cm ^acl ^path:/src#rule0 --^branches=-main,+main/rel1
  255. (Removes 'main' from the list and adds 'main/rel1'.)
  256. To remove a secured path, use the --^delete argument.
  257. Example:
  258. cm ^acl --^user=jo --^delete ^path:/src#rule0
  259. Inheritance:
  260. Inheritance is an option that comes from the days of Plastic SCM 3.0.
  261. It is advanced, but almost deprecated.
  262. It lets an object inherit its permissions from any other object,
  263. overriding the default inheritance relationships.
  264. Use the option -^cut to cut the inheritance chain.
  265. Use the option -^cutncpy to cut and copy the current inherited
  266. permissions. (This is inspired on the Windows filesystem permissions
  267. where you can cut inheritance but retain the actual permissions.)
  268. The -^inherit option allows the user to inherit from an object spec.
  269. Example: '-^inherit=object_spec'
  270. Examples:
  271. cm ^acl --^user=danipen -^denied=+^ci ^rep:core
  272. (Denies checkin for user 'danipen' on repo 'core'.)
  273. cm ^acl --^group=developers -^allowed=+^view,-^read -^denied=+^chgperm ^br:main
  274. (The command grants view permission, clears read permission,
  275. and denies chgperm permission to 'developers' group in 'main' branch.)
  276. Secured path examples:
  277. cm ^acl --^group=devs -^denied=+^ci ^path:/server#rel --^branches=main,main/2.0
  278. (The command denies the checkin permission to 'devs' group for any path
  279. that matches '/server' in the branches 'main' and 'main/2.0'. The tag '#rel'
  280. is created to be able to refer to it later.)
  281. cm ^acl ^path:/server#rel --^branches=-/main,+/main/Rel2.1
  282. (Updates the secured path '/server' whose tag is 'rel', removing the
  283. 'main' branch and adding the branch 'main/Rel2.1' to the branch
  284. group the secured path applies to. Considering the previous example,
  285. now the branches list will contain 'main/Rel2.1' and 'main/2.0'.)
  286. cm ^acl --^user=vsanchezm -^allowed=-^read -^overrideallowed=+^read ^path:/doc
  287. (Removes '^read' permission to 'vsanchezm' overriding it in '/doc' path.)
  288. == CMD_DESCRIPTION_ACTIVATEUSER ==
  289. Activates a licensed user.
  290. == CMD_USAGE_ACTIVATEUSER ==
  291. Usage:
  292. cm ^activateuser | ^au <user-name>[ ...] [--^server=<rep-server-spec>]
  293. Options:
  294. --^server=<rep-server-spec> Activates the user in the specified server.
  295. If no server is specified, executes the command
  296. in the default server in the client.conf file.
  297. (Use 'cm ^help ^objectspec' to learn more about
  298. repserver specs.)
  299. user-name The user name or user names to activate. Use double quotes (" ")
  300. to specify user names containing spaces. Use a whitespace to
  301. separate user names.
  302. == CMD_HELP_ACTIVATEUSER ==
  303. Remarks:
  304. To activate a user, it must have been previously deactivated.
  305. By default, a user is activated the first time they perform a write
  306. operation in Unity VCS. The user is automatically activated only if
  307. the maximum number of users has not been exceeded.
  308. (See the 'cm ^help ^deactivateuser' command for more information about
  309. deactivating Unity VCS users.)
  310. Examples:
  311. cm ^activateuser john
  312. cm ^activateuser david "mary collins"
  313. cm ^au peter --^server=localhost:8087
  314. == CMD_DESCRIPTION_ADD ==
  315. Adds an item to version control.
  316. == CMD_USAGE_ADD ==
  317. Usage:
  318. cm ^add [-^R | -^r | --^recursive] [--^silent] [--^ignorefailed]
  319. [--^skipcontentcheck] [--^coparent] [--^filetypes=<file>] [--^noinfo]
  320. [--^format=<str-format>] [--^errorformat=<str-format>]
  321. <item-path>[ ...]
  322. Options:
  323. -^R | -^r | --^recursive Adds items recursively.
  324. --^silent Does not show any output.
  325. --^ignorefailed If an item cannot be added, the add operation will
  326. continue without it. Note: If a directory cannot be
  327. added, its content is not added.
  328. --^skipcontentcheck When the extension is not enough to set the file as
  329. text or binary, it will be set as binary instead of
  330. checking the content to detect the type. This is done
  331. to increase performance on huge checkins.
  332. --^coparent Runs a checkout of the parent of the item being added.
  333. --^filetypes The filetypes file to use. Check the following link for
  334. more information:
  335. http://blog.plasticscm.com/2008/03/custom-file-types.html
  336. --^noinfo Doesn't print progress information.
  337. --^format Retrieves the output message in a specific format. Check
  338. the examples for more information.
  339. --^errorformat Retrieves the error message (if any) in a specific
  340. format. Check the examples for more information.
  341. item-path The item or items to add. Use double quotes (" ") to specify
  342. paths containing spaces. Use a whitespace to separate items.
  343. Use * to add all the contents of the current directory.
  344. == CMD_HELP_ADD ==
  345. Remarks:
  346. Requirements to add items:
  347. - The parent directory of the item to add must have been previously added.
  348. Reading input from stdin:
  349. The '^add' command can read paths from stdin. To do this, pass a single dash
  350. "-".
  351. Example:
  352. cm ^add -
  353. Paths will be read until an empty line is entered.
  354. This allows you to use pipe to specify which files to add.
  355. Example:
  356. dir /S /B *.c | cm ^add -
  357. (In Windows, adds all .c files in the workspace.)
  358. Examples:
  359. cm ^add file1.txt file2.txt
  360. (Adds 'file1.txt' and 'file2.txt' items.)
  361. cm ^add c:\workspace\file.txt
  362. (Adds 'file.txt' item in path 'c:\workspace'.)
  363. cm ^add -^R c:\workspace\src
  364. (Recursively adds 'src'.)
  365. cm ^add -^R *
  366. (Recursively adds all the contents of the current directory.)
  367. cm ^add -^R * --^filetypes=filetypes.conf
  368. (Recursively adds all the contents of the current directory, using
  369. 'filetypes.conf' to assign a type to each file based on its extension,
  370. instead of checking its content.)
  371. cm ^add --^coparent c:\workspace\dir\file.txt
  372. (Adds 'file.txt' to source control, and performs a checkout of 'dir'.)
  373. cm ^add -^R * --^format="ADD {0}" --^errorformat="ERR {0}"
  374. (Recursively adds all the contents of the current directory, printing
  375. '^ADD <item>' for successfully added files, and '^ERR <item>' for items that
  376. could not be added.)
  377. == CMD_DESCRIPTION_ADMIN ==
  378. Executes administrative commands on the server.
  379. == CMD_USAGE_ADMIN ==
  380. Usage:
  381. cm ^admin <command> [options]
  382. Commands:
  383. - ^readonly
  384. To get more information about each command run:
  385. cm ^admin <command> --^usage
  386. cm ^admin <command> --^help
  387. == CMD_HELP_ADMIN ==
  388. Remarks:
  389. Only the server administrator can execute administrative commands.
  390. Examples:
  391. cm ^admin ^readonly ^enter
  392. cm ^admin ^readonly ^status
  393. == CMD_DESCRIPTION_ADMIN_READONLY ==
  394. Enables/disables the server readonly mode.
  395. == CMD_USAGE_ADMIN_READONLY ==
  396. Usage:
  397. cm ^admin ^readonly (^enter | ^leave | ^status) [<server>]
  398. Options:
  399. ^enter The server enters read-only mode. Write operations will be rejected.
  400. ^leave The server leaves read-only mode.
  401. ^status Shows the server read-only mode status.
  402. server Executes the command in the specified server (server:port). (Use
  403. 'cm ^help ^objectspec' to learn more about server specs.)
  404. If no server is specified, the command works with the server of the
  405. current workspace.
  406. If the current path is not in a workspace, the command works with
  407. the default server defined in the client.conf config file.
  408. == CMD_HELP_ADMIN_READONLY ==
  409. Remarks:
  410. Only the server administrator can enter the server readonly mode.
  411. Examples:
  412. cm ^admin ^readonly ^enter diana:8086
  413. cm ^admin ^readonly ^leave
  414. == CMD_DESCRIPTION_ANNOTATE ==
  415. Shows the changeset where each line of a file was last modified and its author.
  416. == CMD_USAGE_ANNOTATE ==
  417. Usage:
  418. cm ^annotate | ^blame <spec>[ ...]
  419. [--^format=<str_format>]
  420. [--^comparisonmethod=(^ignoreeol | ^ignorewhitespaces
  421. | ^ignoreeolandwhitespaces | ^recognizeall)]
  422. [--^dateformat=<str_date_format>]
  423. [--^encoding=<name>]
  424. [--^stats]
  425. [--^repository=<repspec>]
  426. Options:
  427. --^format Retrieves the output message in a specific format. See
  428. Remarks for more info.
  429. --^comparisonmethod Sets the specified comparison method. See Remarks for more info.
  430. --^dateformat Sets the output format to print dates.
  431. --^encoding Specifies the output encoding, i.e.: utf-8.
  432. See the MSDN documentation at
  433. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  434. to get the table of supported encodings and its format,
  435. (at the end of the page, in the "Name" column).
  436. --^stats Shows statistics information.
  437. --^repository Specifies a repository spec used to calculate
  438. the annotations. By default, this command uses the
  439. repository where the loaded revision repository in the
  440. workspace is stored. (Use 'cm ^help ^objectspec' to learn
  441. more about repspecs.)
  442. spec The spec of the file to annotate.
  443. (Use 'cm ^help ^objectspec' to learn more about specs.)
  444. Use double quotes (" ") to specify paths containing spaces.
  445. == CMD_HELP_ANNOTATE ==
  446. Remarks:
  447. Binary files can't be annotated.
  448. Comparison methods (--^comparisonmethod option):
  449. - ^ignoreeol Ignores the end of line differences.
  450. - ^ignorewhitespaces Ignores the whitespace differences.
  451. - ^ignoreeolandwhitespaces Ignores the end of line and whitespace differences.
  452. - ^recognizeall Detects the end of line and whitespace differences.
  453. Output format parameters (--^format option):
  454. This command accepts a format string to show the output.
  455. The output parameters of this command are the following:
  456. - {^owner} User who changed the line the last time.
  457. - {^rev} Source revision specification of the line.
  458. - {^content} Line content.
  459. - {^date} Date when the line was checked in.
  460. - {^comment} Comment of the source revision of the line.
  461. - {^changeset} Changeset of the source revision of the line.
  462. - {^line} Line number of the file.
  463. - {^id} Item id.
  464. - {^parentid} Parent id of the item.
  465. - {^rep} Repository of the item.
  466. - {^branch} Branch of the source revision of the line.
  467. - {^ismergerev} Whether the revision of the line was created in a merge.
  468. Date format parameters (--^dateformat):
  469. To specify the output format in which dates will be printed.
  470. See the supported formats specified at:
  471. https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings
  472. Repository specification (--^repository):
  473. To retrieve data from a remote repository. Useful for distributed
  474. scenarios.
  475. Examples:
  476. cm ^blame c:\workspace\src --^comparisonmethod=^ignoreeolandwhitespaces --^encoding=utf-8
  477. cm ^annotate c:\workspace\file.txt --^comparisonmethod=^ignoreeol
  478. cm ^annotate c:\workspace\file.txt --^format="{^owner} {^date, 10} {^content}"
  479. (Writes the owner field, then a blank, then the date field (aligned to
  480. right), then a blank, and the content.)
  481. cm ^blame c:\workspace\file.txt --^format="{^owner, -7} {^comment} {^date}" \
  482. --^dateformat=yyyyMMdd
  483. (Writes the owner field in 7 spaces (aligned to the left) followed by
  484. a blank, then the comment, followed by another blank, and ending with the
  485. formatted date (for example, 20170329).)
  486. cm ^annotate c:\workspace\file.txt --^repository=centralRep@myserver:8084
  487. cm ^blame ^serverpath:/src/client/checkin/Checkin.cs#^cs:73666
  488. (Annotates the file starting in changeset 73666 using a server path.)
  489. == CMD_DESCRIPTION_APPLYLOCAL ==
  490. Checks for local changes (locally moved, locally deleted, and locally changed)
  491. and applies them, so that Unity VCS starts tracking those changes.
  492. == CMD_USAGE_APPLYLOCAL ==
  493. Usage:
  494. cm ^applylocal | ^al [--^dependencies] [<item_path>[ ...]]
  495. [--^machinereadable [--^startlineseparator=<sep>]
  496. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  497. Options:
  498. --^dependencies Adds local change dependencies into the items to
  499. apply.
  500. item_path Items to be applied. Use a whitespace to separate
  501. paths. Use double quotes (" ") to specify paths
  502. containing spaces.
  503. --^machinereadable Outputs the result in an easy-to-parse format.
  504. --^startlineseparator Used with the '--^machinereadable' flag, specifies how
  505. the lines should start.
  506. --^endlineseparator Used with the '--^machinereadable' flag, specifies how
  507. the lines should end.
  508. --^fieldseparator Used with the '--^machinereadable' flag, specifies how
  509. the fields should be separated.
  510. == CMD_HELP_APPLYLOCAL ==
  511. Remarks:
  512. - If --^dependencies and <item_path> are not specified, the operation involves
  513. all the local changes in the workspace.
  514. - It is always applied recursively from the given path.
  515. Examples:
  516. cm ^applylocal foo.c bar.c
  517. cm ^applylocal .
  518. (Applies all local changes in the current directory.)
  519. cm ^applylocal
  520. (Applies all local changes in the workspace.)
  521. cm ^applylocal --^machinereadable
  522. (Applies all local changes in the workspace, and prints the result in a
  523. simplified, easier-to-parse format.)
  524. cm ^applylocal --^machinereadable --^startlineseparator=">" \
  525. --^endlineseparator="<" --^fieldseparator=","
  526. (Applies all local changes in the workspace, and prints the result in a
  527. simplified, easier-to-parse format, starting and ending the lines and
  528. separating the fields with the specified strings.)
  529. == CMD_DESCRIPTION_ARCHIVE ==
  530. Archives data in external storage.
  531. == CMD_USAGE_ARCHIVE ==
  532. Usage:
  533. cm ^archive | ^arch <revspec>[ ...] [-^c=<str_comment>]
  534. [--^file=<base_file>]
  535. (Extracts data from the repository and stores it on external storage.)
  536. cm ^archive | ^arch <revspec>[ ...] --^restore
  537. (Restores previously archived revisions back into the repository.)
  538. Options:
  539. -^c Sets a comment in the archive storage files to create.
  540. --^file Name prefix and (optional) path for the new archive
  541. data files.
  542. --^restore Restores previously archived data from generated archive
  543. files. The external storage location and the
  544. externaldata.conf file must be available at the moment
  545. of the revision restoration. See Remarks for more
  546. information.
  547. revspec One or more revision specs. (Use 'cm ^help ^objectspec'
  548. to learn more about revspecs.)
  549. == CMD_HELP_ARCHIVE ==
  550. Remarks:
  551. This command extracts data from the repository database and store it on
  552. external storage, saving database space.
  553. The command can also restore (--^restore) previously archived revisions back
  554. into the repository database.
  555. Use 'cm ^help ^objectspec' to learn how to specify a revspec.
  556. The user running this command must be the Unity VCS server administrator
  557. (repository server owner) to be allowed to complete the operation.
  558. Every data segment from the specified revisions will be stored in a
  559. different file, with a name starting with the value defined by the --^file
  560. argument. This argument can contain either a full path value including a
  561. prefix for future archive files or just this prefix value.
  562. Once archived, the data from the specified revisions will be accessible in
  563. two ways:
  564. 1. From the client: The client will detect if the data was archived and it
  565. will prompt the user to enter the location of the files.
  566. Users can configure the external data location by creating a file named
  567. externaldata.conf (at the standard configuration files locations, using
  568. the same rules that apply for the client.conf file) containing the paths
  569. where archived data have been located.
  570. 2. From the server: This way users won't have to know whether the data was
  571. archived or not, since requests will be transparently resolved by the
  572. server. To do so, the administrator will create a file called
  573. externaldata.conf in the server directory and will fill it with the
  574. paths where the archived volumes are.
  575. To unarchive (restore) a revision (or set of revisions), the archived
  576. files must be accessible from the client. Hence, it is not possible to
  577. unarchive data being resolved by the server (method 2) because the client
  578. will not be able to identify it as archived.
  579. If method 2 is used, to unarchive successfully, the administrator will have
  580. to edit the externaldata.conf server file first to remove access to the
  581. archived files which have to be unarchived.
  582. Archive example:
  583. 1) Archive one revision:
  584. cm ^archive Assets/RoofTextures/Textures/Wooden_Roof_05.png --^file=/Users/ruben/archive/battle
  585. 2) See the archived revision in the specified output path:
  586. ^ls -^al /Users/ruben/archive/battle*
  587. -rw-r--r-- 1 ruben staff 2220039 Nov 9 10:52 /Users/ruben/archive/battle-100280-167
  588. Unarchive (restore) example:
  589. 1) Add the output archive folder to the externaldata.conf file:
  590. ^vi /Users/ruben/.plastic4/externaldata.conf
  591. /Users/ruben/archive
  592. 2) Unarchive the revision:
  593. cm ^archive Assets/RoofTextures/Textures/Wooden_Roof_05.png --^restore
  594. Set the PLASTICEDITOR environment variable to specify an editor for
  595. entering comments. If the PLASTICEDITOR environment variable is set, and
  596. the comment is empty, the editor will be automatically launched to allow
  597. you to specify the comment.
  598. Reading input from stdin:
  599. The '^archive' command can read paths from stdin. To do this, pass a single
  600. dash "-".
  601. Example: cm ^archive -
  602. Paths will be read until an empty line is entered.
  603. This allows you to use pipe to specify which files to archive.
  604. Example:
  605. dir /S /B *.c | cm ^archive -
  606. (In Windows, archives all .c files in the workspace.)
  607. Examples:
  608. cm ^archive bigfile.zip#^br:/^main
  609. (Archives the last revision of 'bigfile.zip' in branch 'main'.)
  610. cm ^archive bigfile.zip#^br:/^main --^restore
  611. (Restores the archived revision.)
  612. cm ^archive ^rev:myfile.pdf#^cs:2 -^c="big pdf file" --^file=c:\arch_files\arch
  613. (Archives the revision with changeset 2 of myfile.pdf in 'c:\archived_files'
  614. folder. The archived file name will start with 'arch' (for example, arch_11_56).)
  615. cm ^find "^revs ^where ^size > 26214400" --^format="{^item}#{^branch}" \
  616. --^nototal | cm ^archive -^c="volume00" --^file="volume00" -
  617. (Archives all the files bigger than 25Mb on files starting with name
  618. 'volume00'.)
  619. == CMD_DESCRIPTION_ATTRIBUTE ==
  620. Allows the user to manage attributes.
  621. == CMD_USAGE_ATTRIBUTE ==
  622. Usage:
  623. cm ^attribute | ^att <command> [options]
  624. Commands:
  625. - ^create | ^mk
  626. - ^delete | ^rm
  627. - ^set
  628. - ^unset
  629. - ^rename
  630. - ^edit
  631. To get more information about each command run:
  632. cm ^attribute <command> --^usage
  633. cm ^attribute <command> --^help
  634. == CMD_HELP_ATTRIBUTE ==
  635. Examples:
  636. cm ^attribute ^create status
  637. cm ^attribute ^set ^att:status ^br:/main/SCM105 open
  638. cm ^attribute ^unset ^att:status ^br:/main/SCM105
  639. cm ^attribute ^delete ^att:status
  640. cm ^attribute ^rename ^att:status "buildStatus"
  641. cm ^attribute ^edit ^att:status "Status of the task in the CI pipeline"
  642. == CMD_DESCRIPTION_CHANGELIST ==
  643. Groups pending changes in changelists.
  644. == CMD_USAGE_CHANGELIST ==
  645. Usage:
  646. cm ^changelist | ^clist [--^symlink]
  647. (Displays all changelists.)
  648. cm ^changelist | ^clist ^create <clist_name>
  649. [<clist_desc>] [--^persistent | --^notpersistent] [--^symlink]
  650. (Creates a changelist.)
  651. cm ^changelist | ^clist ^delete <clist_name> [--^symlink]
  652. (Deletes the selected changelist. If this changelist contains pending
  653. changes, then these will be moved to the ^default changelist.)
  654. cm ^changelist | ^clist ^edit <clist_name> [<action_name> <action_value>]
  655. [--^persistent | --^notpersistent] [--^symlink]
  656. (Edits the selected changelist.)
  657. cm ^changelist | ^clist <clist_name> (^add | ^rm) <path_name>[ ...]
  658. [--^symlink]
  659. (Edits the selected changelist by adding ('^add') or removing ('^rm') the
  660. change(s) that match with the given path_name(s). Use a whitespace to
  661. separate path_names. Use double quotes (" ") to specify paths containing
  662. spaces. The status of the paths must be '^Added' or '^Checked-out'.)
  663. Options:
  664. clist_name The name of the changelist. A path to a file containing
  665. the name can be used instead. More info at --^namefile.
  666. clist_desc The description of the changelist. A path to a file
  667. containing the description can be used instead. More
  668. info at --^descriptionfile.
  669. action_name Choose between '^rename' or '^description' to edit the
  670. changelist.
  671. action_value Applies the new name or new description when editing
  672. the changelist.
  673. --^persistent The changelist will remain in the workspace even if its
  674. contents are checked-in or reverted.
  675. --^notpersistent (Default) The changelist will not remain in the
  676. workspace even if its contents are checked-in or
  677. reverted.
  678. --^symlink Applies the operation to the symlink and not to the
  679. target.
  680. --^namefile A valid path to a file containing the name of the
  681. changelist. Bear in mind the file must exist and its
  682. content cannot be neither empty nor multiline.
  683. --^newnamefile A valid path to a file containing the new name of the
  684. changelist when renaming. Bear in mind the file must exist
  685. and its content cannot be neither empty nor multiline.
  686. --^descriptionfile A valid path to a file containing the description for the
  687. changelist. Bear in mind the file must exist.
  688. == CMD_HELP_CHANGELIST ==
  689. Remarks:
  690. The '^changelist' command handles both the workspace pending changelists and
  691. the changes contained in a changelist.
  692. Examples:
  693. cm ^changelist
  694. (Shows the current workspace changelists.)
  695. cm ^changelist ^create config_changes "dotConf files" --^persistent
  696. (Creates a new changelist named 'config_changes' and description 'dotConf
  697. files' which will remain persistent in the current workspace once the
  698. pending changelist is either checked-in or reverted.)
  699. cm ^changelist ^create --^namefile="name.txt" --^descriptionfile="desc.txt"
  700. (Creates a new changelist which name and description are both taken from files.)
  701. cm ^changelist ^edit config_changes ^rename config_files --^notpersistent
  702. (Edits the changelist named 'config_changes' and renames it to
  703. 'config_files'. Also, it turns the changelist into "not persistent".)
  704. cm ^changelist ^edit config_changes --^notpersistent
  705. (Edits the changelist named 'config_changes' by turning it into "not persistent".)
  706. cm ^changelist ^delete config_files
  707. (Removes the pending changelist 'config_files' from the current workspace.)
  708. cm ^changelist ^delete --namefile="name.txt"
  709. (Removes the changelist identified by the content of 'name.txt' file from the current
  710. workspace.)
  711. cm ^changelist config_files ^add foo.conf
  712. (Adds the file 'foo.conf' to the 'config_files' changelist.)
  713. cm ^changelist config_files ^rm foo.conf readme.txt
  714. (Removes the files 'foo.conf' and 'readme.txt' from the 'config_files'
  715. changelist and moves the files to the system default changelist.)
  716. cm ^changelist ^edit --^namefile="name.txt" ^description --^descriptionfile="desc.txt"
  717. (Edits the changelist identified by the content of 'name.txt' file, changing its
  718. description to the text content of the 'desc.txt' file.)
  719. cm ^changelist ^edit --^namefile="name.txt" ^rename --^newnamefile="newname.txt"
  720. (Edits the changelist identified by the content of 'name.txt' file, renaming it to
  721. the text content of the 'newname.txt' file.)
  722. == CMD_DESCRIPTION_CHANGESET ==
  723. Executes advanced operations on changesets.
  724. == CMD_USAGE_CHANGESET ==
  725. Usage:
  726. cm ^changeset <command> [options]
  727. Commands:
  728. - ^move | ^mv
  729. - ^delete | ^rm
  730. - ^editcomment | ^edit
  731. To get more information about each command run:
  732. cm ^changeset <command> --^usage
  733. cm ^changeset <command> --^help
  734. == CMD_HELP_CHANGESET ==
  735. Examples:
  736. cm ^changeset ^move ^cs:15@myrepo ^br:/main/scm005@myrepo
  737. cm ^changeset ^delete ^cs:2b55f8aa-0b29-410f-b99c-60e573a309ca@devData
  738. cm ^changeset ^editcomment ^cs:15@myrepo "I forgot to add the checkin details"
  739. == CMD_DESCRIPTION_CHANGESET_EDITCOMMENT ==
  740. Modifies the comment of a changeset.
  741. == CMD_USAGE_CHANGESET_EDITCOMMENT ==
  742. Usage:
  743. cm ^changeset ^editcomment | ^edit <csetspec> <new_comment>
  744. Options:
  745. csetspec The target changeset whose comment will be edited.
  746. (Use 'cm ^help ^objectspec' to learn more about changeset
  747. specs.)
  748. new_comment The new comment that will be added to the targeted
  749. changeset.
  750. == CMD_HELP_CHANGESET_EDITCOMMENT ==
  751. Remarks:
  752. - The targeted changeset spec must be valid.
  753. Examples:
  754. cm ^changeset ^editcomment ^cs:15@myrepo "I forgot to add the checkin details"
  755. cm ^changeset ^edit ^cs:cb11ecdb-1aa9-4f11-8698-dcab14e5885a \
  756. "This comment text will replace the previous one."
  757. cm ^changeset ^edit "89095131-895d-4173-9440-ff9ef9b2538d@project@cloud" \
  758. "Changing my comment"
  759. == CMD_DESCRIPTION_CHANGESET_MOVE ==
  760. Moves a changeset and all its descendants to a different branch.
  761. == CMD_USAGE_CHANGESET_MOVE ==
  762. Usage:
  763. cm ^changeset ^move | ^mv <csetspec> <branchspec>
  764. Options:
  765. csetspec First changeset to be moved to a different branch. All
  766. descendant changesets in the same branch will be
  767. targeted by the command as well.
  768. (Use 'cm ^help ^objectspec' to learn more about changeset
  769. specs.)
  770. branchspec The target branch where the targeted changesets are
  771. stored. It needs to be empty or non-existing; if the
  772. destination branch doesn't exist, it will be created by
  773. the command.
  774. (Use 'cm ^help ^objectspec' to learn more about branch
  775. specs.)
  776. == CMD_HELP_CHANGESET_MOVE ==
  777. Remarks:
  778. - The targeted changeset spec must be valid.
  779. - The destination branch must be either empty or non-existing.
  780. - If the destination branch doesn't exist, it will created.
  781. - Merge links will be kept unchanged since branches don't affect them.
  782. Examples:
  783. cm ^changeset ^move ^cs:15@myrepo ^br:/main/scm005@myrepo
  784. cm ^changeset ^move ^cs:cb11ecdb-1aa9-4f11-8698-dcab14e5885a ^br:/hotfix/TL-352
  785. == CMD_DESCRIPTION_CHANGESET_DELETE ==
  786. Deletes a changeset from the repository.
  787. == CMD_USAGE_CHANGESET_DELETE ==
  788. Usage:
  789. cm ^changeset ^delete | ^rm <csetspec>
  790. Options:
  791. csetspec The target changeset to be removed. It must fulfill
  792. some specific conditions. See Remarks for more info.
  793. (Use 'cm ^help ^objectspec' to learn more about changeset
  794. specs.)
  795. == CMD_HELP_CHANGESET_DELETE ==
  796. Remarks:
  797. - The target changeset must be the last in its branch.
  798. - The target changeset cannot be the parent of any other changeset.
  799. - The target changeset cannot be neither the source of a merge link nor
  800. part of an interval merge as source.
  801. - No label must be applied to the target changeset.
  802. - The target changeset must not be the root changeset ('^cs:0').
  803. Examples:
  804. cm ^changeset ^rm ^cs:4525@myrepo@myserver
  805. cm ^changeset ^delete ^cs:cb11ecdb-1aa9-4f11-8698-dcab14e5885a
  806. == CMD_DESCRIPTION_CHANGEUSERPASSWORD ==
  807. Changes the user's password (UP).
  808. == CMD_USAGE_CHANGEUSERPASSWORD ==
  809. Usage:
  810. cm ^changepassword | ^passwd
  811. == CMD_HELP_CHANGEUSERPASSWORD ==
  812. Remarks:
  813. This command is only available when the security configuration is UP
  814. (user/password).
  815. See the Administrator Guide for more information:
  816. https://www.plasticscm.com/download/help/adminguide
  817. The old and new passwords are required.
  818. Examples:
  819. cm ^passwd
  820. == CMD_DESCRIPTION_CHECKCONNECTION ==
  821. Checks the connection to the server.
  822. == CMD_USAGE_CHECKCONNECTION ==
  823. Usage:
  824. cm ^checkconnection | ^cc
  825. == CMD_HELP_CHECKCONNECTION ==
  826. Remarks:
  827. - This command returns a message indicating whether there is a valid
  828. connection to the configured Unity VCS server.
  829. - The command checks checks the version compatibility with the server.
  830. - The command also checks whether the configured user is valid or not.
  831. == CMD_DESCRIPTION_CHECKDB ==
  832. > **This command is deprecated.**
  833. Checks the repositories integrity.
  834. == CMD_USAGE_CHECKDB ==
  835. Usage:
  836. cm ^checkdatabase | ^chkdb [<repserverspec> | <repspec>]
  837. Options:
  838. repserverspec Repositories server.
  839. (Use 'cm ^help ^objectspec' to learn more about repserver
  840. specs.)
  841. repspec Repository.
  842. (Use 'cm ^help ^objectspec' to learn more about rep specs.)
  843. == CMD_HELP_CHECKDB ==
  844. Remarks:
  845. - If neither repserverspec nor repspec are specified, the check will be
  846. performed in the server specified in the client.conf file.
  847. Examples:
  848. cm ^checkdatabase ^repserver:localhost:8084
  849. cm ^chkdb ^rep:default@localhost:8084
  850. == CMD_DESCRIPTION_CHECKIN ==
  851. Stores changes in the repository.
  852. == CMD_USAGE_CHECKIN ==
  853. Usage:
  854. cm ^checkin | ^ci [<item_path>[ ...]]
  855. [-^c=<str_comment> | -^commentsfile=<comments_file>]
  856. [--^all|-^a] [--^applychanged] [--^private] [--^update] [--^symlink]
  857. [--^noshowchangeset]
  858. [--^machinereadable [--^startlineseparator=<sep>]
  859. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  860. Options:
  861. item_path Items to be checked-in. Use double quotes (" ") to
  862. specify paths containing spaces. Use a whitespace to
  863. separate item paths.
  864. Use . to apply checkin to current directory.
  865. -^c Applies the specified comment to the changeset created
  866. in the checkin operation.
  867. -^commentsfile Applies the comment in the specified file to the
  868. changeset created in the checkin operation.
  869. --^all | -^a The items changed, moved and deleted locally on the
  870. given paths are also included.
  871. --^applychanged Applies the checkin operation to the changed items
  872. detected in the workspace along with the checked out
  873. items.
  874. --^private Private items detected in the workspace are also
  875. included.
  876. --^update Processes the update-merge automatically if it
  877. eventually happens.
  878. --^symlink Applies the checkin operation to the symlink and not
  879. to the target.
  880. --^noshowchangeset Doesn't print the result changeset.
  881. --^machinereadable Outputs the result in an easy-to-parse format.
  882. --^startlineseparator Used with the '--^machinereadable' flag, specifies how
  883. the lines should start.
  884. --^endlineseparator Used with the '--^machinereadable' flag, specifies how
  885. the lines should end.
  886. --^fieldseparator Used with the '--^machinereadable' flag, specifies how
  887. the fields should be separated.
  888. == CMD_HELP_CHECKIN ==
  889. Remarks:
  890. - If <item_path> is not specified, the checkin involves all the
  891. pending changes in the workspace.
  892. - The checkin operation is always applied recursively from the given path.
  893. - To checkin an item:
  894. - The item must be under source code control.
  895. - If the item is private (not under source code control), the --^private
  896. flag is necessary in order to checkin it.
  897. - The item must be checked out.
  898. - If the item is changed but not checked out, the --^applychanged flag
  899. is not necessary unless <item_path> is a directory or it contains
  900. wildcards ('*').
  901. Revision content should be different from previous revision in order to be
  902. checked in.
  903. Set the PLASTICEDITOR environment variable to specify an editor for
  904. entering comments. If the PLASTICEDITOR environment variable is set, and
  905. the comment is empty, the editor will be automatically launched to allow
  906. you to specify the comment.
  907. Reading input from stdin:
  908. The '^checkin' command can read paths from stdin. To do this, pass a single
  909. dash "-".
  910. Example: cm ^checkin -
  911. Paths will be read until an empty line is entered.
  912. This allows you to use pipe to specify which files to checkin.
  913. Example:
  914. dir /S /B *.c | cm ^checkin --^all -
  915. (In Windows, checkins all .c files in the workspace.)
  916. Examples:
  917. cm ^checkin file1.txt file2.txt
  918. (Checkins the 'file1.txt' and 'file2.txt' checked-out files.)
  919. cm ^checkin . -^commentsfile=mycomment.txt
  920. (Checkins the current directory and sets the comment in the
  921. 'mycomment.txt' file.)
  922. cm ^checkin link --^symlink
  923. (Checkins the symlink file and not the target.)
  924. cm ^ci file1.txt -^c="my comment"
  925. (Checkins 'file1.txt' and includes a comment.)
  926. cm ^status --^short --^compact --^changelist=pending_to_review | cm ^checkin -
  927. (Lists the paths in the changelist named 'pending_to_review' and redirects
  928. this list to the input of the checkin command.)
  929. cm ^ci . --^machinereadable
  930. (Checkins the current directory, and prints the result in a simplified,
  931. easier-to-parse format.)
  932. cm ^ci . --^machinereadable --^startlineseparator=">" --^endlineseparator="<" --^fieldseparator=","
  933. (Checkins the current directory, and prints the result in a simplified,
  934. easier-to-parse format, starting and ending the lines, and
  935. separating the fields with the specified strings.)
  936. == CMD_DESCRIPTION_CHECKOUT ==
  937. Marks files as ready to modify.
  938. == CMD_USAGE_CHECKOUT ==
  939. Usage:
  940. cm ^checkout | ^co [<item_path>[ ...]] [-^R | -^r | --^recursive]
  941. [--^format=<str_format>]
  942. [--^errorformat=<str_format>] [--^resultformat=<str_format>]
  943. [--^silent] [--^symlink] [--^ignorefailed]
  944. [--^machinereadable [--^startlineseparator=<sep>]
  945. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  946. Options:
  947. item_path Items to be checked-out. Use double quotes (" ") to
  948. specify paths containing spaces. Use a whitespace to
  949. separate item paths.
  950. Use . to apply checkout to current directory.
  951. -^R Checks out files recursively.
  952. --^format Retrieves the output progress message in a specific
  953. format. Check the examples for more information.
  954. --^resultformat Retrieves the output result message in a specific
  955. format. Check the examples for more information.
  956. --^silent Does not show any output at all.
  957. --^symlink Applies the checkout operation to the symlink and not
  958. to the target.
  959. --^ignorefailed If an item cannot be locked (the exclusive checkout
  960. cannot be performed), the checkout operation will
  961. continue without it.
  962. --^machinereadable Outputs the result in an easy-to-parse format.
  963. --^startlineseparator Used with the '--^machinereadable' flag, specifies how
  964. the lines should start.
  965. --^endlineseparator Used with the '--^machinereadable' flag, specifies how
  966. the lines should end.
  967. --^fieldseparator Used with the '--^machinereadable' flag, specifies how
  968. the fields should be separated.
  969. == CMD_HELP_CHECKOUT ==
  970. Remarks:
  971. To checkout an item:
  972. - The item must be under source code control.
  973. - The item must be checked-in.
  974. If locks are configured on the server (lock.conf exists), then each time
  975. a checkout on a path happens, Unity VCS checks if it meets any of the rules
  976. and if so, the path will be in exclusive checkout (locked) so that none can
  977. simultaneously checkout.
  978. You can get all the locks in the server by using 'cm ^lock ^list'.
  979. See the Administrator Guide for more information:
  980. https://www.plasticscm.com/download/help/adminguide
  981. The format string replaces the placeholder '{0}' with the path of the item
  982. being checked out. Check the examples to see how to use it.
  983. Reading input from stdin:
  984. The '^checkout' command can read paths from stdin. To do this, pass a single
  985. dash "-".
  986. Example: cm ^checkout -
  987. Paths will be read until an empty line is entered.
  988. This allows you to use pipe to specify which files to checkout.
  989. Example:
  990. dir /S /B *.c | cm ^checkout -
  991. (In Windows, checkouts all .c files in the workspace.)
  992. Examples:
  993. cm ^checkout file1.txt file2.txt
  994. (Checkouts 'file1.txt' and 'file2.txt' files.)
  995. cm ^co *.txt
  996. (Checkouts all txt files.)
  997. cm ^checkout .
  998. (Checkouts current directory.)
  999. cm ^checkout -^R c:\workspace\src
  1000. (Recursively checkouts 'src' folder.)
  1001. cm ^co file.txt --^format="Checking out item {0}"
  1002. --^resultformat="Item {0} checked out"
  1003. (Checkouts 'file.txt' using the specified formatting strings
  1004. to show the progress and the result of the operation.)
  1005. cm ^checkout link --^symlink
  1006. (Checkouts the symlink file and not the target.)
  1007. cm ^checkout . -^R --^ignorefailed
  1008. (Recursively checkouts the current folder, ignoring those files that can
  1009. not be checked out.)
  1010. cm ^co . --^machinereadable --^startlineseparator=">"
  1011. (Checkouts the current directory, and prints the result in a simplified,
  1012. easier-to-parse format, starting the lines with the specified strings.)
  1013. == CMD_DESCRIPTION_CHECKSELECTORSYNTAX ==
  1014. Checks the syntax of a selector.
  1015. == CMD_USAGE_CHECKSELECTORSYNTAX ==
  1016. Usage:
  1017. cm ^checkselectorsyntax | ^css --^file=<selector_file>
  1018. (Checks the selector file syntax.)
  1019. ^cat <selector_file> | cm ^checkselectorsyntax | ^css -
  1020. (Unix. Checks selector file from standard input.)
  1021. ^type <selector_file> | cm ^checkselectorsyntax | ^css -
  1022. (Windows. Checks selector file from standard input.)
  1023. Options:
  1024. --^file The file to read a selector from.
  1025. == CMD_HELP_CHECKSELECTORSYNTAX ==
  1026. Remarks:
  1027. This command reads a selector on either a file or standard input, and
  1028. checks it for valid syntax. If the syntax check fails, the reason is
  1029. printed on standard output.
  1030. Examples:
  1031. cm ^checkselectorsyntax --^file=myselector.txt
  1032. (Checks the syntax of 'myselector.txt' file.)
  1033. ^cat myselector.txt | cm ^checkselectorsyntax
  1034. (Checks the syntax of 'myselector.txt' from standard input.)
  1035. == CMD_DESCRIPTION_CHANGEREVISIONTYPE ==
  1036. Changes an item revision type (binary or text).
  1037. == CMD_USAGE_CHANGEREVISIONTYPE ==
  1038. Usage:
  1039. cm ^changerevisiontype | ^chgrevtype | ^crt <item_path>[ ...] --^type=(^bin | ^txt)
  1040. Options:
  1041. item_path Items to change revision type. Use double quotes (" ")
  1042. to specify paths containing spaces. Use a whitespace to
  1043. separate item paths.
  1044. --^type Target revisions type. Choose '^bin' or '^txt'.
  1045. == CMD_HELP_CHANGEREVISIONTYPE ==
  1046. Remarks:
  1047. This command can only be applied to files, not directories.
  1048. The specified type must be a system supported one: '^bin' or '^txt' (binary
  1049. or text).
  1050. Examples:
  1051. cm ^changerevisiontype c:\workspace\file.txt --^type=^txt
  1052. (Changes 'file.txt' revision type to text.)
  1053. cm ^chgrevtype comp.zip "image file.jpg" --^type=^bin
  1054. (Changes 'comp.zip' and "image file.jpg" revision type to binary.)
  1055. cm ^crt *.* --^type=^txt
  1056. (Changes revision type of all files to text.)
  1057. == CMD_DESCRIPTION_TRIGGER_EDIT ==
  1058. Edits a trigger.
  1059. == CMD_USAGE_TRIGGER_EDIT ==
  1060. Usage:
  1061. cm ^trigger | ^tr ^edit <subtype_type> <position_number>
  1062. [--^position=<new_position>]
  1063. [--^name=<new_name>] [--^script=<script_path>]
  1064. [--^filter=<str_filter>] [--^server=<repserverspec>]
  1065. Options:
  1066. --^position New position of the specified trigger.
  1067. This position must not be in use by another
  1068. trigger of the same type.
  1069. --^name New name of the specified trigger.
  1070. --^script New execution path of the specified trigger script.
  1071. If the script starts with "^webtrigger ", it will be
  1072. considered as a web trigger. See Remarks for more
  1073. further details.
  1074. --^filter Checks only items that match the specified filter.
  1075. --^server Modifies the trigger on the specified server.
  1076. If no server is specified, executes the command on the
  1077. one configured on the client.
  1078. (Use 'cm ^help ^objectspec' to learn more about server
  1079. specs.)
  1080. subtype_type Trigger execution and trigger operation.
  1081. (Use 'cm ^showtriggertypes' to see a list of trigger
  1082. types.)
  1083. position_number Position occupied by the trigger to be modified.
  1084. == CMD_HELP_TRIGGER_EDIT ==
  1085. Remarks:
  1086. Web triggers: A web trigger is created by typing "^webtrigger <target-uri>"
  1087. as the trigger command. In this case, the trigger will execute a POST query
  1088. against the specified URI, where the request body contains a JSON
  1089. dictionary with the trigger environment variables, and a fixed INPUT key
  1090. pointing to an array of strings.
  1091. Examples:
  1092. cm ^trigger ^edit ^after-setselector 6 --^name="Backup2 manager" --^script="/new/path/al/script"
  1093. cm ^tr ^edit ^before-mklabel 7 --^position=4 --^server=myserver:8084
  1094. cm ^trigger ^edit ^after-add 2 --^script="^webtrigger http://myserver.org/api"
  1095. == CMD_DESCRIPTION_CODEREVIEW ==
  1096. Creates, edits, or deletes code reviews.
  1097. == CMD_USAGE_CODEREVIEW ==
  1098. Usage:
  1099. cm ^codereview <spec> <title> [--^status=<status_name>]
  1100. [--^assignee=<user_name>] [--^format=<str_format>]
  1101. [--^repository=<rep_spec>]
  1102. (Creates a code review.)
  1103. cm ^codereview -^e <id> [--^status=<status_name>] [--^assignee=<user_name>]
  1104. [--^repository=<rep_spec>]
  1105. (Edits a code review.)
  1106. cm ^codereview -^d <id> [ ...] [--^repository=<rep_spec>]
  1107. (Deletes one or more code reviews.)
  1108. Options:
  1109. -^e Edits the parameters of an existing code review.
  1110. -^d Deletes one or more existing code reviews. Use a
  1111. whitespace to separate the code reviews IDs.
  1112. --^status Sets the new status of a code review. See Remarks for
  1113. additional information.
  1114. --^assignee Sets the new assignee of a code review.
  1115. --^format Retrieves the output message in a specific format. See
  1116. Remarks for additional information.
  1117. --^repository Sets the repository to be used as default. (Use
  1118. 'cm ^help ^objectspec' to learn more about repository specs.)
  1119. spec It can be either a changeset spec, a shelve spec or a branch spec.
  1120. It will be the target of the new code review. (Use 'cm ^help
  1121. ^objectspec' to learn more about changeset or branch specs.)
  1122. title A text string to be used as title of the new code review.
  1123. id The code review identification number. A GUID can be used as
  1124. well.
  1125. == CMD_HELP_CODEREVIEW ==
  1126. Remarks:
  1127. This command allows users to manage code reviews: create, edit, and delete
  1128. code reviews for changesets or branches.
  1129. To create a new code review, a changeset/branch spec and a title are
  1130. required. The initial status and assignee can be set, too. An ID (or GUID
  1131. if requested) will be returned as a result.
  1132. To edit or delete an existing code review, the target code review ID
  1133. (or GUID) is required. No messages are displayed if there are no errors.
  1134. The 'status parameter' must only be one of the following: "^Under ^review"
  1135. (default), "^Reviewed", or "^Rework ^required".
  1136. The 'repository' parameter is available to set the default working
  1137. repository. This is useful when the user wants to manage reviews on
  1138. a server different than the one associated to the current workspace, or
  1139. when there is no current workspace at all.
  1140. Output format parameters (--^format option):
  1141. This command accepts a format string to show the output.
  1142. The output parameters of this command are the following:
  1143. {0} id
  1144. {1} guid
  1145. Please note that the '--^format' parameter only takes effect when creating
  1146. a new code review.
  1147. Examples:
  1148. cm ^codereview ^cs:1856@myrepo@myserver:8084 "My code review" --^assignee=dummy
  1149. cm ^codereview ^br:/main/task001@myrepo@myserver:8084 "My code review" \
  1150. --^status=^"Rework required" --^assignee=newbie --^format="{^id} -> {^guid}"
  1151. cm ^codereview 1367 -^e --^assignee=new_assignee
  1152. cm ^codereview -^e 27658884-5dcc-49b7-b0ef-a5760ae740a3 --^status=Reviewed
  1153. cm ^codereview -^d 1367 --^repository=myremoterepo@myremoteserver:18084
  1154. cm ^codereview 27658884-5dcc-49b7-b0ef-a5760ae740a3 -^d
  1155. == CMD_DESCRIPTION_CRYPT ==
  1156. Encrypts a password.
  1157. == CMD_USAGE_CRYPT ==
  1158. Usage:
  1159. cm ^crypt <mypassword>
  1160. mypassword Password to be encrypted.
  1161. == CMD_HELP_CRYPT ==
  1162. Remarks:
  1163. This command encrypts a given password passed as argument.
  1164. It is designed to encrypt passwords in configuration files and increase
  1165. safety.
  1166. Examples:
  1167. cm ^crypt dbconfpassword -> ENCRYPTED: encrypteddbconfpassword
  1168. (Encrypts the password in the database configuration file: 'db.conf'.)
  1169. == CMD_DESCRIPTION_DEACTIVATEUSER ==
  1170. Deactivates a licensed user.
  1171. == CMD_USAGE_DEACTIVATEUSER ==
  1172. Usage:
  1173. cm ^deactivateuser | ^du <usr_name>[ ...] [--^server=<name:port>]
  1174. [--^nosolveuser]
  1175. Options:
  1176. --^server Deactivates the user on the specified server.
  1177. If no server is specified, executes the command on the
  1178. one configured on the client.
  1179. --^nosolveuser With this option, the command will not check whether
  1180. the user name exists on the authentication system. The
  1181. <usr_name> must be a user SID.
  1182. usr_name The user name(s) to deactivate. Use a whitespace to
  1183. separate user names. If SID, then '--^nosolveuser' is required.
  1184. == CMD_HELP_DEACTIVATEUSER ==
  1185. Remarks:
  1186. This command sets a user to inactive, disabling the usage of Unity VCS
  1187. for that user.
  1188. See the 'cm ^activateuser' command for more information about activating
  1189. Unity VCS users.
  1190. This command checks whether the user exists on the underlying authentication
  1191. system (e.g. ActiveDirectory, LDAP, User/Password...).
  1192. To force the deactivation of a user that no longer exists on the
  1193. authentication system, you can use the '--^nosolveuser' option.
  1194. Examples:
  1195. cm ^deactivateuser john
  1196. cm ^du peter "mary collins"
  1197. cm ^deactivateuser john --^server=myserver:8084
  1198. cm ^deactivateuser S-1-5-21-3631250224-3045023395-1892523819-1107 --^nosolveuser
  1199. == CMD_DESCRIPTION_DIFF ==
  1200. Shows differences between files, changesets, and labels.
  1201. == CMD_USAGE_DIFF ==
  1202. Usage:
  1203. cm ^diff <csetspec> | <lbspec> | <shspec> [<csetspec> | <lbspec> | <shspec>]
  1204. [<path>]
  1205. [--^added] [--^changed] [--^moved] [--^deleted]
  1206. [--^repositorypaths] [--^download=<download_path>]
  1207. [--^encoding=<name>]
  1208. [--^comparisonmethod=(^ignoreeol | ^ignorewhitespaces |
  1209. ^ignoreeolandwhitespaces | ^recognizeall)]
  1210. [--^clean]
  1211. [--^integration]
  1212. [--^format=<str_format>] [--^dateformat=<str_format>]
  1213. (Shows differences between a 'source' changeset or shelveset, and a
  1214. 'destination' changeset or shelveset. The changesets can be specified
  1215. using either a changeset or label specification.
  1216. Where two specifications are given, the first will be the 'source' of
  1217. the diff; the second, the 'destination'.
  1218. If only one specification is given, the 'source' will be the parent
  1219. changeset of the specified 'destination'.
  1220. If an optional path is specified, the Diff window will launch to show
  1221. differences between the two revisions of that file.)
  1222. cm ^diff <revspec1> <revspec2>
  1223. (Shows differences between a pair of revisions. The differences are
  1224. shown in the Diff window. The first revision specified will appear on
  1225. the left.)
  1226. cm ^diff <brspec> [--^added] [--^changed] [--^moved] [--^deleted]
  1227. [--^repositorypaths] [--^download=<download_path>]
  1228. [--^encoding=<name>]
  1229. [--^comparisonmethod=(^ignoreeol | ^ignorewhitespaces |
  1230. ^ignoreeolandwhitespaces | ^recognizeall)]
  1231. [--^clean]
  1232. [--^integration]
  1233. [--^format=<str_format>] [--^dateformat=<str_format>]
  1234. [--^fullpaths | --^fp]
  1235. (Shows the branch differences. Use 'cm ^help ^objectspec' to learn more
  1236. about specs.)
  1237. Options:
  1238. --^added Prints only differences consisting of items added to
  1239. the repository.
  1240. --^changed Prints only differences consisting of items that
  1241. changed.
  1242. --^moved Prints only differences consisting of moved or renamed
  1243. items.
  1244. --^deleted Prints only differences consisting of items that were
  1245. deleted.
  1246. --^repositorypaths Prints repository paths instead of workspace paths.
  1247. (This option overrides the '--^fullpaths' option.)
  1248. --^download Stores the differences content in the specified output
  1249. path.
  1250. --^encoding Specifies the output encoding, i.e.: utf-8.
  1251. See the MSDN documentation at
  1252. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  1253. to get the table of supported encodings and its format,
  1254. (at the end of the page, in the "Name" column).
  1255. --^comparisonmethod Sets the specified comparison method. See Remarks for more info.
  1256. --^clean Does not take into account the differences generated
  1257. because of a merge, but only the differences created by
  1258. simple checkins.
  1259. --^integration Shows the branch changes that are pending to be merged into
  1260. its parent branch. It takes into account any rebase or
  1261. prior merge already done from/to its parent branch.
  1262. --^format Retrieves the output message in a specific format. See
  1263. Remarks for more info.
  1264. --^dateformat Format used to output dates.
  1265. --^fullpaths, --^fp Forces printing full workspace paths for files and
  1266. directories when possible.
  1267. == CMD_HELP_DIFF ==
  1268. Remarks:
  1269. File status:
  1270. If '--^added', '--^changed', '--^moved' or '--^deleted' are
  1271. not specified, then the command prints all differences.
  1272. '^A' means added items.
  1273. '^C' means changed items.
  1274. '^D' means deleted items.
  1275. '^M' means moved items. The left item is the original, the right is the destination.
  1276. Comparison methods (--^comparisonmethod option):
  1277. ^ignoreeol Ignores the end of line differences.
  1278. ^ignorewhitespaces Ignores the whitespace differences.
  1279. ^ignoreeolandwhitespaces Ignores the end of line and whitespace differences.
  1280. ^recognizeall Detects the end of line and whitespace differences.
  1281. This command accepts a format string to show the output.
  1282. The parameters of this command are the following:
  1283. {^path} Item path.
  1284. {^date} Change date/time.
  1285. {^owner} Change author.
  1286. {^revid} Revision id of the revision considered as the
  1287. destination in the diff.
  1288. {^parentrevid} Revision id of the parent of the revision considered
  1289. as the destination of the diff.
  1290. {^baserevid} Revision id of the revision considered as the source
  1291. in the diff.
  1292. {^srccmpath} Server path before moving the item (move operation).
  1293. {^dstcmpath} Server path after moving the item (move operation).
  1294. {^type} Item type: ^D (directory), ^B (binary file), ^F (text
  1295. file), ^S (symlink), ^X (Xlink)
  1296. {^repository} Repository of the item.
  1297. {^status} Item status: ^A (added), ^D (deleted), ^M (moved), ^C
  1298. (changed)
  1299. {^fsprotection} Shows item permissions (Linux/Mac chmod).
  1300. {^srcfsprotection} Shows parent revision item permissions.
  1301. {^newline} Inserts a new line.
  1302. Notes on '^revid':
  1303. For added items, the '^baserevid' and '^parentrevid' will be -1, as no
  1304. previous revision exists in this case.
  1305. For deleted items, the '^revid' is the id of the source revision, and the
  1306. '^baserevid' will be -1, as there is no destination revision.
  1307. For Xlinks, both '^baserevid' and '^parentrevid' are always -1.
  1308. Examples:
  1309. Comparing branches:
  1310. cm ^diff ^br:/main/task001
  1311. cm ^diff ^br:/main/task001 \doc\readme.txt
  1312. cm ^diff ^br:/main/task001 --^integration
  1313. Comparing changeset trees:
  1314. cm ^diff 19
  1315. cm ^diff 19 25
  1316. cm ^diff ^cs:19 ^cs:25 --^format="{^path} {^parentrevid}"
  1317. cm ^diff ^cs:19 ^cs:23 --^format="{^date} {^path}" --^dateformat="yy/dd/MM HH:mm:ss"
  1318. cm ^diff ^cs:19 ^cs:23 --^changed
  1319. cm ^diff ^cs:19 ^cs:23 --^repositorypaths
  1320. cm ^diff ^cs:19 ^cs:23 --^download="D:\temp"
  1321. cm ^diff ^cs:19 ^cs:23 --^clean
  1322. cm ^diff ^cs:19 ^cs:23 \doc\readme.txt
  1323. Comparing label trees:
  1324. cm ^diff ^lb:FirstReleaseLabel ^lb:SecondReleaseLabel
  1325. cm ^diff ^lb:tag_193.2 ^cs:34214
  1326. cm ^diff ^cs:31492 ^lb:tag_193.2
  1327. Comparing shelve trees:
  1328. cm ^diff ^sh:2
  1329. cm ^diff ^sh:2 ^sh:4
  1330. Comparing revspecs:
  1331. cm ^diff ^rev:readme.txt#^cs:19 ^rev:readme.txt#^cs:20
  1332. cm ^diff ^serverpath:/doc/readme.txt#^cs:19@myrepo \
  1333. ^serverpath:/doc/readme.txt#^br:/main@myrepo@localhost:8084
  1334. cm ^diff ^rev:foo.c#^cs:1 ^rev:foo.c#^cs:2 --^comparisonmethod=^ignoreeol
  1335. == CMD_DESCRIPTION_DIFFMETRICS ==
  1336. Shows diff metrics between two revs.
  1337. == CMD_USAGE_DIFFMETRICS ==
  1338. Usage:
  1339. cm ^diffmetrics | ^dm <revspec1> <revspec2> [--^format=<str_format>]
  1340. [--^encoding=<name>]
  1341. [--^comparisonmethod=(^ignoreeol | ^ignorewhitespaces |
  1342. ^ignoreeolandwhitespaces | ^recognizeall)]
  1343. Options:
  1344. --^format Retrieves the output message in a specific format. See
  1345. Remarks for more info.
  1346. --^encoding Specifies the output encoding, i.e.: utf-8.
  1347. See the MSDN documentation at
  1348. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  1349. to get the table of supported encodings and its format,
  1350. (at the end of the page, in the "Name" column).
  1351. --^comparisonmethod Sets the specified comparison method.
  1352. See Remarks for more info.
  1353. revspec Revisions used to compare.
  1354. (Use 'cm ^help ^objectspec' to learn more about rev specs.)
  1355. == CMD_HELP_DIFFMETRICS ==
  1356. Remarks:
  1357. The metrics are: number of changed, added, and deleted lines.
  1358. Output format parameters (--^format option):
  1359. This command accepts a format string to show the output.
  1360. The output parameters of this command are the following:
  1361. {0} Number of changed lines.
  1362. {1} Number of added lines.
  1363. {2} Number of deleted lines.
  1364. Comparison methods (--^comparisonmethod option):
  1365. ^ignoreeol Ignores the end of line differences.
  1366. ^ignorewhitespaces Ignores the whitespace differences.
  1367. ^ignoreeolandwhitespaces Ignores the end of line and whitespace differences.
  1368. ^recognizeall Detects the end of line and whitespace differences.
  1369. Examples:
  1370. cm ^diffmetrics file.txt#^cs:2 file.txt#^br:/main/scm0211 \
  1371. --^format="There are {0} changed, {1} added and {2} deleted lines."
  1372. (Retrieves diffmetrics results formatted.)
  1373. cm ^dm file.txt#^cs:2 file.txt#^cs:3 --^encoding=utf-8 --^comparisonmethod=^ignorewhitespaces
  1374. == CMD_DESCRIPTION_FASTEXPORT ==
  1375. Exports a repository in fast-export format.
  1376. == CMD_USAGE_FASTEXPORT ==
  1377. Usage:
  1378. cm ^fast-export | ^fe <repspec> <fast-export-file>
  1379. [--^import-marks=<marks_file>]
  1380. [--^export-marks=<marks_file>]
  1381. [--^branchseparator=<chr_separator>]
  1382. [--^nodata] [--^from=<changesetid>] [--^to=<changesetid>]
  1383. Options:
  1384. repspec The repository which the data will be exported from.
  1385. (Use 'cm ^help ^objectspec' to learn more about rep specs.)
  1386. fast-export-file The file with the repository data in Git fast-export
  1387. format.
  1388. --^import-marks The marks file used for incremental imports. This file
  1389. has been previously exported by '--^export-marks'. The
  1390. changesets described in this file will not be imported
  1391. because they were already in a previous import.
  1392. --^export-marks The file where the imported changesets will be saved.
  1393. This file is used in a later fast-import to signal the
  1394. changesets that have been already imported.
  1395. --^branchseparator Unity VCS uses "/" as default separator in the branch
  1396. hierarchy. This option allows using char as a hierarchy
  1397. separator, so main-task-sub would be mapped in Unity VCS
  1398. as /main/task/sub.
  1399. --^nodata Exports the repository without including the data. This
  1400. is useful to check if the export will run correctly.
  1401. --^from Exports from a particular changeset.
  1402. --^to Exports to a particular changeset.
  1403. == CMD_HELP_FASTEXPORT ==
  1404. Remarks:
  1405. - To import a Unity VCS repository to Git, use a command such as:
  1406. ^cat repo.fe.00 | ^git ^fast-import --^export-marks=marks.git --^import-marks=marks.git
  1407. - Incremental export is supported using a marks file that contains the
  1408. changesets previously imported ('--^import-marks' and '--^export-marks'
  1409. files).
  1410. This means that only the new changesets that were not exported in the
  1411. previous fast-export will be exported.
  1412. Examples:
  1413. cm ^fast-export repo@localhost:8087 repo.fe.00 --^import-marks=marks.cm \
  1414. --^export-marks=marks.cm
  1415. (Exports the repository 'repo' in the local server into the 'repo.fe.00'
  1416. file in Git fast-export format and creates the marks files to perform
  1417. incremental exports later.)
  1418. cm ^fast-export repo@localhost:8087 repo.fe.00 --^from=20
  1419. (Exports the repository 'repo' in the local server into the 'repo.fe.00'
  1420. file in Git fast-export format from changeset '20'.)
  1421. == CMD_DESCRIPTION_FASTIMPORT ==
  1422. Imports Git fast-export data into a repository.
  1423. == CMD_USAGE_FASTIMPORT ==
  1424. Usage:
  1425. cm ^fast-import | ^fi <repspec> <fast-export-file>
  1426. [--^import-marks=<marks_file>]
  1427. [--^export-marks=<marks_file>]
  1428. [--^stats] [--^branchseparator=<chr_separator>]
  1429. [--^nodata] [--^ignoremissingchangesets] [--^mastertomain]
  1430. Options:
  1431. repspec The repository into which the data will be
  1432. imported. It is created if it did not previously
  1433. exist. (Use 'cm ^help ^objectspec' to learn more
  1434. about rep specs.)
  1435. fast-export-file The file with the repository data in Git
  1436. fast-export format.
  1437. --^import-marks The marks file used for incremental imports.
  1438. This file has been previously exported by
  1439. '--^export-marks'. The changesets described in
  1440. this file wont be imported because they
  1441. were already in a previous import.
  1442. --^export-marks The file where the imported changesets will
  1443. be saved. This file is used in a later
  1444. fast-import to signal the changesets that have
  1445. been already imported.
  1446. --^stats Prints some statistics about the import process.
  1447. --^branchseparator Unity VCS uses "/" as default separator in
  1448. the branch hierarchy. This option allows using
  1449. char as a hierarchy separator, so main-task-sub
  1450. would be mapped in Unity VCS as /main/task/sub.
  1451. --^nodata Imports Git fast-export without including the
  1452. data. This is useful to check if the import will
  1453. run correctly.
  1454. --^ignoremissingchangesets Any changesets that cannot be imported are
  1455. discarded and the fast-import operation
  1456. continues without them.
  1457. --^mastertomain Imports using "^main" instead of "^master".
  1458. == CMD_HELP_FASTIMPORT ==
  1459. Remarks:
  1460. - To export a Git repository, use a command such as:
  1461. ^git ^fast-export --^all -^M --^signed-tags=^strip --^tag-of-filtered-object=^drop> ..\git-fast-export.dat
  1462. The -^M option is important to detect moved items.
  1463. - The specified repository is created in case it did not exist.
  1464. - Incremental import is supported using a marks file that contains the
  1465. changesets previously imported ('--^import-marks' and '--^export-marks'
  1466. files).
  1467. This means that only the new changesets that were not imported in the
  1468. previous fast-import will be imported.
  1469. Examples:
  1470. cm ^fast-import mynewrepo@atenea:8084 repo.fast-export
  1471. (Imports the contents exported in the 'repo.fast-export' file into
  1472. 'mynewrepo' repository on server 'atenea:8084'.)
  1473. cm ^fast-import repo@atenea:8084 repo.fast-export --^export-marks=rep.marks
  1474. (Imports the contents exported in the 'repo.fast-export' file into
  1475. 'repo' repository on server 'atenea:8084' and creates a marks file
  1476. to perform incremental imports later.)
  1477. cm ^fast-import repo@server:8084 repo.fast-export --^import-marks=repo.marks \
  1478. --^export-marks=repo.marks
  1479. (Imports the contents of the 'repo.fast-export' file. Only the new
  1480. changesets that were not in the marks file are imported. The same marks
  1481. file is used to save the list of changesets again for the next
  1482. incremental import.)
  1483. == CMD_DESCRIPTION_FILEINFO ==
  1484. Retrieves detailed information about the items in the workspace.
  1485. == CMD_USAGE_FILEINFO ==
  1486. Usage:
  1487. cm ^fileinfo <item_path>[ ...] [--^fields=<field_value>[,...]]
  1488. [[--^xml | -^x [=<output_file>]] | [--^format=<str_format>]]
  1489. [--^symlink] [--^encoding=<name>]
  1490. Options:
  1491. --^fields A string of comma-separated values. This selects which
  1492. fields will be printed for each item. See Remarks for
  1493. more information.
  1494. --^xml | -^x Prints the output in XML format to the standard output.
  1495. It is possible to specify an output file. This option
  1496. cannot be combined with '--^format'.
  1497. --^format Retrieves the output message in a specific format. See
  1498. Remarks for more info. This option cannot be combined
  1499. with '--^xml'.
  1500. This '--^format' option prevails over '--^fields' if both
  1501. are specified.
  1502. --^symlink Applies the fileinfo operation to the symlink and not
  1503. to the target.
  1504. --^encoding Specifies the output encoding, i.e.: utf-8.
  1505. See the MSDN documentation at
  1506. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  1507. to get the table of supported encodings and its format,
  1508. (at the end of the page, in the "Name" column).
  1509. item_path Items to display. Use a whitespace to separate the items.
  1510. Use double quotes (" ") to specify paths containing spaces.
  1511. == CMD_HELP_FILEINFO ==
  1512. Remarks:
  1513. This command prints a detailed list of attributes for each selected item.
  1514. Each attribute is printed on a new line by default.
  1515. The attribute list can be modified to display only the attributes the user
  1516. needs. This can be achieved using the '--^fields=<field_list>' which accepts
  1517. a string of comma-separated attribute names. This way, only those arguments
  1518. whose name has been indicated are shown.
  1519. Revision head changeset:
  1520. This option is disabled by default. Please note that retrieving this
  1521. attribute is significantly slower than the rest of them, so we advise users
  1522. to group together as many items as possible. This will improve execution
  1523. times by avoiding many separate 'cm ^fileinfo' executions.
  1524. Also, this feature is not currently available for controlled directories.
  1525. You can find below the complete list of available attribute names.
  1526. Names marked with an asterisk ('*') will not be shown by default:
  1527. ^ClientPath The local path on disk for the item.
  1528. ^RelativePath The workspace-relative path.
  1529. ^ServerPath The repository path for the item.
  1530. ^Size Item size.
  1531. ^Hash Item hash sum.
  1532. ^Owner The user the item belongs to.
  1533. ^RevisionHeadChangeset (*) The changeset of the revision loaded in the
  1534. head changeset of the branch.
  1535. (Please see note above.)
  1536. ^RevisionChangeset The changeset of the revision currently loaded
  1537. in the workspace.
  1538. ^RepSpec The repository specification for the item.
  1539. (Use 'cm ^help ^objectspec' to learn more about
  1540. rep specs.)
  1541. ^Status The workspace item status: added, checked out,
  1542. deleted, etc.
  1543. ^Type Revision type (text, binary, directory, symlink,
  1544. or unknown).
  1545. ^Changelist The changelist the item belongs to (if any).
  1546. ^IsLocked (*) Whether the item is locked by exclusive
  1547. checkout or not.
  1548. ^LockedBy (*) The user who exclusively checked out the item.
  1549. ^LockedWhere (*) The location where the item was exclusively
  1550. checked out.
  1551. ^IsUnderXlink Whether the item is located under an Xlink
  1552. or not.
  1553. ^UnderXlinkTarget The target of the Xlink the item is under
  1554. (if any).
  1555. ^UnderXlinkPath The item server path in the Xlinked repository
  1556. (if any).
  1557. ^UnderXlinkWritable Whether the Xlink the item belongs to is
  1558. writable or not.
  1559. ^UnderXlinkRelative Whether the Xlink the items belongs to is
  1560. relative or not.
  1561. ^IsXlink Whether the item itself is a Xlink or not.
  1562. ^XlinkTarget The target repository the item points to, if it
  1563. is a Xlink.
  1564. ^XlinkName The Xlink name of the item, if it is
  1565. actually one.
  1566. ^XlinkWritable Whether the Xlink item is a writable Xlink
  1567. or not.
  1568. ^XlinkRelative Whether the Xlink item is a relative Xlink
  1569. or not.
  1570. Output format parameters (--^format option):
  1571. This command accepts a format string to show the output.
  1572. The output parameters of this command are the following:
  1573. - {^ClientPath}
  1574. - {^RelativePath}
  1575. - {^ServerPath}
  1576. - {^Size}
  1577. - {^Hash}
  1578. - {^Owner}
  1579. - {^RevisionHeadChangeset}
  1580. - {^RevisionChangeset}
  1581. - {^Status}
  1582. - {^Type}
  1583. - {^Changelist}
  1584. - {^IsLocked}
  1585. - {^LockedBy}
  1586. - {^LockedWhere}
  1587. - {^IsUnderXlink}
  1588. - {^UnderXlinkTarget}
  1589. - {^UnderXlinkPath}
  1590. - {^UnderXlinkWritable}
  1591. - {^UnderXlinkRelative}
  1592. - {^IsXlink}
  1593. - {^XlinkTarget}
  1594. - {^XlinkName}
  1595. - {^XlinkWritable}
  1596. - {^XlinkRelative}
  1597. - {^RepSpec}
  1598. Please note that '--^format' and '--^xml' options are mutually exclusive, so
  1599. they can't be used at the same time.
  1600. Examples:
  1601. cm ^fileinfo file1.txt file2.txt dir/
  1602. cm ^fileinfo "New Project.csproj" --^xml
  1603. cm ^fileinfo assets.art --^fields=^ServerPath,^Size,^IsLocked,^LockedBy
  1604. cm ^fileinfo proj_specs.docx --^fields=^ServerPath,^RevisionChangeset --^xml
  1605. cm ^fileinfo samples.ogg --^format="{^ServerPath}[{^Owner}] -> {^Size}"
  1606. == CMD_DESCRIPTION_FIND ==
  1607. Runs SQL-like queries to find Unity VCS objects.
  1608. == CMD_USAGE_FIND ==
  1609. Usage:
  1610. cm ^find <object_type>
  1611. [^where <str_conditions>]
  1612. [^on ^repository '<repspec>' | ^on ^repositories '<repspec1>','<repspec2>'[,...]]
  1613. [^order ^by <sort_field> ['^asc' | '^desc']]
  1614. [[^limit <maxresults>] [^offset <offset>]]
  1615. [--^format=<str_format>] [--^dateformat=<date_format>]
  1616. [--^nototal] [--^file=<dump_file>] [--^xml]
  1617. [--^encoding=<name>]
  1618. Options:
  1619. --^format Retrieves the output message in a specific format.
  1620. Read the 'cm ^find' guide to see all the object
  1621. attributes that can be used as output format strings:
  1622. https://www.plasticscm.com/download/help/cmfind
  1623. --^dateformat Format used to output dates.
  1624. --^nototal Does not output record count at the end.
  1625. --^file File to dump results.
  1626. --^xml Prints the output in XML format to the standard output.
  1627. --^encoding Specifies the output encoding, i.e.: utf-8.
  1628. See the MSDN documentation at
  1629. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  1630. to get the table of supported encodings and its format,
  1631. (at the end of the page, in the "Name" column).
  1632. str_conditions Searches conditions on an object attributes.
  1633. repspec Searches repositories alias or specification.
  1634. In the case of '^on ^repositories', use a comma to
  1635. separate the repspec fields.
  1636. (Use 'cm ^help ^objectspec' to learn more about repository
  1637. specifications.)
  1638. sort_field The name of the field to use as sorting field. Mind there is only
  1639. a subset of field possibilities. Use 'cm ^help ^showfindobjects'
  1640. to find what objects are allowed to be ordered and by what fields.
  1641. maxresults The maximun number of results returned by the query.
  1642. offset The number of rows to skip before starting to return results
  1643. from the query.
  1644. object_type Object type to find.
  1645. Some of these objects are implementing the '^order ^by' clause.
  1646. Use 'cm ^help ^showfindobjects' to learn how to specify these
  1647. objects, the ones allowing '^order ^by' and by what fields.
  1648. You can also read the 'cm ^find' guide:
  1649. https://www.plasticscm.com/download/help/cmfind
  1650. == CMD_HELP_FIND ==
  1651. Remarks:
  1652. If no repository is specified, the search is made on the repository
  1653. configured in the workspace.
  1654. When you run queries using comparison operators (>, <, >=, <=) from the
  1655. command line, remember that the shell considers these operators as IO
  1656. redirections. So you will need to enclose the queries in double quotation
  1657. marks.
  1658. The 'cm ^find' command accepts a format string to show the output.
  1659. Each output parameter is identified by a string and the user can refer it
  1660. by typing the parameter number between '{' and '}' brackets.
  1661. Output parameters usually correspond to the attributes of the object.
  1662. These are some valid output format strings:
  1663. - --^format={^id}{^date}{^name}
  1664. - --^format="{^item}#{^branch} ^with ^date {^date}"
  1665. XML and encoding considerations:
  1666. When the '--^xml' option is specified, the command shows the command result
  1667. as an XML text in the standard output. The operating system default encoding
  1668. is used to show the text, so it is possible that not-ANSI characters are
  1669. incorrectly visualized in the console. If you redirect the command output to
  1670. a file, it will be correctly visualized. When both '--^xml' and '--^file'
  1671. options are specified, the default encoding will be utf-8.
  1672. Examples:
  1673. cm ^find ^revision
  1674. cm ^find ^revision "^where ^changeset=23 ^and ^owner='maria'"
  1675. cm ^find ^branch "^on ^repository 'rep1'"
  1676. cm ^find ^label "^on ^repositories 'rep1', '^rep:default@localhost:8084'"
  1677. cm ^find ^branch "^where ^parent='^br:/main' ^on ^repository 'rep1'"
  1678. cm ^find ^revision "^where ^item='^item:.'" --^format="{^item}#{^branch}"
  1679. cm ^find ^revision "^where ^item='^item:.'" --^xml --^file=c:\queryresults\revs.xml
  1680. cm ^find ^label "^where ^owner='^me' ^limit 10 ^offset 20"
  1681. cm ^find ^branches "^where ^owner='^me' ^order ^by ^branchname ^desc ^limit 10"
  1682. == CMD_DESCRIPTION_FINDCHANGED ==
  1683. > **This command is deprecated.** Use cm ^status instead.
  1684. Gets a list of changed files.
  1685. == CMD_USAGE_FINDCHANGED ==
  1686. Usage:
  1687. cm ^findchanged | ^fc [-^R | -^r | --^recursive] [--^checkcontent]
  1688. [--^onlychanged] [<path>]
  1689. Options:
  1690. -^R | -^r | --^recursive Recursively finds in directories.
  1691. --^checkcontent Compares files by content.
  1692. --^onlychanged Finds only changed files; checkouts will not be
  1693. obtained.
  1694. path (Default: current directory.)
  1695. Initial path to find changed files.
  1696. == CMD_HELP_FINDCHANGED ==
  1697. Remarks:
  1698. If no '--^checkcontent' option is given, Unity VCS finds changes based on
  1699. the file timestamp.
  1700. When '--^checkcontent' option is specified, the file or folder contents are
  1701. compared, instead of using the timestamp.
  1702. This command is useful to detect changed files while disconnected from
  1703. the Unity VCS server. The output can be piped to the ^checkout command,
  1704. to check the changes later (see examples).
  1705. Examples:
  1706. cm ^findchanged .
  1707. (Finds changed files in the current directory.)
  1708. cm ^findchanged -^R . | cm ^checkout -
  1709. (Checkouts changed elements.)
  1710. == CMD_DESCRIPTION_FINDCHECKEDOUT ==
  1711. > **This command is deprecated.** Use cm ^status instead.
  1712. Gets a list of checked out items.
  1713. == CMD_USAGE_FINDCHECKEDOUT ==
  1714. Usage:
  1715. cm ^findcheckouts | ^fco [--^format=<str_format>] [--^basepath]
  1716. Options:
  1717. --^format Retrieves the output message in a specific format. See
  1718. Remarks for more info.
  1719. --^basepath The path to start searching checkouts from. If not
  1720. specified, the current path is used.
  1721. == CMD_HELP_FINDCHECKEDOUT ==
  1722. Remarks:
  1723. This command is useful to checkin or undocheckout all checked out items in
  1724. one single step, redirecting the standard output to other command.
  1725. See examples.
  1726. Output format parameters (--^format option):
  1727. This command accepts a format string to show the output.
  1728. The output parameters of this command are the following:
  1729. {0} Date.
  1730. {1} Owner.
  1731. {2} Workspace info.
  1732. {3} Client machine name.
  1733. {4} Item path.
  1734. {5} Branch and repository info.
  1735. Examples:
  1736. cm ^findcheckouts --^format="File {4} changed on branch {5}"
  1737. (Finds checked out items and formats the output with file path and branch
  1738. and repository info.)
  1739. cm ^findcheckouts --^format={4} | cm ^checkin -
  1740. (Checkins all checked out items.)
  1741. cm ^findcheckouts --^format={4} | cm ^undocheckout -
  1742. (Undocheckouts of all checked out items.)
  1743. == CMD_DESCRIPTION_FINDPRIVATE ==
  1744. > **This command is deprecated.** Use cm ^status instead.
  1745. Gets a list of private items.
  1746. == CMD_USAGE_FINDPRIVATE ==
  1747. Usage:
  1748. cm ^findprivate | ^fp [-^R | -^r | --^recursive] [--^exclusions] [<path>]
  1749. Options:
  1750. -^R | -^r | --^recursive Recursively finds in directories.
  1751. --^exclusions This option allows cutting the search inside the ignored
  1752. paths, defined by the file ignore.conf.
  1753. path (Default: current directory.)
  1754. Initial path to find private files.
  1755. == CMD_HELP_FINDPRIVATE ==
  1756. Remarks:
  1757. If any path is specified, Unity VCS will begin searching from the
  1758. current directory.
  1759. This command is useful to add private items on a folder, piping the output
  1760. to the '^add' command. See examples.
  1761. Examples:
  1762. cm ^findprivate .
  1763. cm ^findprivate -^R | cm ^add -
  1764. (Recursively searches private items and add them.)
  1765. == CMD_DESCRIPTION_GETCONFIG ==
  1766. Obtains configuration info.
  1767. == CMD_USAGE_GETCONFIG ==
  1768. Usage:
  1769. cm ^getconfig [^setfileasreadonly] [^location] [^extensionworkingmode]
  1770. [^extensionprefix] [^defaultrepserver]
  1771. Options:
  1772. ^setfileasreadonly Returns whether the protected files are left as
  1773. read-only or not.
  1774. ^location Returns the client config path.
  1775. ^extensionworkingmode Returns the extension working mode.
  1776. ^extensionprefix Returns the configured extension prefix.
  1777. ^defaultrepserver Returns the location of the default repository
  1778. server.
  1779. == CMD_HELP_GETCONFIG ==
  1780. Examples:
  1781. cm ^getconfig ^setfileasreadonly
  1782. == CMD_DESCRIPTION_GETFILE ==
  1783. Downloads the content of a given revision.
  1784. == CMD_USAGE_GETFILE ==
  1785. Usage:
  1786. cm ^getfile | ^cat <revspec>[[;<output_file>] | [--^file=<output_file>]]
  1787. [--^debug] [--^symlink] [--^raw]
  1788. Options:
  1789. --^file File to save the output. By default, it is printed on the
  1790. standard output. Only usable when a single revision is
  1791. required. If more than one ^revspec is provided, this
  1792. option should be avoided and use '^revspec;^outputfile'
  1793. instead, adding as much pairs as needed separated by
  1794. whitespaces.
  1795. --^debug When a directory specification is used, the command
  1796. shows all the items in the directory, its revision id
  1797. and file system protection.
  1798. --^symlink Applies the operation to the symlink and not to the
  1799. target.
  1800. --^raw Displays the raw data of the file.
  1801. revspec Object specification. (Use 'cm ^help ^objectspec' to learn
  1802. more about specs.)
  1803. == CMD_HELP_GETFILE ==
  1804. Examples:
  1805. cm ^cat myfile.txt#^br:/main
  1806. (Obtains the last revision in branch '^br:/main' of 'myfile.txt'.)
  1807. cm ^getfile myfile.txt#^cs:3 --^file=tmp.txt
  1808. (Obtains the changeset 3 of 'myfile.txt' and write it to file 'tmp.txt'.)
  1809. cm ^cat ^serverpath:/src/foo.c#^br:/main/task003@myrepo
  1810. (Obtains the contents of '/src/foo.c' at the last changeset of branch
  1811. '/main/task003' in repository 'myrepo'.)
  1812. cm ^cat ^revid:1230@^rep:myrep@^repserver:myserver:8084
  1813. (Obtains the revision with id 1230.)
  1814. cm ^getfile ^rev:info\ --^debug
  1815. (Obtains all revisions in the 'info' directory.)
  1816. cm ^getfile "^revid:25@^rep:^default@^repserver:^localhost:8084;file_revid25.txt"
  1817. "^revid:16@^rep:^default@^repserver:^localhost:8084;file_revid_16.txt"
  1818. (Obtains two different revisions and stores each one on different files.
  1819. To list ^revid it is possible to use the command '^cm ^find ^revision'.
  1820. Mind that, to specify 'spec;dest_file' collections, it might be needed to
  1821. quote the pairs individually, then separate them using whitespaces).
  1822. == CMD_DESCRIPTION_GETREVISION ==
  1823. Loads a revision in the workspace.
  1824. == CMD_USAGE_GETREVISION ==
  1825. This command modifies the revision loaded in the workspace, so it can affect
  1826. future merges.
  1827. It is an advanced command inherited from old versions, so use it with care.
  1828. Usage:
  1829. cm ^getrevision <revspec>
  1830. Options:
  1831. revspec Object specification. (Use 'cm ^help ^objectspec' to learn
  1832. more about rev specs.)
  1833. == CMD_HELP_GETREVISION ==
  1834. Examples:
  1835. cm ^getrevision file.txt#^cs:3
  1836. (Gets changeset 3 revision of 'file.txt'.)
  1837. == CMD_DESCRIPTION_GETSTATUS ==
  1838. Gets the status of an item.
  1839. == CMD_USAGE_GETSTATUS ==
  1840. Usage:
  1841. cm ^getstatus | ^gs <item_path>[ ...] [--^format=<str_format>] [--^stats]
  1842. [-^R | -^r | --^recursive]
  1843. Options:
  1844. --^format Retrieves the output message in a specific format. See
  1845. Remarks for more info.
  1846. --^stats Prints some statistics about the get status process.
  1847. -^R | -^r | --^recursive Shows recursively the status in directories.
  1848. item_path Item or items to get status from. Use double quotes
  1849. (" ") to specify paths containing spaces. Use a
  1850. whitespace to separate paths.
  1851. == CMD_HELP_GETSTATUS ==
  1852. Remarks:
  1853. Output format parameters (--^format option):
  1854. This command accepts a format string to show the output.
  1855. The output parameters of this command are the following:
  1856. {0} Item path.
  1857. {1} Item status:
  1858. Where status can take values among the following:
  1859. 0 private
  1860. 1 checked in
  1861. 2 checked out
  1862. Reading input from stdin:
  1863. The '^getstatus' command can read paths from stdin. To do this, pass a
  1864. single dash "-".
  1865. Example:
  1866. cm ^getstatus -
  1867. Paths will be read until an empty line is entered.
  1868. This allows you to use pipe to specify which paths to get the status for.
  1869. Example:
  1870. dir /S /B *.c | cm ^getstatus --^format="Path {0} Status {1}" -
  1871. (In Windows, gets the status of all .c files in the workspace.)
  1872. Examples:
  1873. cm ^getstatus file1.txt file2.txt
  1874. (Gets the status of the files.)
  1875. cm ^gs info\ -^R --^format="The item {0} has the status {1}"
  1876. (Gets the status of the directory and all of its items and shows a
  1877. formatted output.)
  1878. == CMD_DESCRIPTION_GETTASKBRANCHES ==
  1879. Gets branches linked with a task.
  1880. == CMD_USAGE_GETTASKBRANCHES ==
  1881. Usage:
  1882. cm ^gettaskbranches | ^gtb <task_name> [--^format=<str_format>]
  1883. [--^dateformat=<date_format>]
  1884. Options:
  1885. --^format Retrieves the output message in a specific format. See
  1886. Remarks for more info.
  1887. --^dateformat Format used to output dates.
  1888. task_name The task identifier.
  1889. == CMD_HELP_GETTASKBRANCHES ==
  1890. Remarks:
  1891. Output format parameters (--^format option):
  1892. This command accepts a format string to show the output.
  1893. The output parameters of this command are the following:
  1894. {^tab} Inserts a tab space.
  1895. {^newline} Inserts a new line.
  1896. {^name} Branch name.
  1897. {^owner} Owner of the branch.
  1898. {^date} Date when the branch was created.
  1899. {^parent} Parent branch.
  1900. {^comment} Comment of the branch.
  1901. {^repname} Repository where the branch exists.
  1902. {^repserver} Server name.
  1903. Examples:
  1904. cm ^gettaskbranches 4311
  1905. cm ^gtb 4311 --^format="^br:{^name}"
  1906. cm ^gtb 4311 --^format="^br:{^name} {^date}" --^dateformat="yyyy/MM/dd HH:mm:ss"
  1907. == CMD_DESCRIPTION_GETWORKSPACEINFO ==
  1908. Shows info about the workspace selector.
  1909. == CMD_USAGE_GETWORKSPACEINFO ==
  1910. Usage:
  1911. cm ^workspaceinfo | ^wi [<wk_path>]
  1912. Options:
  1913. wk_path Path of a workspace on the machine.
  1914. == CMD_HELP_GETWORKSPACEINFO ==
  1915. Remarks:
  1916. The '^wi' command shows the working configuration of a workspace (repository,
  1917. branch, and/or label).
  1918. Examples:
  1919. cm ^wi c:\mywk
  1920. == CMD_DESCRIPTION_GETWORKSPACEFROMPATH ==
  1921. Gets workspace info from a path.
  1922. == CMD_USAGE_GETWORKSPACEFROMPATH ==
  1923. Usage:
  1924. cm ^getworkspacefrompath | ^gwp <item_path> [--^format=<str_format>] [--^extended]
  1925. Options:
  1926. --^format Retrieves the output message in a specific format. See
  1927. Remarks for more info.
  1928. --^extended Displays more information regarding the workspace: ^type
  1929. and ^dynamic on top of the others. See Remarks for more info.
  1930. item_path File or folder on disk.
  1931. == CMD_HELP_GETWORKSPACEFROMPATH ==
  1932. Remarks:
  1933. This command shows information about the workspace that is located in path.
  1934. Output format parameters (--^format option):
  1935. This command accepts a format string to show the output.
  1936. The output parameters of this command are the following:
  1937. {0} | {^wkname} Workspace name.
  1938. {1} | {^wkpath} Workspace path.
  1939. {2} | {^machine} Client machine name.
  1940. {3} | {^owner} Workspace owner.
  1941. {4} | {^guid} Workspace GUID.
  1942. {5} | {^type} Workspace type: partial (gluon) or regular.
  1943. {6} | {^dynamic} A workspace can be dynamic (plasticfs) or static.
  1944. {^tab} Inserts a tab space.
  1945. {^newline} Inserts a new line.
  1946. Examples:
  1947. cm ^getworkspacefrompath c:\myworkspace\code\file1.cpp --^format="Workspace name: {^wkname}"
  1948. cm ^gwp . --^format="Name: {^wkname} | Type: {^type}, {^dynamic}"
  1949. == CMD_DESCRIPTION_HELP ==
  1950. Gets help for a Unity VCS command.
  1951. == CMD_USAGE_HELP ==
  1952. Usage:
  1953. cm ^help <command>
  1954. == CMD_HELP_HELP ==
  1955. Mind this command is partially overlapped with the --^help option at each command.
  1956. == CMD_DESCRIPTION_IOSTATS ==
  1957. Shows statistics about the hardware.
  1958. == CMD_USAGE_IOSTATS ==
  1959. Usage:
  1960. cm ^iostats [<repserverspec>] [<list_of_tests>[ ...]]
  1961. [--^nettotalmb=<value_mb>] [--^networkiterations=<value_iter>]
  1962. [--^diskdatasize=<value_size>] [--^disktestpath=<value_path>]
  1963. [--^systemdisplaytime=<value_time>]
  1964. [--^systemdisplaytimeinterval=<value_interval>]
  1965. Options:
  1966. --^nettotalmb Indicates the amount of user data (in
  1967. MegaBytes) transmitted on a network test,
  1968. such as "^serverDownloadTest" or
  1969. "^serverUploadTest".
  1970. It must be a value between "4" and "512".
  1971. (Default: 16)
  1972. --^networkiterations Indicates the number of iterations of
  1973. "^serverDownloadTest" and/or "^serverUploadTest"
  1974. that will be run.
  1975. It must be a value between "1" and "100".
  1976. (Default: 1)
  1977. --^diskdatasize Indicates the amount of data (in MegaBytes)
  1978. that will be written and then read on the
  1979. "^diskTest".
  1980. It must be a value between "100" and "4096".
  1981. (Default: 512)
  1982. --^disktestpath Path where the "^diskTest" writes the test
  1983. files. If this parameter is not provided,
  1984. the command will try to use the system temp
  1985. path.
  1986. --^systemdisplaytime Time interval (in seconds) showing the usage
  1987. of system resources. This option is available
  1988. for the following tests: "^systemNetworkUsage"
  1989. and "^systemDiskUsage".
  1990. It must be a value between "1" and "3600".
  1991. (Default: 5 seconds).
  1992. --^systemdisplaytimeinterval Time interval (in seconds) between the
  1993. system performance samples. This option is
  1994. available for the following tests:
  1995. "^systemNetworkUsage" and "^systemDiskUsage".
  1996. It must be a value between "1" and "60".
  1997. (Default: 1 second).
  1998. repserverspec An available Unity VCS server to perform
  1999. the network tests, such as "serverUploadTest"
  2000. and/ or "serverDownloadTest".
  2001. If no server is provided, the command tries
  2002. to communicate with the server configured by
  2003. default.
  2004. (Use 'cm ^help ^objectspec' to learn more about
  2005. server specs.)
  2006. list_of_tests Available tests. Use a whitespace to separate
  2007. test fields. See Remarks for more info.
  2008. == CMD_HELP_IOSTATS ==
  2009. Remarks:
  2010. This command requires an available server be used during the network
  2011. speed tests ("^serverUploadTest" and/or "^serverDownloadTest").
  2012. The '--^diskTestPath' must point to a path that belongs to the physical
  2013. disk drive about to be tested. If no path is specified, the command tries
  2014. to use the system default temp path.
  2015. The disk drive of the specified path must have enough free space to execute
  2016. the test.
  2017. During the command execution, the system can experience a degraded
  2018. performance caused by the tests performed.
  2019. Available tests:
  2020. --^serveruploadtest (Default) Measures the data upload speed from
  2021. Unity VCS client to the server.
  2022. --^serverdownloadtest (Default) Measures the data download speed from
  2023. Unity VCS server to the client.
  2024. --^disktest (Default) Measures the disk read speed and disk
  2025. write speed.
  2026. --^systemnetworkusage Shows the current usage of system network
  2027. resources.
  2028. (It shows Network Interface performance counters
  2029. provided by Microsoft Windows).
  2030. Available in Microsoft Windows only.
  2031. --^systemdiskusage Shows the current usage of system physical
  2032. disks.
  2033. (It shows Network Interface performance counters
  2034. provided by Microsoft Windows).
  2035. Available in Microsoft Windows only.
  2036. Examples:
  2037. cm ^iostats MYSERVER:8087 --^serveruploadtest --^serverdownloadtest --^nettotalmb=32
  2038. == CMD_DESCRIPTION_ISSUETRACKER ==
  2039. Gets, updates, or finds the issue status in the specified issue tracker.
  2040. == CMD_USAGE_ISSUETRACKER ==
  2041. Usage:
  2042. cm ^issuetracker <name> ^status ^get <task_id> <parameter>[ ...]
  2043. cm ^issuetracker <name> ^status ^update <task_id> <status> <parameter>[ ...]
  2044. cm ^issuetracker <name> ^status ^find <status> <parameter>[ ...]
  2045. cm ^issuetracker <name> ^connection ^check <parameter>[ ...]
  2046. name Name of the issue tracker to connect with.
  2047. Only Jira is supported at the moment.
  2048. task_id Number of the issue to query or update.
  2049. ^status A valid status for an issue in the issue tracker.
  2050. Jira parameters (all are mandatory):
  2051. --^user=<user> The user to authenticate.
  2052. --^password=<password> The password to authenticate.
  2053. --^host=<url> The target url of the issue tracker.
  2054. --^projectkey=<key> The project key of Jira project.
  2055. == CMD_HELP_ISSUETRACKER ==
  2056. Examples:
  2057. cm ^issuetracker jira ^status ^get 11 --^user=user@mail.es --^password=pwd \
  2058. --^host=https://user.atlassian.net --^projectkey=PRJ
  2059. (Gets the status of the issue 11 for the 'PRJ' project.)
  2060. cm ^issuetracker jira ^status ^update 11 "Done" --^user=user@mail.es \
  2061. --^password=pwd --^host=https://user.atlassian.net --^projectkey=PRJ
  2062. (Updates the status to 'Done' of the issue 11 for the 'PRJ' project.)
  2063. cm ^issuetracker jira ^status ^find "Done" --^user=user@mail.es --^password=pwd \
  2064. --^host=https://user.atlassian.net --^projectkey=PRJ
  2065. (Gets the task ids whose status is set to 'Done' for the 'PRJ' project.)
  2066. cm ^issuetracker jira ^connection ^check --^user=user@mail.es --^password=pwd \
  2067. --^host=https://user.atlassian.net --^projectkey=PRJ
  2068. (Checks whether the configuration parameters are valid or not.)
  2069. == CMD_DESCRIPTION_LICENSEINFO ==
  2070. Displays license information and license usage.
  2071. == CMD_USAGE_LICENSEINFO ==
  2072. Usage:
  2073. cm ^licenseinfo | ^li [--^server=<repserverspec>] [--^inactive] [--^active]
  2074. [--^sort=(^name|^status)]
  2075. Options:
  2076. --^server Gets the license info from the specified server.
  2077. If no server is specified, executes the command on the
  2078. one configured on the client.
  2079. (Use 'cm ^help ^objectspec' to learn more about repserver
  2080. specs.)
  2081. --^inactive Shows only inactive users in the "license usage" section.
  2082. --^active Shows only active users in the "license usage" section.
  2083. --^sort Sorts users by one of the specified sort options:
  2084. '^name' or '^status'.
  2085. == CMD_HELP_LICENSEINFO ==
  2086. Remarks:
  2087. The information displayed consists of expiration date, activated and
  2088. deactivated users, etc.
  2089. Examples:
  2090. cm ^licenseinfo
  2091. cm ^licenseinfo --^server=myserver:8084
  2092. cm ^licenseinfo --^sort=^name
  2093. == CMD_DESCRIPTION_LINKTASK ==
  2094. Links a changeset to a task.
  2095. == CMD_USAGE_LINKTASK ==
  2096. Usage:
  2097. cm ^linktask | ^lt <csetspec> <ext_prefix> <task_name>
  2098. Options:
  2099. csetspec The full changeset specification to link to a task.
  2100. (Use 'cm ^help ^objectspec' to learn more about changeset
  2101. specs.)
  2102. ext_prefix The extension prefix of the configured issue tracking
  2103. system to work with.
  2104. task_name The task identifier on the issue tracking system.
  2105. == CMD_HELP_LINKTASK ==
  2106. Examples:
  2107. cm ^lt ^cs:8@^rep:default@^repserver:localhost:8084 jira PRJ-1
  2108. == CMD_DESCRIPTION_LOCK_LIST ==
  2109. Shows locks on a server.
  2110. == CMD_USAGE_LOCK_LIST ==
  2111. Usage:
  2112. cm ^lock ^list | ^ls [<revspec> [ ...]] [--^server=<server>]
  2113. [--^repository] [--^workingbranch=<brname>] [--^anystatus]
  2114. [--^onlycurrentuser] [--^onlycurrentworkspace]
  2115. [--^ignorecase]
  2116. [--^machinereadable [--^startlineseparator=<sep>]
  2117. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]
  2118. [--^smartlocks]]
  2119. Options:
  2120. --^server Repository server specification.
  2121. This option will override the default server which
  2122. is retrieved from the current workspace or the
  2123. client.conf file.
  2124. (Use 'cm ^help ^objectspec' to learn more about
  2125. server specs.)
  2126. --^repository Repository specification.
  2127. This option will only list the locks of the specified
  2128. repository.
  2129. (Use 'cm ^help ^objectspec' to learn more about
  2130. repository specs.)
  2131. --^workingbranch Branch name.
  2132. This option will only list the locks that apply to
  2133. the destination branch of the specified branch.
  2134. --^anystatus Shows locks in any status (Locked or Retained).
  2135. By default, only locks in Locked status are shown.
  2136. --^onlycurrentuser Filters the results showing only the locks performed
  2137. by the current user.
  2138. --^onlycurrentworkspace Filters the results showing only the locks performed
  2139. on the current workspace (matching them by name).
  2140. --^ignorecase Ignores casing on the paths when a serverpath spec
  2141. is used. With this flag, the command will work for
  2142. "/src/foo.c" even if the user writes "/sRc/fOO.c".
  2143. --^dateformat Format used to output dates.
  2144. --^machinereadable Outputs the result in an easy-to-parse format.
  2145. --^startlineseparator Used with the '--^machinereadable' flag, specifies how
  2146. the lines should start.
  2147. --^endlineseparator Used with the '--^machinereadable' flag, specifies how
  2148. the lines should end.
  2149. --^fieldseparator Used with the '--^machinereadable' flag, specifies how
  2150. the fields should be separated.
  2151. --^smartlocks Used with the '--^machinereadable' flag, shows all the
  2152. smart lock fields. Otherwise, it only shows the legacy locks
  2153. fields. This parameter is needed to avoid breaking
  2154. compatibility with older integrations / plugins that expect
  2155. the old format.
  2156. revspec If one or more are present, this command will display
  2157. one lock line for each specified revision if its
  2158. associated item is locked in the server. Otherwise,
  2159. this command will list all locked items in the default
  2160. server (or the one set with the '--^server' option).
  2161. Use a whitespace to separate the rev specs when using
  2162. more than one.
  2163. (Use 'cm ^help ^objectspec' to learn more about rev specs.)
  2164. == CMD_HELP_LOCK_LIST ==
  2165. Remarks:
  2166. The command will display a list of the currently locked items in the
  2167. default server. It also accepts a list of revision specifications. In this
  2168. case, only the locks belonging to the selected items will be displayed.
  2169. A '--^server=<server>' can be used to set the default server to query.
  2170. The command shows a line for every lock in the specified server:
  2171. - Repository of the locked item.
  2172. - Item id of the locked item.
  2173. - GUID of the locked item (this is only printed with the --^machinereadable flag).
  2174. - Date of the lock.
  2175. - Destination branch where the lock will be released.
  2176. - Revision id of the item loaded in the destination branch.
  2177. - Holder branch where the lock was performed.
  2178. - Revision id of the item that currently holds the lock.
  2179. - Status of the lock (Locked or Retained)
  2180. - User name who performed the lock.
  2181. - Workspace name where the lock was performed.
  2182. - Path of the locked item (server path format).
  2183. For the --^machinereadable without the --^smartlocks option, the
  2184. printed fields are:
  2185. - GUID of the locked item.
  2186. - User name who performed the lock.
  2187. - Workspace name where the lock was performed.
  2188. - Path of the locked item (server path format).
  2189. Examples:
  2190. cm ^lock ^list
  2191. cm ^lock ^list --^server=myserver:8084
  2192. cm ^lock ^list --^repository=repo@myserver:8084 --^anystatus
  2193. cm ^lock ^list --^repository=repo@myserver:8084 --^workingbranch=/main/scm21345
  2194. cm ^lock ^ls ^serverpath:/src/foo.c#^cs:99@default@localhost:8084
  2195. cm ^lock ^list ^revid:3521@default ^itemid:2381@secondary --^onlycurrentuser
  2196. cm ^lock ^ls --^onlycurrentuser --^dateformat="yy/dd/MM HH:mm:ss"
  2197. cm ^lock ^ls --^onlycurrentuser --^onlycurrentworkspace
  2198. cm ^lock ^list --^machinereadable --^startlineseparator=">" \
  2199. --^endlineseparator="<" --^fieldseparator=","
  2200. cm ^lock ^list --^machinereadable --^smartlocks --^startlineseparator=">" \
  2201. --^endlineseparator="<" --^fieldseparator=","
  2202. == CMD_DESCRIPTION_LISTUSERS ==
  2203. Lists users and groups.
  2204. == CMD_USAGE_LISTUSERS ==
  2205. Usage:
  2206. cm ^listusers | ^lu <repserverspec> [--^onlyusers] [--^onlygroups]
  2207. [--^filter=<str_filter>]
  2208. cm ^listusers | ^lu <repserverspec> --^group=<group_name>
  2209. Options:
  2210. --^onlyusers Lists only users.
  2211. --^onlygroups Lists only groups.
  2212. --^filter Lists only users and/or groups that matches the
  2213. specified filter.
  2214. --^group Lists only users from a certain group. This option is
  2215. not compatible with ^onlyusers, ^onlygroups, nor ^filter.
  2216. repserverspec Repository server specification.
  2217. (Use 'cm ^help ^objectspec' to learn more about specs.)
  2218. == CMD_HELP_LISTUSERS ==
  2219. Examples:
  2220. cm ^lu localhost:8084
  2221. (Lists all users in the server.)
  2222. cm ^listusers localhost:8084 --^onlyusers --^filter=m
  2223. (Lists only the users in the server that contains "m".)
  2224. cm ^listusers codice@cloud --^group=Administrators
  2225. (Lists only the users in the group Administrators in the 'codice@cloud' org.)
  2226. == CMD_DESCRIPTION_LOCATION ==
  2227. Returns the path of 'cm'.
  2228. == CMD_USAGE_LOCATION ==
  2229. Usage:
  2230. cm ^location
  2231. == CMD_HELP_LOCATION ==
  2232. Bear in mind this is related to your environment variables.
  2233. If you have several installations of the client, it will return
  2234. the first one in the path.
  2235. == CMD_DESCRIPTION_LOCK ==
  2236. This command allows the user to manage locks.
  2237. == CMD_USAGE_LOCK ==
  2238. Usage:
  2239. cm ^lock <command> [options]
  2240. Commands:
  2241. - ^list | ^ls
  2242. - ^unlock
  2243. - ^create | ^mk
  2244. To get more information about each command run:
  2245. cm ^lock <command> --^usage
  2246. cm ^lock <command> --^help
  2247. == CMD_HELP_LOCK ==
  2248. Examples:
  2249. cm ^lock
  2250. (The '^list' subcommand is the default.)
  2251. cm ^lock ^list --^anystatus
  2252. cm ^lock ^unlock ^itemid:56@myrep@localhost:8084
  2253. cm ^lock ^create /main/task@myrep ^itemid:56@myrep
  2254. == CMD_DESCRIPTION_LOG ==
  2255. Gets info about revisions in changesets.
  2256. == CMD_USAGE_LOG ==
  2257. Usage:
  2258. cm ^log [<csetspec> | <repspec>] [--^from=<csetspec_from>] [--^allbranches]
  2259. [--^ancestors] [--^csformat=<str_format>] [--^itemformat=<str_format>]
  2260. [--^dateformat=<str_date_format>]
  2261. [--^xml[=<output_file>]] [--^encoding=<name>]
  2262. [--^repositorypaths | --^fullpaths | --^fp]
  2263. Options:
  2264. --^from Lists all the changes made in every changeset from the
  2265. changeset specification [csetspec_from] to the
  2266. changeset specification [csetspec].
  2267. The [csetspec_from] changeset is not included in the
  2268. output.
  2269. Ignored when a repository spec is provided.
  2270. --^allbranches Shows information about the changesets created in a
  2271. specified interval, for all the branches where those
  2272. changesets were created.
  2273. --^ancestors Shows information about the reachable changesets by
  2274. following the parent and merge links for the given
  2275. changeset ([csetspec]). If the from changeset
  2276. ([csetspec_from]) is provided too, it will be used as
  2277. lower limit for all the paths. Remarks: The changeset
  2278. changes will not be shown when this option is used.
  2279. --^csformat Retrieves the changeset info in a specific format. See
  2280. Remarks for more info. This option cannot be combined
  2281. with '--^xml'.
  2282. --^itemformat Retrieves the item info in a specific format. See
  2283. Remarks for more info. This option cannot be combined
  2284. with '--^xml'.
  2285. --^dateformat Sets the output format to print dates.
  2286. --^xml Prints the output in XML format to the standard output.
  2287. It is possible to specify an output file. This option
  2288. cannot be combined with '--^csformat' and '--^itemformat'.
  2289. --^encoding Used with the '--^xml' option, specifies the encoding to
  2290. use in the XML output, i.e.: utf-8.
  2291. See the MSDN documentation at
  2292. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  2293. to get the table of supported encodings and its format,
  2294. (at the end of the page, in the "Name" column).
  2295. --^fullpaths, --^fp Force printing full workspace paths for files and
  2296. directories when possible.
  2297. --^repositorypaths Prints repository paths (server paths) instead of
  2298. workspace paths. (This option overrides the
  2299. '--^fullpaths' option).
  2300. csetspec Returns all changes made in the specified changeset.
  2301. (Use 'cm ^help ^objectspec' to learn more about changeset
  2302. specs.)
  2303. repspec Returns all changes made in the specified repository.
  2304. (Use 'cm ^help ^objectspec' to learn more about repository
  2305. specs.)
  2306. == CMD_HELP_LOG ==
  2307. Remarks:
  2308. - If neither 'csetspec' nor option is specified, the command shows
  2309. information about every changeset created within the last month in every
  2310. branch.
  2311. - If only the option '--^from' is included, the command shows the
  2312. information about every changeset from that specified changeset to the
  2313. last changeset in the branch where the changeset was created.
  2314. - If the option '--^allbranches' appears without an interval, the command
  2315. retrieves the same information as it would do if only 'csetspec' was
  2316. specified.
  2317. - If the '--^from' is used, the output contains information from the
  2318. 'csetspec_from'+1 on.
  2319. - The repository used to show the changeset information is the one loaded
  2320. in the path where the command executes on.
  2321. This command accepts a format string for the items ('--^itemformat') and a
  2322. format string for the changesets ('--^csformat').
  2323. The output parameters of '--^csformat' are the following:
  2324. {^tab} Inserts a tab space.
  2325. {^newline} Inserts a new line.
  2326. {^changesetid} Changeset number.
  2327. {^branch} Branch where the changeset was created.
  2328. {^date} Date of the changeset.
  2329. {^owner} Owner of the changeset.
  2330. {^comment} Comment of the changeset.
  2331. {^items} Items involved in the changeset.
  2332. {^repository} Repository where the changeset exists.
  2333. {^repserver} Server name.
  2334. The output parameters of '--^itemformat' are the following:
  2335. {^tab} Inserts a tab space.
  2336. {^newline} Inserts a new line.
  2337. {^path} Item path.
  2338. {^branch} Branch where the changeset was created.
  2339. {^date} Date of the changeset.
  2340. {^owner} Owner of the changeset.
  2341. {^shortstatus} Prints the short format for the status. See below.
  2342. {^fullstatus} Prints the long format for the status. See below.
  2343. Short format and its corresponding long format:
  2344. '^A' ^Added
  2345. '^D' ^Deleted
  2346. '^M' ^Moved
  2347. '^C' ^Changed
  2348. These are valid output strings:
  2349. - --^csformat="{^newline}Changeset {^changesetid} created on {^date};{^tab} changed items: {^items}."
  2350. - --^itemformat="{^newline}The item {^path} was changed in the branch {^branch}."
  2351. Date format parameters (--^dateformat):
  2352. To specify the output format in which dates will be printed.
  2353. See the supported formats specified at:
  2354. https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings
  2355. Examples:
  2356. cm ^log
  2357. (Shows information about every changeset created in the last month in every
  2358. branch.)
  2359. cm ^log ^cs:16
  2360. (Shows information about the changes done in the changeset 16 in the branch
  2361. where the changeset was created.)
  2362. cm ^log ^cs:16 --^csformat="{^newline}Changeset {^changesetid} created on \
  2363. {^date};{^tab} changed items: {^items}."
  2364. (Shows the information in the specified format.)
  2365. cm ^log --^from=^cs:20 ^cs:50
  2366. (Shows the information about every revision contained in every changeset
  2367. from the changeset 21 to the changeset 50.)
  2368. cm ^log --^from=^cs:20 ^cs:50 --^allbranches
  2369. (Shows the information about every revision contained in every changeset
  2370. from the changeset 21 to the changeset 50 in every branch of the
  2371. repository.)
  2372. cm ^log ^rep:myrep@localhost:8084
  2373. (Shows information about the changes done in the specified repository.
  2374. No workspace is required to run the command.)
  2375. cm ^log --^from=^cs:20@^rep:mainRep@localhost:8084
  2376. (Shows the information about every revision contained in every changeset
  2377. from the changeset 21. No workspace is required to run the command, because
  2378. the full changeset spec was specified.)
  2379. == CMD_DESCRIPTION_LIST ==
  2380. Lists the contents of a tree.
  2381. == CMD_USAGE_LIST ==
  2382. Usage:
  2383. cm ^ls | ^dir [<paths>[ ...]] [--^format=<str_format>] [--^symlink]
  2384. [--^selector[=<selector_format>]] [--^tree=<obj_spec>]
  2385. [-^R | -^r | --^recursive]
  2386. [--^xml[=<output_file>]] [--^encoding=<name>]
  2387. Options:
  2388. --^format Retrieves the output message in a specific format. See
  2389. Remarks for more info. This option cannot be combined
  2390. with '--^xml'.
  2391. --^symlink Applies the operation to the symlink and not to the
  2392. target.
  2393. --^selector Gets the content from the active workspace selector.
  2394. If selector_format is specified, then lists the
  2395. specified selector.
  2396. This is mostly deprecated since selectors are
  2397. no longer a central part of Unity VCS since 4.x.
  2398. --^tree Lists the tree in the specified changeset or branch.
  2399. (Use 'cm ^help ^objectspec' to learn more about specs.)
  2400. -^R | -^r | --^recursive Lists recursively.
  2401. --^xml Prints the output in XML format to the standard output.
  2402. It is possible to specify an output file. This option
  2403. cannot be combined with '--^format'.
  2404. --^encoding Used with the '--^xml' option, specifies the encoding to
  2405. use in the XML output, i.e.: utf-8.
  2406. See the MSDN documentation at
  2407. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  2408. to get the table of supported encodings and its format,
  2409. (at the end of the page, in the "Name" column).
  2410. paths List of paths to show. Use a whitespace to separate
  2411. paths. Use double quotes (" ") to specify paths
  2412. containing spaces.
  2413. == CMD_HELP_LIST ==
  2414. Remarks:
  2415. - Path can be typed with meta-characters.
  2416. - The list depends on the workspace selector.
  2417. - The output of the command can be formatted specifying a format string.
  2418. - If '--^tree' or '--^selector' options are specified, the given
  2419. path must be a server path (a.k.a.: 'cm path'): /dir/file.txt, not a
  2420. workspace path: C:\Users\myuser\mywk\dir\file.txt
  2421. - If no path is provided, the workspace path assumed is the current
  2422. directory. If '--^tree' or '--^selector' options are used, then
  2423. the root path ("/") is assumed.
  2424. The default format string is:
  2425. "{^size,10} {^date:dd/MM/yyyy} {^date:HH:mm}\
  2426. {^type,-6} {^location,-12} {^checkout,-5} {^name}\
  2427. {^symlinktarget}"
  2428. Output format parameters (--^format option):
  2429. This command accepts a format string to show the output.
  2430. The output parameters of this command are the following:
  2431. - {^size}
  2432. - {^formattedsize}
  2433. - {^date}
  2434. - {^type}
  2435. - ^dir: directory,
  2436. - ^txt: text file,
  2437. - ^File: file.
  2438. - {^location} (Example: ^br:branch#cset)
  2439. - {^checkout}
  2440. - {^name}
  2441. - {^changeset}
  2442. - {^path}
  2443. - {^repspec}
  2444. - {^owner}
  2445. - {^revid}
  2446. - {^parentrevid}
  2447. - {^itemid}
  2448. - {^brid}
  2449. - {^repid}
  2450. - {^server}
  2451. - {^symlinktarget}
  2452. - {^hash}
  2453. - {^chmod}
  2454. - {^wkpath} (Path relative to workspace root)
  2455. - {^branch}
  2456. - {^newlocation} (cset@branch)
  2457. - {^guid} (Will take longer to resolve)
  2458. - {^itemguid}
  2459. You can customize the '^ls' format setting the PLASTIC_LS_FORMAT environment
  2460. variable.
  2461. Examples:
  2462. cm ^ls
  2463. cm ^ls c:\workspace\src
  2464. cm ^ls --^format={^name}
  2465. (Only file names.)
  2466. cm ^ls --^symlink
  2467. (Displays information about the symlink instead of the target file or
  2468. directory.)
  2469. cm ^ls code --^selector
  2470. (Shows the content of the 'code' subdirectory from the current workspace
  2471. selector.)
  2472. cm ^ls /code --^selector="^rep 'myrep' ^path '/' ^branch '/^main'"
  2473. (Shows the content of the '/code' subdirectory on the specified selector.
  2474. Note that the path is specified in server format.)
  2475. cm ^ls /code --^tree=44@myrep@denver:7070
  2476. (Lists the '/code' subdirectory at changeset 44 at repo 'myrep' at server
  2477. 'denver:7070'.)
  2478. cm ^ls /code --^tree=^br:/main/scm13596@myrep@denver:7070
  2479. (Lists the '/code' subdirectory at the latest changeset in branch
  2480. '/main/scm13596' at repo 'myrep' at server 'denver:7070'.)
  2481. cm ^ls /code --^tree=ae1390ed-7ce9-4ec3-a155-e5a61de0dc77@myrep@denver:7070
  2482. (Lists the '/code' subdirectory at changeset
  2483. ae1390ed-7ce9-4ec3-a155-e5a61de0dc77 at repo 'myrep' at server
  2484. 'denver:7070'.)
  2485. == CMD_DESCRIPTION_TRIGGER_LIST ==
  2486. Lists the triggers of a given type on a server.
  2487. == CMD_USAGE_TRIGGER_LIST ==
  2488. Usage:
  2489. cm ^trigger | ^tr ^list | ^ls [<subtype-type>] [--^server=<repserverspec>]
  2490. [--^format=<str_format>]
  2491. Options:
  2492. --^server Lists the triggers on the specified server.
  2493. If no server is specified, executes the command on the
  2494. one configured on the client.
  2495. (Use 'cm ^help ^objectspec' to learn more about server
  2496. specs.)
  2497. --^format Retrieves the output message in a specific format. See
  2498. Remarks for more info.
  2499. subtype-type Trigger execution and trigger operation.
  2500. (Use 'cm ^showtriggertypes' to see a list of trigger
  2501. types.)
  2502. == CMD_HELP_TRIGGER_LIST ==
  2503. Remarks:
  2504. If the type is not specified, lists all the triggers on the server.
  2505. Output format parameters (--^format option):
  2506. This command accepts a format string to show the output.
  2507. The output parameters of this command are the following:
  2508. {0} Trigger position.
  2509. {1} Trigger name.
  2510. {2} Trigger path.
  2511. {3} Trigger owner.
  2512. {4} Trigger type.
  2513. {5} Trigger filter.
  2514. Examples:
  2515. cm ^trigger list after-mklabel
  2516. (Lists all triggers of type 'after-mklabel' on the server configured on the
  2517. client.)
  2518. cm ^tr ^ls ^before-mkbranch --^server=myserver:8084
  2519. (Lists all triggers of type 'before-mkbranch' on server 'myserver:8084'.)
  2520. == CMD_DESCRIPTION_MANIPULATESELECTOR ==
  2521. > **This command is deprecated.**
  2522. == CMD_USAGE_MANIPULATESELECTOR ==
  2523. Usage:
  2524. cm ^manipulateselector | ^ms [<wk_path> | <wk_spec>] --^atdate=<sel_date>
  2525. wk_path Path of the workspace.
  2526. wk_spec Workspace specification. (Use 'cm ^help ^objectspec' to
  2527. learn more about specs.)
  2528. Options:
  2529. --^atdate Returns a selector that will recreate the workspace as
  2530. it would have looked at the specified date.
  2531. == CMD_HELP_MANIPULATESELECTOR ==
  2532. Remarks:
  2533. If neither path nor workspace spec is specified, the command will take the
  2534. current directory as workspace path.
  2535. Examples:
  2536. cm ^manipulateselector c:\workspace --^atdate=yyyy-MM-ddTHH:mm:ss
  2537. cm ^manipulateselector --^atdate=yyyy-MM-ddTHH:mm:ss
  2538. cm ^manipulateselector > mySelector.txt --^atdate=yyyy-MM-ddTHH:mm:ss
  2539. cm ^manipulateselector ^wk:build_wk@BUILDER --^atdate=yyyy-MM-ddTHH:mm:ss
  2540. == CMD_DESCRIPTION_MERGE ==
  2541. Merges a branch with another branch.
  2542. == CMD_USAGE_MERGE ==
  2543. Usage:
  2544. cm ^merge <source_spec> [--^merge] [--^cherrypicking] [--^forced]
  2545. [--^mergetype=(^onlyone|^onlysrc|^onlydst|^try|^forced)]
  2546. [--^interval-origin=<csetspec> | --^ancestor=<csetspec>]
  2547. [--^keepsource | --^ks] [--^keepdestination | --^kd]
  2548. [--^automaticresolution=<conflict-types>[;...]]
  2549. [--^subtractive] [--^mount] [--^printcontributors]
  2550. [--^noprintoperations] [--^silent]
  2551. [(--^to=<brspec> | --^destination=<brspec>)[--^shelve]]
  2552. [--^no-dst-changes]
  2553. [-^c=<str_comment> | --^commentsfile=<comments_file>]
  2554. [--^resolveconflict --^conflict=<index>
  2555. --^resolutionoption=(^src|^dst|(^rename --^resolutioninfo=<strname>))
  2556. --^mergeresultfile=<path> --^solvedconflictsfile=<path>]
  2557. [--^nointeractiveresolution]
  2558. [--^xml[=<output_file>]] [--^encoding=<name>]
  2559. [--^machinereadable [--^startlineseparator=<sep>]
  2560. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  2561. Options:
  2562. --^merge Performs the merge. Otherwise, prints the
  2563. conflicts found.
  2564. --^cherrypicking Merges the changes included on the source
  2565. changesets. This option is not used if the merge
  2566. source specification is a label.
  2567. --^forced Does not check if the source and destination are
  2568. already connected.
  2569. This option is only available for interval merge
  2570. and cherry picking.
  2571. --^mergetype Type of the merge. See Remarks for more info.
  2572. --^interval-origin Specifies which changeset is chosen as the
  2573. interval origin, so the merge will only take the
  2574. differences between the source changeset and the
  2575. specified interval origin.
  2576. --^ancestor This is an alias of '--^interval-origin'.
  2577. --^keepsource Accepts all changes from source contributor for
  2578. items with conflicts.
  2579. --^keepdestination Preserves changes from destination contributor
  2580. for items with conflicts.
  2581. --^automaticresolution Used to resolve directory conflicts. This option
  2582. lets you choose whether the source or the
  2583. destination contributor should be automatically
  2584. selected to resolve the conflict.
  2585. Use a semicolon to separate conflict types.
  2586. See Remarks for more info.
  2587. --^subtractive Deletes changes introduced by a merge. The
  2588. parameter passed to the command (source_spec) is
  2589. used to specify which is the source to delete
  2590. changes. It must be a changeset. In the case of a
  2591. changeset interval, the '--^interval-origin' must
  2592. be used to define the interval origin. To remove
  2593. a change, the system creates a new checked out
  2594. revision which will have the content of the
  2595. previous one except for the deleted changes.
  2596. --^mount The mount point for the given repository.
  2597. --^printcontributors Prints the contributors (base, source, and
  2598. destination).
  2599. --^noprintoperations Silently resolves merges without showing
  2600. information about the resolution.
  2601. --^silent No output is shown unless an error happens.
  2602. --^to | --^destination Performs a merge-to operation to the specified
  2603. branch (by entering a branch spec or brspec)
  2604. with full conflict resolution.
  2605. (Use 'cm ^help ^objectspec' to learn more about
  2606. branch specs.)
  2607. A "merge-to" (or workspace-less merge) is a merge
  2608. done in the server side. While normal merges
  2609. happen on a workspace merging "from" a branch,
  2610. label or changeset, a merge-to happens entirely
  2611. on the server. While in normal merges the
  2612. "destination" is the workspace, in "merge-to" a
  2613. destination must be always specified (that's why
  2614. we call it "to").
  2615. Check the following link for more information
  2616. about the "merge to" feature:
  2617. https://www.plasticscm.com/download/help/mergeto
  2618. --^shelve Creates a shelve with the changes of the merge
  2619. result (plus merge traceability info) instead of
  2620. creating a new changeset. This option is not
  2621. available when the merge source is a shelve. This
  2622. option is only available for server-side-merge
  2623. (a.k.a. "merge-to"). Hence, the '--^to' and
  2624. '--^merge' options are required.
  2625. --^no-dst-changes Ensures that the destination contributor doesn't
  2626. have changes (the destination changeset is also
  2627. the common ancestor). When there are changes on
  2628. the destination, the merge is not allowed.
  2629. -^c Applies the specified comment to the changeset
  2630. created in the merge operation.
  2631. --^commentsfile Applies the comment in the specified file to the
  2632. changeset created in the merge operation.
  2633. --^resolveconflict (Mainly used by plugins. See Remarks for more info.)
  2634. Used to solve a directory conflict.
  2635. --^conflict Used with the '--^resolveconflict' flag, specifies
  2636. the index of the conflict to solve starting at 1.
  2637. --^resolutionoption Used with the '--^resolveconflict' flag, indicates
  2638. the type of the conflict resolution. Use one of
  2639. the following options: '^src', '^dst', '^rename'.
  2640. See Remarks for more info.
  2641. --^resolutioninfo Used with the '--^resolveconflict' flag, provides
  2642. the name to use when the '--^resolutionoption'
  2643. option is 'rename'.
  2644. --^mergeresultfile Used with the '--^resolveconflict' flag, outputs
  2645. into a file the information of the merge result
  2646. between different calls .The specified path will
  2647. be created during the first call and updated on
  2648. each next call.
  2649. --^solvedconflictsfile Used with the '--^resolveconflict' flag, outputs
  2650. into a file the information of the conflicts
  2651. solved between different calls. The specified
  2652. path will be created during the first call and
  2653. updated on each next call.
  2654. --^nointeractiveresolution (Mainly used by plugins. See Remarks for more info.)
  2655. Avoids prompting the user for manual conflict.
  2656. This way, a directory conflict won't be solved.
  2657. --^machinereadable (Mainly used by plugins. See Remarks for more info.)
  2658. Outputs the result in an easy-to-parse format.
  2659. --^xml Prints the output in XML format to the standard output.
  2660. It is possible to specify an output file. This option
  2661. cannot be combined with '--^format' nor '--^resolveconflict'.
  2662. --^encoding Used with the '--^xml' option, specifies the encoding to
  2663. use in the XML output, i.e.: utf-8.
  2664. See the MSDN documentation at
  2665. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  2666. to get the table of supported encodings and its format,
  2667. (at the end of the page, in the "Name" column).
  2668. --^startlineseparator Used with the '--^machinereadable' flag, specifies
  2669. how the lines should start. (Default: empty string.)
  2670. --^endlineseparator Used with the '--^machinereadable' flag, specifies
  2671. how the lines should end. (Default: empty string.)
  2672. --^fieldseparator Used with the '--^machinereadable' flag, specifies
  2673. how the fields should be separated. (Default:
  2674. whitespace.)
  2675. source_spec Specification of the source object to merge from
  2676. (See Remarks for more info.)
  2677. == CMD_HELP_MERGE ==
  2678. Remarks:
  2679. This command is used to merge changes between two branches or between a
  2680. label and a branch. The destination of the merge must be always a branch.
  2681. The merge source is specified as an argument.
  2682. Destination is the current content of the workspace.
  2683. For example, to display the elements that will be merged from branch
  2684. task001 to the main branch, the selector must point to the main branch,
  2685. the workspace must be updated, and then:
  2686. cm ^merge ^br:/task001
  2687. To really perform the merge, '--^merge' option is added:
  2688. cm ^merge ^br:/task001 --^merge
  2689. To define the merge source, the following specs can be used:
  2690. - Branch specification (brspec):
  2691. - cm merge [^br:/]br_name
  2692. - Example: cm merge ^br:/main/task001
  2693. (Merges from the last changeset on this branch.)
  2694. - Label specification (lbspec):
  2695. - cm merge ^lb:lb_name
  2696. - Example: cm merge ^lb:BL001
  2697. (Merges from the labeled changeset.)
  2698. - Changeset specification (csetspec):
  2699. - cm merge ^cs:cs_number
  2700. - Example: cm merge ^cs:25
  2701. (Merges from the given changeset content.)
  2702. - Shelve specification (shspec):
  2703. - cm merge ^sh:shelve_number
  2704. - Example: cm merge ^sh:2
  2705. (Merges from the given shelve content.)
  2706. To automatically resolve directory conflicts, use '--^automaticresolution'
  2707. option and specify the type of conflict followed by the contributor
  2708. (source or destination) that must be selected during the merge operation.
  2709. (Separate each "type of conflict"-"contributor" pair by a semicolon (;).)
  2710. For example:
  2711. cm ^merge ^cs:2634 --^merge --^automaticresolution=^eviltwin-src;^changedelete-src
  2712. (The merge operation from changeset 2634 resolves the "^eviltwin" and
  2713. "^changedelete" conflicts by keeping the source ("-^src") contributor in
  2714. both cases.)
  2715. - A "-^src" suffix after a conflict type tells the merge command to keep the
  2716. source contributor changes.
  2717. - A "-^dst" suffix will keep the destination contributor changes.
  2718. This is the list of conflict types the merge command supports:
  2719. - ^movedeviltwin
  2720. - ^eviltwin
  2721. - ^changedelete
  2722. - ^deletechange
  2723. - ^movedelete"
  2724. - ^deletemove
  2725. - ^loadedtwice
  2726. - ^addmove
  2727. - ^moveadd
  2728. - ^divergentmove
  2729. - ^cyclemove
  2730. - ^all
  2731. The "^all" value overrides the other options. In the following example,
  2732. "^eviltwin-dst" will be ignored:
  2733. cm ^merge ^br:/main/task062 --^merge --^automaticresolution=^all-src;^eviltwin-dst
  2734. Check the following link to learn more about merge conflicts:
  2735. https://www.plasticscm.com/download/help/directorymerges
  2736. These are the options for '--^mergetype':
  2737. ^onlyone Automatic merge if only one contributor modified the item.
  2738. ^onlysrc Automatic merge if only source contributor modified the item.
  2739. ^onlydst Automatic merge if only destination contributor modified the item.
  2740. ^try Automatic merge if only one contributor has modified the
  2741. conflictive piece of code (each conflict).
  2742. ^forced Always try to solve all non-automatic conflicts.
  2743. These are the options that are mainly used by plugins and integrations:
  2744. - '--^resolveconflict' to solve a directory conflict. You also have to
  2745. use the following options:
  2746. - '--^conflict' is the index of the conflict that you want to
  2747. solve, starting at 1.
  2748. - '--^resolutionoption' indicates the conflict resolution to
  2749. use. This can be:
  2750. - '^src' to keep the source change and discard the
  2751. destination change
  2752. - '^dst' to keep the destination change and discard the
  2753. source change
  2754. - '^rename' (only if the conflict type supports this
  2755. resolution), to rename the destination to the given name
  2756. provided with the '--^resolutioninfo' option.
  2757. - '--^resolutioninfo' to provide the name to use on a
  2758. '^rename' resolution
  2759. - '--^mergeresultfile' and '--^solvedconflictsfile', both used to
  2760. store the merge info between different calls.
  2761. - '--^nointeractiveresolution' indicates the merge to not ask the user for
  2762. manual conflict resolution.
  2763. - '--^machinereadable' and '--^startlineseparator', '--^endlineseparator',
  2764. '--^fieldseparator' options to print the output on a machine-readable
  2765. way (easier-to-parse).
  2766. Set the PLASTICEDITOR environment variable to specify an editor for
  2767. entering comments. If the PLASTICEDITOR environment variable is set, and
  2768. the comment is empty, the editor will be automatically launched to allow
  2769. you to specify the comment.
  2770. Specification of the source:
  2771. Branch specification '[^br:/]br_name'
  2772. Label specification '^lb:lb_name'
  2773. Changeset specification '^cs:cs_number'
  2774. Shelve specification '^sh:shelve_number'
  2775. (Use 'cm ^help ^objectspec' to learn more about specs.)
  2776. Examples:
  2777. cm ^merge ^br:/task001
  2778. (Does not merge, just prints items to be merged.)
  2779. cm ^merge ^br:/task001 --^merge
  2780. (Does merge from branch 'task001'.)
  2781. cm ^merge ^cs:5 --^merge --^cherrypicking --^interval-origin=^cs:2
  2782. (Cherry pick from the changeset interval (2,5].)
  2783. cm ^merge ^cs:8 --^merge --^subtractive --^keepdestination
  2784. (Subtractive merge from changeset 8, keeping destination changes for those
  2785. elements with conflicts.)
  2786. cm ^merge ^br:/main/task001 --^to=^br:/main --^merge -^c="Integrated new UI"
  2787. (Does server-side merge, a.k.a. merge-to, from branch 'task001' to branch
  2788. 'main' and sets a comment.)
  2789. cm ^merge ^br:/main/task001 --^to=^br:/main --^merge --^shelve
  2790. (Does server-side merge from branch 'task001' to branch 'main' and leaves
  2791. the result on a shelve.)
  2792. cm ^merge ^sh:2 --^to=^br:/main --^merge --^no-dst-changes
  2793. (Applies the shelve 2 into 'main' only if it was created from the current
  2794. 'main' head')
  2795. cm ^merge --^machinereadable --^startlineseparator=start@_@line \
  2796. --^endlineseparator=new@_@line --^fieldseparator=def#_#sep \
  2797. --^mergeresultfile=C:\Users\Borja\AppData\Local\Temp\2tmp4D6C.tmp \
  2798. --^solvedconflictsfile=C:\Users\Borja\AppData\Local\Temp\2tmp4D6D.tmp \
  2799. --^resolveconflict --^conflict=1 --^resolutionoption=rename \
  2800. --^resolutioninfo=bin_dst ^br:/main/task --^merge
  2801. (Example for plugins and integrations)
  2802. == CMD_DESCRIPTION_ATTRIBUTE_CREATE ==
  2803. Creates a new attribute.
  2804. == CMD_USAGE_ATTRIBUTE_CREATE ==
  2805. Usage:
  2806. cm ^attribute | ^att ^create | ^mk <att_name>
  2807. Options:
  2808. att_name Attribute name
  2809. == CMD_HELP_ATTRIBUTE_CREATE ==
  2810. Remarks:
  2811. Set the PLASTICEDITOR environment variable to specify an editor for
  2812. entering comments. If the PLASTICEDITOR environment variable is set, and
  2813. the comment is empty, the editor will be automatically launched to allow
  2814. you to specify the comment.
  2815. Examples:
  2816. cm ^attribute ^create status
  2817. (Creates the attribute 'status'.)
  2818. cm ^att ^mk integrated
  2819. (Creates the attribute 'integrated'.)
  2820. == CMD_DESCRIPTION_BRANCH ==
  2821. Allows the user to manage branches.
  2822. == CMD_USAGE_BRANCH ==
  2823. Usage:
  2824. cm ^branch | ^br <command> [options]
  2825. Commands:
  2826. - ^create | ^mk
  2827. - ^delete | ^rm
  2828. - ^rename
  2829. - ^history
  2830. - ^showmain
  2831. - ^showmerges
  2832. To get more information about each command run:
  2833. cm ^branch <command> --^usage
  2834. cm ^branch <command> --^help
  2835. == CMD_HELP_BRANCH ==
  2836. Examples:
  2837. cm ^branch /main/scm21345
  2838. cm ^branch ^create /main/scm21345
  2839. cm ^branch ^delete /main/scm21345
  2840. cm ^branch ^rename /main/scm21345 scm21346
  2841. cm ^branch ^history /main/scm21345
  2842. cm ^branch ^showmain
  2843. cm ^branch ^showmerges file.txt
  2844. == CMD_DESCRIPTION_BRANCH_CREATE ==
  2845. Creates a new branch.
  2846. == CMD_USAGE_BRANCH_CREATE ==
  2847. Usage:
  2848. cm ^branch | ^br [^create | ^mk] <brspec>
  2849. [--^changeset=<csetspec> | --^label=<lbspec>]
  2850. [-^c=<str_comment> | -^commentsfile=<comments_file>]
  2851. Options:
  2852. --^changeset Changeset used as starting point for the new branch.
  2853. (Use 'cm ^help ^objectspec' to learn more about cset specs.)
  2854. --^label Label used as starting point for the new branch.
  2855. (Use 'cm ^help ^objectspec' to learn more about label specs.)
  2856. -^c Fills in the comment field of the new branch with the
  2857. specified text.
  2858. -^commentsfile Fills in the comment field of the new branch with the
  2859. contents of the specified file.
  2860. brspec The new branch name or spec.
  2861. (Use 'cm ^help ^objectspec' to learn more about branch specs.)
  2862. == CMD_HELP_BRANCH_CREATE ==
  2863. Remarks:
  2864. To create a top-level branch, specify the name without any hierarchy.
  2865. For example:
  2866. cm ^br /dev
  2867. If no optional parameter '--^changeset' is specified, the base of the new
  2868. branch will be the last changeset on the parent branch. If the new branch
  2869. is a top-level branch, the base changeset used will be cset 0.
  2870. You can specify a comment using either the '-^c' or the '-^m' switches:
  2871. cm ^branch /main/task001 -^c="This is the comment"
  2872. cm ^branch /main/task001 -^m "This is the comment"
  2873. Set the PLASTICEDITOR environment variable to specify an editor for
  2874. entering comments. If the PLASTICEDITOR environment variable is set, and
  2875. the comment is empty, the editor will be automatically launched to allow
  2876. you to specify the comment.
  2877. Examples:
  2878. cm ^branch task001
  2879. cm ^branch ^create task001
  2880. cm ^branch ^mk task001
  2881. cm ^br ^mk task001
  2882. (All of the examples above, create a top-level 'task001' branch in the
  2883. repository of the current workspace.)
  2884. cm ^branch ^br:/task001/task002@
  2885. (Creates 'task002' branch as child of 'task001'.)
  2886. cm ^br /main/task001@myrep@myserver:8084 -^c="my comment"
  2887. (Creates 'task001' branch as child of 'main' in repository
  2888. 'myrep@myserver:8084' with comment 'my comment'.)
  2889. cm ^branch ^br:/main/task001 --^changeset=2837 -^commentsfile=commenttask001.txt
  2890. (Creates the 'task001' branch as child of 'main' with base 'changeset=2837',
  2891. and applies the comment in 'commenttask001.txt' file.)
  2892. == CMD_DESCRIPTION_BRANCH_DELETE ==
  2893. Deletes one or more branches.
  2894. == CMD_USAGE_BRANCH_DELETE ==
  2895. Usage:
  2896. cm ^branch | ^br ^delete | ^rm <brspec>[ ...]
  2897. [--^delete-changesets]
  2898. brspec Branch to delete. Use a whitespace to separate branches.
  2899. (Use 'cm ^help ^objectspec' to learn more about branch
  2900. specs.)
  2901. Options:
  2902. --^delete-changesets For non-emtpy branches, first deletes the changesets
  2903. within the branch, then deletes the branch.
  2904. The operation will fail in the following scenarios:
  2905. - The branch includes the changeset zero (the main
  2906. branch in your repository).
  2907. - One or more changesets in the branch have a label
  2908. pointing to them.
  2909. - One or more shelvesets where created from changesets
  2910. in the branch.
  2911. - The branch has child branches (even if the child
  2912. branch is empty).
  2913. - One or more changesets in the branch are the source
  2914. of a merge, and the destination is not included in
  2915. the branch being deleted.
  2916. The operation is atomic. Either all or none of the
  2917. changesets in the branch are removed.
  2918. == CMD_HELP_BRANCH_DELETE ==
  2919. Remarks:
  2920. This command deletes one or more branches.
  2921. Examples:
  2922. cm ^branch ^delete /main/task001
  2923. (Deletes the branch with name 'task001' that is a child of 'main' in the
  2924. repository of the current workspace.)
  2925. cm ^br ^rm main/task002 /main/task012@reptest@myserver:8084
  2926. (Deletes branches '/main/task002' in the repository of the current workspace
  2927. and '/main/task012' in the repository 'reptest@myserver:8084'.)
  2928. cm ^br ^rm main/task002 --delete-changesets
  2929. (Deletes branch '/main/task002' and all of its changesets at once).
  2930. == CMD_DESCRIPTION_BRANCH_RENAME ==
  2931. Renames a branch.
  2932. == CMD_USAGE_BRANCH_RENAME ==
  2933. Usage:
  2934. cm ^branch | ^br ^rename <brspec> <new_name>
  2935. brspec Branch to rename.
  2936. (Use 'cm ^help ^objectspec' to learn more about branch specs.)
  2937. new_name New name for the branch.
  2938. == CMD_HELP_BRANCH_RENAME ==
  2939. Remarks:
  2940. This command renames a branch.
  2941. Examples:
  2942. cm ^branch ^rename /main/task0 task1
  2943. (Renames branch '/main/task0' to '/main/task1'.)
  2944. cm ^br ^rename ^br:/main@reptest@server2:8084 secondary
  2945. (Renames the 'main' branch of repository 'reptest' to 'secondary'.)
  2946. == CMD_DESCRIPTION_BRANCH_HISTORY ==
  2947. Shows the history of a branch.
  2948. == CMD_USAGE_BRANCH_HISTORY ==
  2949. Usage:
  2950. cm ^branch | ^br ^history <brspec> [--^dateformat=<date_format>]
  2951. [--^machinereadable]
  2952. brspec The branch specification to obtain the history.
  2953. (Use 'cm ^help ^objectspec' to learn more about branch specs.)
  2954. Options:
  2955. --^dateformat Format used to output dates.
  2956. --^machinereadable Outputs the result in an easy-to-parse format.
  2957. == CMD_HELP_BRANCH_HISTORY ==
  2958. Examples:
  2959. cm ^branch ^history ^br:/main/scm001@myrepository@myserver:8084
  2960. (Displays the history of '/main/scm001' branch of 'myrepository' repository
  2961. on 'myserver' server.)
  2962. cm ^br ^history main --^dateformat="yyyy, dd MMMM" --^machinereadable
  2963. (Displays the history of the 'main' branch of the current repository,
  2964. with a given date format, and in an easy-to-parse format.)
  2965. == CMD_DESCRIPTION_BRANCH_SHOWMAIN ==
  2966. Shows the main branch of a repository. The main branch of your repository is '/main' by default.
  2967. == CMD_USAGE_BRANCH_SHOWMAIN ==
  2968. Usage:
  2969. cm ^branch | ^br ^showmain [<repspec>] [--^encoding=<name>]
  2970. [--^format=<format_str>] [--^dateformat=<date_format>]
  2971. Options:
  2972. --^encoding Specifies the encoding to use in the output,
  2973. i.e.: utf-8.
  2974. See the MSDN documentation at
  2975. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  2976. to get the table of supported encodings and its format,
  2977. (at the end of the page, in the "Name" column).
  2978. --^format Retrieves the output message in a specific format. See
  2979. Remarks for more info.
  2980. --^dateformat Format used to output dates.
  2981. repspec The repository specification where to show the main
  2982. branch. If no repspec is specified, the command will show
  2983. the main branch for the repository of the current
  2984. workspace.
  2985. (Use 'cm ^help ^objectspec' to learn more about rep specs.)
  2986. == CMD_HELP_BRANCH_SHOWMAIN ==
  2987. Remarks:
  2988. This command shows the main branch of a repository.
  2989. Output format parameters (--^format option):
  2990. This command accepts a format string to show the output.
  2991. The output parameters of this command are the following:
  2992. {^id} Branch id.
  2993. {^comment} Comment.
  2994. {^date} Date.
  2995. {^name} Name.
  2996. {^owner} Owner.
  2997. {^parent} Parent branch name.
  2998. {^repository} Repository.
  2999. {^repname} Repository name.
  3000. {^repserver} Server.
  3001. {^changeset} Head changeset of the branch.
  3002. Examples:
  3003. cm ^branch ^showmain
  3004. (Displays the main branch for the repository of the current workspace.)
  3005. cm ^branch ^showmain repo@server:8084
  3006. (Displays the main branch for the repository 'repo' in server
  3007. 'server:8084'.)
  3008. cm ^br ^showmain --^dateformat="yyyy, dd MMMM" --^encoding=utf-8
  3009. (Displays the main branch of the repository with a given date format,
  3010. and the output is in utf-8.)
  3011. cm ^br ^showmain --^format="{^id} - {^name}"
  3012. (Displays the main branch of the repository, printing only its id and name.)
  3013. == CMD_DESCRIPTION_BRANCH_SHOWMERGES ==
  3014. Shows branches pending to be merged.
  3015. == CMD_USAGE_BRANCH_SHOWMERGES ==
  3016. Usage:
  3017. cm ^branch | ^br ^showmerges <item_path>[ ...]
  3018. [--^format=<format_str>]
  3019. [--^dateformat=<date_format>]
  3020. Options:
  3021. --^format Retrieves the output message in a specific format. See
  3022. Remarks for more info.
  3023. --^dateformat Format used to output dates.
  3024. == CMD_HELP_BRANCH_SHOWMERGES ==
  3025. Remarks:
  3026. Output format parameters (--^format option):
  3027. This command accepts a format string to show the output.
  3028. The output parameters of this command are the following:
  3029. - {^id} Branch id.
  3030. - {^comment} Comment.
  3031. - {^date} Date.
  3032. - {^name} Name.
  3033. - {^owner} Owner.
  3034. - {^parent} Parent branch name.
  3035. - {^parentid} Parent branch id.
  3036. - {^repid} Repository id.
  3037. - {^repository} Repository.
  3038. - {^repname} Repository name.
  3039. - {^repserver} Repository server.
  3040. Examples:
  3041. cm ^branch ^showmerges file.txt
  3042. (Displays branches involved in the pending merge of 'file.txt'.)
  3043. cm ^branch ^showmerges file.txt --^format="{^date} {^name}" --^dateformat="ddMMyy"
  3044. (Displays branches involved in the merge, printing only the date and the
  3045. name, with a given date format.)
  3046. == CMD_DESCRIPTION_REPOSITORY ==
  3047. Allows the user to manage repositories.
  3048. == CMD_USAGE_REPOSITORY ==
  3049. Usage:
  3050. cm ^repository | ^repo <command> [options]
  3051. Commands:
  3052. - ^create | ^mk
  3053. - ^delete | ^rm
  3054. - ^list | ^ls
  3055. - ^rename
  3056. - ^add
  3057. To get more information about each command run:
  3058. cm ^repository <command> --^usage
  3059. cm ^repository <command> --^help
  3060. == CMD_HELP_REPOSITORY ==
  3061. Examples:
  3062. cm ^repository
  3063. cm ^repository ^list
  3064. cm ^repository newrepo
  3065. cm ^repository ^create newrepo
  3066. cm ^repository ^rename oldname newname
  3067. cm ^repository ^add C:\repo\
  3068. == CMD_DESCRIPTION_REPOSITORY_CREATE ==
  3069. Creates a repository on a server.
  3070. == CMD_USAGE_REPOSITORY_CREATE ==
  3071. Usage:
  3072. cm ^repository | ^repo <rep_name>
  3073. cm ^repository | ^repo <repserverspec> <rep_name>[ ...]
  3074. cm ^repository | ^repo [^create | ^mk] <rep_name>
  3075. Options:
  3076. repserverspec Repository server specification.
  3077. (Use 'cm ^help ^objectspec' to learn more about rep server
  3078. specs.)
  3079. rep_name Name or names of the new repository or repositories.
  3080. Use a whitespace to separate repository names.
  3081. == CMD_HELP_REPOSITORY_CREATE ==
  3082. Examples:
  3083. cm ^repository MyRep
  3084. cm ^repo 192.168.1.140:8087 Rep01 Rep01/ModuleA Rep01/ModuleB
  3085. cm ^repo ^create Rep01
  3086. cm ^repo ^mk list
  3087. == CMD_DESCRIPTION_REPOSITORY_DELETE ==
  3088. Deletes a repository from a server.
  3089. == CMD_USAGE_REPOSITORY_DELETE ==
  3090. Usage:
  3091. cm ^repository | ^repo ^delete | ^rm <repspec>
  3092. Options:
  3093. repspec Repository specification.
  3094. (Use 'cm ^help ^objectspec' to learn more about rep specs.)
  3095. == CMD_HELP_REPOSITORY_DELETE ==
  3096. Remarks:
  3097. Deletes a repository from the repository server.
  3098. The data is not removed from the database backend, but unplugged
  3099. so that it will not be accessible anymore.
  3100. (Data can be reconnected afterwards, see 'cm ^repository ^add'.)
  3101. Examples:
  3102. cm ^repository ^delete myrepository@^repserver:myserver:8084
  3103. cm ^repository ^rm myrepository@myserver:8084
  3104. cm ^repo ^rm myrepository
  3105. == CMD_DESCRIPTION_REPOSITORY_LIST ==
  3106. Lists the repositories on a server.
  3107. == CMD_USAGE_REPOSITORY_LIST ==
  3108. Usage:
  3109. cm ^repository | ^repo [^list | ^ls] [<repserverspec>] [--^format=<str_format>]
  3110. Options:
  3111. repserverspec Repository server specification.
  3112. (Use 'cm ^help ^objectspec' to learn more about rep server
  3113. specs.)
  3114. --^format Retrieves the output message in a specific format. See
  3115. Remarks for more info.
  3116. == CMD_HELP_REPOSITORY_LIST ==
  3117. Remarks:
  3118. Output format parameters (--^format option):
  3119. This command accepts a format string to show the output.
  3120. The output parameters of this command are the following:
  3121. {^repid} | {0} Repository identifier.
  3122. {^repname} | {1} Repository name.
  3123. {^repserver} | {2} Server name.
  3124. {^repowner} | {3} Repository owner.
  3125. {^repguid} | {4} Unique identifier of the repository.
  3126. {^tab} Inserts a tab space.
  3127. {^newline} Inserts a new line.
  3128. If the format parameter value is '^TABLE', the output will be printed
  3129. using a table format with the {^repid}, {^repname} and {^repserver} fields.
  3130. Examples:
  3131. cm ^repository
  3132. (Lists all repositories.)
  3133. cm ^repository ^list localhost:8084 --^format="{1, -20} {3}"
  3134. (Writes the repository name in 20 spaces, aligned to left, then a blank,
  3135. and then the repository owner.)
  3136. cm ^repository ^ls localhost:8084 --^format="{^repname, -20} {^repowner}"
  3137. (Writes the same as the previous example.)
  3138. cm ^repo ^ls localhost:8084 --^format=^TABLE
  3139. (Writes the list of repositories using a table format with the following
  3140. fields: repository id, repository name, and repository server name.)
  3141. == CMD_DESCRIPTION_REPOSITORY_RENAME ==
  3142. Renames a repository.
  3143. == CMD_USAGE_REPOSITORY_RENAME ==
  3144. Usage:
  3145. cm ^repository | ^repo ^rename [<repspec>] <new_name>
  3146. Options:
  3147. repspec Repository to be renamed.
  3148. (Use 'cm ^help ^objectspec' to learn more about repository
  3149. specifications.)
  3150. new_name New name for the repository.
  3151. == CMD_HELP_REPOSITORY_RENAME ==
  3152. Remarks:
  3153. This command renames a repository.
  3154. If no repspec is specified, current repository will be assumed.
  3155. Examples:
  3156. cm ^repository ^rename development
  3157. (The current repository will be renamed to 'development'.)
  3158. cm ^repo ^rename ^rep:default@SERVER:8084 development
  3159. (The 'default' repository on 'SERVER' will be renamed to 'development'.)
  3160. == CMD_DESCRIPTION_REPOSITORY_ADD ==
  3161. Connects an existing repository by adding its database.
  3162. == CMD_USAGE_REPOSITORY_ADD ==
  3163. Usage:
  3164. cm ^repository | ^repo ^add <db_file> <rep_name> <repserverspec>
  3165. Options:
  3166. db_file The name of the database file on the database backend.
  3167. rep_name The name of the repository.
  3168. repserverspec The repository server specification.
  3169. (Use 'cm ^help ^objectspec' to learn more about repository
  3170. server specifications.)
  3171. == CMD_HELP_REPOSITORY_ADD ==
  3172. Remarks:
  3173. Reconnects an existing repository database to the server. This command is
  3174. useful to move a repository from one server to another, or to restore an
  3175. archived repository after using the 'cm ^repository ^delete' command.
  3176. Examples:
  3177. cm ^repository ^add rep_27 myrepository myserver:8084
  3178. == CMD_DESCRIPTION_TRIGGER_CREATE ==
  3179. Creates a new trigger on a server.
  3180. == CMD_USAGE_TRIGGER_CREATE ==
  3181. Usage:
  3182. cm ^trigger | ^tr ^create | ^mk <subtype-type> <new_name> <script_path>
  3183. [--^position=<new_position>]
  3184. [--^filter=<str_filter>]
  3185. [--^server=<repserverspec>]
  3186. Options:
  3187. --^position New position of the specified trigger.
  3188. This position must not be in use by another trigger of
  3189. the same type.
  3190. --^filter Checks only items that matches the specified filter.
  3191. --^server Creates the trigger on the specified server.
  3192. If no server is specified, executes the command on the
  3193. one configured on the client. (Use 'cm ^help ^objectspec'
  3194. to learn more about repository server specifications.)
  3195. subtype-type Trigger execution and trigger operation.
  3196. (Use 'cm ^showtriggertypes' to see a list of trigger types.)
  3197. new_name Name of the new trigger.
  3198. script_path Disk path on the server where the script to execute is
  3199. located. If the command line starts with "^webtrigger ",
  3200. the trigger will be considered as a web trigger. See
  3201. Remarks for more information.
  3202. == CMD_HELP_TRIGGER_CREATE ==
  3203. Remarks:
  3204. Web triggers: A web trigger is created by typing "^webtrigger <target-uri>"
  3205. as the trigger command. In this case, the trigger will execute a POST query
  3206. against the specified URI -where the request body contains a JSON
  3207. dictionary with the trigger environment variables- and a fixed INPUT key
  3208. pointing to an array of strings.
  3209. Examples:
  3210. cm ^trigger ^create ^after-setselector "BackupMgr" "/path/to/script" --^position=4
  3211. cm ^tr ^mk ^before-mklabel new "/path/to/script" --^server=myserver:8084
  3212. cm ^tr ^mk ^after-mklabel Log "/path/to/script" --^filter="^rep:myRep,LB*"
  3213. (This trigger will be executed only if the label name starts with 'LB'
  3214. and it is being created in a repository called 'myRep'.)
  3215. cm ^tr ^mk ^after-checkin NotifyTeam "^webtrigger http://myserver.org/api"
  3216. == CMD_DESCRIPTION_MOVE ==
  3217. Moves or renames a file or directory.
  3218. == CMD_USAGE_MOVE ==
  3219. Usage:
  3220. cm ^move | ^mv <src_path> <dst_path> [--^format=<str_format>]
  3221. [--^errorformat=<str_format>]
  3222. Options:
  3223. --^format Retrieves the output message in a specific format. See
  3224. Remarks for more info.
  3225. --^errorformat Retrieves the error message in a specific format. See
  3226. Remarks for more info.
  3227. src_path Source item path.
  3228. dst_path Destination item path.
  3229. == CMD_HELP_MOVE ==
  3230. Remarks:
  3231. This command moves or renames an item in the repository.
  3232. Changes are done in the local filesystem too.
  3233. If the source path is a file, the destination path can be a file or a
  3234. directory. In the first case, the file is renamed; otherwise, the item
  3235. is moved.
  3236. If source path is a directory, the destination path must be a directory.
  3237. The item to move or rename must exist.
  3238. Format:
  3239. {0} Source path (both for '--^format' and '--^errorformat')
  3240. {1} Destination path (both for '--^format' and '--^errorformat')
  3241. Examples:
  3242. cm ^move file.txt file.old
  3243. (Renames the item.)
  3244. cm ^mv .\file.old .\oldFiles
  3245. (Moves 'file.old' to 'oldFiles'.)
  3246. cm ^move .\src .\src2
  3247. (Renames a directory.)
  3248. == CMD_DESCRIPTION_LABEL ==
  3249. Allows the user to manage labels.
  3250. == CMD_USAGE_LABEL ==
  3251. Usage:
  3252. cm ^label | ^lb <command> [options]
  3253. Commands:
  3254. - ^create | ^mk
  3255. - ^delete | ^rm
  3256. - ^rename
  3257. To get more information about each command run:
  3258. cm ^label <command> --^usage
  3259. cm ^label <command> --^help
  3260. == CMD_HELP_LABEL ==
  3261. Examples:
  3262. cm ^label myNewLabel ^cs:42
  3263. ('^create' command is optional.)
  3264. cm ^label ^rename myNewLabel newLabelName
  3265. cm ^label ^delete newLabelName
  3266. == CMD_DESCRIPTION_LABEL_CREATE ==
  3267. Applies a label to a changeset and creates the label if required.
  3268. == CMD_USAGE_LABEL_CREATE ==
  3269. Usage:
  3270. cm ^label [^create] <lbspec> [<csetspec> | <wk_path>]
  3271. [--^allxlinkedrepositories]
  3272. [-^c=<str_comment> | -^commentsfile=<comments_file>]
  3273. Options:
  3274. --^allxlinkedrepositories Creates the new label in all Xlinked repositories.
  3275. -^c Applies the specified comment to the new label.
  3276. -^commentsfile Applies the comment in the specified file to the
  3277. new label.
  3278. lbspec The new label name.
  3279. (Use 'cm ^help ^objectspec' to learn more about label
  3280. specs.)
  3281. csetspec Name or full specification of the changeset to label.
  3282. (Use 'cm ^help ^objectspec' to learn more about changeset
  3283. specs.)
  3284. wk_path Path of the workspace to label. (The changeset that the
  3285. workspace is pointing will be labeled.)
  3286. == CMD_HELP_LABEL_CREATE ==
  3287. Remarks:
  3288. Set the PLASTICEDITOR environment variable to specify an editor for
  3289. entering comments. If the PLASTICEDITOR environment variable is set, and
  3290. the comment is empty, the editor will be automatically launched to allow
  3291. you to specify the comment.
  3292. Examples:
  3293. cm ^label ^create ^lb:BL001 ^cs:1203 -^commentsfile=commentlb001.txt
  3294. (Creates label 'BL001' attached to changeset 1203, and applies the comment
  3295. in the 'commentlb001.txt' file.)
  3296. cm ^label BL002 ^cs:1203 -^c="first release"
  3297. (Creates label 'BL002', with a comment, and attached to changeset 1203.)
  3298. == CMD_DESCRIPTION_LABEL_DELETE ==
  3299. Deletes one or more labels.
  3300. == CMD_USAGE_LABEL_DELETE ==
  3301. Usage:
  3302. cm ^label ^delete <lbspec>[ ...]
  3303. Options:
  3304. lbspec Label to delete. Use a whitespace to separate labels.
  3305. (Use 'cm ^help ^objectspec' to learn more about label
  3306. specs.)
  3307. == CMD_HELP_LABEL_DELETE ==
  3308. Remarks:
  3309. This command deletes one or more labels.
  3310. Examples:
  3311. cm ^label ^delete ^lb:BL001
  3312. (Deletes the label 'BL001'.)
  3313. cm ^label ^delete ^lb:BL001 ^lb:BL002@reptest@server2:8084
  3314. (Deletes the labels 'BL001' and 'BL002'.)
  3315. == CMD_DESCRIPTION_LABEL_RENAME ==
  3316. Renames a label.
  3317. == CMD_USAGE_LABEL_RENAME ==
  3318. Usage:
  3319. cm ^label ^rename <lbspec> <new_name>
  3320. Options:
  3321. lbspec Label to rename.
  3322. (Use 'cm ^help ^objectspec' to learn more about label specs.)
  3323. new_name New name for the label.
  3324. == CMD_HELP_LABEL_RENAME ==
  3325. Remarks:
  3326. This command renames a label.
  3327. Examples:
  3328. cm ^label ^rename ^lb:BL001 BL002
  3329. (Renames the label 'BL001' to 'BL002'.)
  3330. == CMD_DESCRIPTION_OBJECTSPEC ==
  3331. Describes how to write object specs.
  3332. == CMD_USAGE_OBJECTSPEC ==
  3333. Usage:
  3334. cm ^objectspec
  3335. (To get all the information about how to build object specs.)
  3336. == CMD_HELP_OBJECTSPEC ==
  3337. Several Unity VCS commands expect 'object specs' as input to refer to a
  3338. given object (typically a branch, changeset, repository, etc).
  3339. This documentation describes the different "specs" available and how to
  3340. build them.
  3341. Each spec type begins with a unique tag, for example "^rep:" or "^cs:". The tag
  3342. must be specified for commands that take a general object spec, for example
  3343. "cm ^setowner object_spec", but can often be omitted for commands that take only
  3344. a single type of spec, for example, "cm ^getfile revision_spec".
  3345. Repository server spec (repserverspec):
  3346. ^repserver:name:port
  3347. Examples:
  3348. cm ^repo ^list ^repserver:skull:8084
  3349. cm ^repo ^list skull:8084
  3350. Side note:
  3351. We call it 'repository server spec', instead of just 'server spec' for
  3352. historical reasons. Long ago, we had separate workspace and repository
  3353. servers, and the naming survived.
  3354. Repository spec (repspec):
  3355. ^rep:rep_name@[repserverspec]
  3356. Examples:
  3357. cm ^showowner ^rep:codice@localhost:6060
  3358. (Here the "^rep:" is required because ^showowner admits not only repos
  3359. but also other types of objects. So it needs the user to indicate the
  3360. object type.)
  3361. Branch spec (brspec):
  3362. There are different types of branch specs:
  3363. - ^br:[/]br_name[@repspec]
  3364. - ^br:^brguid:branch_guid[@repspec]
  3365. Examples:
  3366. cm ^switch ^br:/main@^rep:plastic@^repserver:skull:9095
  3367. (In this case "^br:", "^rep" and "^repserver" are not needed, so the
  3368. command admits a much shorter form:
  3369. "cm ^switch main@plastic@skull:9095".)
  3370. cm ^find ^revisions "^where ^branch='^br:/main/task001'
  3371. cm ^switch ^br:^brguid:68846cdd-6a46-458c-a47f-52454cc150d9@plastic@skull:9095
  3372. cm ^find ^branch "^where ^parent='^brguid:68846cdd-6a46-458c-a47f-52454cc150d9'"
  3373. Remark:
  3374. The initial '/' on the branch is not mandatory. We used to specify all
  3375. our branches as /main, /main/task001, and so on. But now, we prefer the
  3376. shorter form main, main/task001 which makes commands more compact.
  3377. The guid spec is not valid for commands that needs the full branch name
  3378. (such as "cm ^create ^branch").
  3379. Changeset spec (csetspec):
  3380. ^cs:cs_number|cs_guid[@repspec]
  3381. The number or GUID of the changeset can be specified.
  3382. Examples:
  3383. cm ^ls /code --^tree=ae1390ed-7ce9-4ec3-a155-e5a61de0dc77@code@skull:7070
  3384. Label spec (labelspec):
  3385. ^lb:lb_name[@repspec]
  3386. Examples:
  3387. cm ^switch ^lb:RELEASE2.0
  3388. cm ^switch ^lb:RELEASE1.4@myrep@MYSERVER:8084
  3389. Revision spec:
  3390. There are different types of rev specs:
  3391. - ^rev: item_path[#(brspec|csetspec|labelspec)]
  3392. - ^rev: ^serverpath:item_path#(brspec|cset_spec|lb_spec)
  3393. - ^rev: ^revid:rev_id[@rep_spec]
  3394. - ^rev: ^itemid:item_id#(br_spec|cset_spec|lb_spec)
  3395. Examples:
  3396. cm ^diff ^rev:readme.txt#^cs:19 ^rev:readme.txt#^cs:20
  3397. cm ^diff ^serverpath:/doc/readme.txt#^cs:19@myrepo \
  3398. ^serverpath:/doc/readme.txt#^br:/main@myrepo@localhost:8084
  3399. cm ^cat ^revid:1230@^rep:myrep@^repserver:myserver:8084
  3400. Item spec:
  3401. There are different types of item specs:
  3402. - ^item: item_path
  3403. - ^item: ^itemid:item_id[@rep_spec]
  3404. Examples:
  3405. cm ^lock ^unlock ^item:audio.wav
  3406. cm ^lock ^unlock ^itemid:1234@^rep:myrep@^repserver:myserver:8084
  3407. Attribute spec:
  3408. ^att:att_name[@repspec]
  3409. Example:
  3410. cm ^attribute ^set ^att:merged@code@doe:8084 ^cs:25@code@doe:8084 done
  3411. Shelve spec:
  3412. ^sh:sh_number[@repspec]
  3413. Example:
  3414. cm ^diff ^sh:2 ^sh:4
  3415. Workspace specs:
  3416. ^wk:name@clientmachine
  3417. Rarely used, since they only apply to workspace related commands. Useful to
  3418. specify the workspace by name and machine instead of path.
  3419. Examples:
  3420. cm ^showselector ^wk:codebase@modok
  3421. Side note:
  3422. These specs come from the old days of Plastic SCM 2.x where 'workspace
  3423. servers' existed as a way to store workspace metadata in a centralized
  3424. way. Were deprecated due to performance issues.
  3425. == CMD_DESCRIPTION_PARTIAL ==
  3426. Runs commands in a partial workspace.
  3427. == CMD_USAGE_PARTIAL ==
  3428. Usage:
  3429. cm ^partial <command> [options]
  3430. Commands:
  3431. - ^configure
  3432. - ^add
  3433. - ^undo
  3434. - ^checkout | ^co
  3435. - ^undocheckout | ^unco
  3436. - ^checkin | ^ci
  3437. - ^move | ^mv
  3438. - ^remove | ^rm
  3439. - ^switch | ^stb
  3440. - ^update | ^upd
  3441. - ^shelveset | ^shelve
  3442. To get more information about each command run:
  3443. cm ^partial <command> --^usage
  3444. cm ^partial <command> --^help
  3445. == CMD_HELP_PARTIAL ==
  3446. Examples:
  3447. cm ^partial ^configure +/background-blue.png
  3448. cm ^partial ^update landscape-1024.png
  3449. cm ^partial ^checkin eyes-green.png eyes-black.png
  3450. == CMD_DESCRIPTION_PARTIAL_ADD ==
  3451. Adds an item to version control.
  3452. == CMD_USAGE_PARTIAL_ADD ==
  3453. Usage:
  3454. cm ^partial ^add [-^R | -^r | --^recursive] [--^silent] [--^parents]
  3455. [--^ignorefailed] [--^skipcontentcheck] <item_path>[ ...]
  3456. [--^format=<str-format>] [--^errorformat=<str-format>]
  3457. Options:
  3458. -^R | -^r | --^recursive Adds items recursively.
  3459. --^silent Does not show any output.
  3460. --^parents Includes the parent directories of the items specified
  3461. in the operation.
  3462. --^ignorefailed If an item cannot be added, the add operation will
  3463. continue without it. Note: If a directory cannot be
  3464. added, its content is not added.
  3465. --^skipcontentcheck When the extension is not enough to set the file as
  3466. text or binary, it will be set as binary by default
  3467. instead of checking the content to detect the type.
  3468. --^format Retrieves the output message in a specific format. Check
  3469. the examples for more information.
  3470. --^errorformat Retrieves the error message (if any) in a specific
  3471. format. Check the examples for more information.
  3472. item_path Items to add. Use double quotes (" ") to specify paths
  3473. containing spaces. Use a whitespace to separate paths.
  3474. Use * to add all the contents of the current directory.
  3475. == CMD_HELP_PARTIAL_ADD ==
  3476. Remarks:
  3477. Requirements to add items:
  3478. - The parent directory of the item to add must be previously added.
  3479. Examples:
  3480. cm ^partial ^add pic1.png pic2.png
  3481. (Adds 'pic1.png' and 'pic2.png' items.)
  3482. cm ^partial ^add c:\workspace\picture.png
  3483. (Adds 'picture.png' item in path 'c:\workspace'.)
  3484. cm ^partial ^add -^R c:\workspace\src
  3485. (Recursively adds 'src'.)
  3486. cm ^partial ^add --^parents samples\design01.png
  3487. (Adds 'design01.png' file and 'samples' parent folder.)
  3488. cm ^partial ^add -^R *
  3489. (Recursively adds all the contents of the current directory.)
  3490. cm ^partial ^add -^R * --^format="ADD {0}" --^errorformat="ERR {0}"
  3491. (Recursively adds all the contents of the current directory, printing
  3492. '^ADD <item>' for successfully added files, and '^ERR <item>' for items that
  3493. could not be added.)
  3494. == CMD_DESCRIPTION_PARTIAL_CHECKIN ==
  3495. Stores changes in the repository.
  3496. == CMD_USAGE_PARTIAL_CHECKIN ==
  3497. Usage:
  3498. cm ^partial ^checkin | ^ci [<item_path>[ ...]]
  3499. [-^c=<str_comment> | -^commentsfile=<comments_file>]
  3500. [--^all | -^a] [--^applychanged] [--^keeplock]
  3501. [--^symlink] [--^ignorefailed]
  3502. [--^machinereadable [--^startlineseparator=<sep>]
  3503. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  3504. Options:
  3505. -^c Specifies a comment to the changeset created in the
  3506. checkin operation.
  3507. -^commentsfile Applies the comment from the specified file to the
  3508. changeset created in the checkin operation.
  3509. --^all | -^a Includes also the items changed, moved, and deleted
  3510. locally on the specified paths.
  3511. --^applychanged Applies the checkin operation to the changed items
  3512. detected in the workspace along with the checked out
  3513. items.
  3514. --^private Private items detected in the workspace are also
  3515. included.
  3516. --^keeplock Keeps the lock of the locked items after the checkin
  3517. operation.
  3518. --^symlink Applies the checkin operation to the symlink and not to
  3519. the target.
  3520. --^ignorefailed Any changes that cannot be applied (because the lock,
  3521. a.k.a. exclusive checkout, cannot be adquired or
  3522. because local changes are in conflict with the server
  3523. changes) are discarded and the checkin operation
  3524. continues without them.
  3525. --^machinereadable Outputs the result in an easy-to-parse format.
  3526. --^startlineseparator Used with the '--^machinereadable' flag, specifies how
  3527. the lines should start.
  3528. --^endlineseparator Used with the '--^machinereadable' flag, specifies how
  3529. the lines should end.
  3530. --^fieldseparator Used with the '--^machinereadable' flag, specifies how
  3531. the fields should be separated.
  3532. item_path Items to checkin. Use double quotes (" ") to specify
  3533. paths containing spaces. Use a whitespace to separate
  3534. paths. Use . to apply checkin to current directory.
  3535. == CMD_HELP_PARTIAL_CHECKIN ==
  3536. Remarks:
  3537. - If <item_path> is not specified, the checkin will involve all the
  3538. pending changes in the workspace.
  3539. - The checkin operation always applies recursively from the given path.
  3540. - To checkin an item:
  3541. - The item must be under source code control.
  3542. - The item must be checked out.
  3543. - If the item is changed but not checked out, the '--^applychanged' flag
  3544. is not necessary unless <item_path> is a directory or it contains
  3545. wildcards ('*').
  3546. Revision content should be different from previous revision in order to be
  3547. checked in.
  3548. Set the PLASTICEDITOR environment variable to specify an editor for
  3549. entering comments. If the PLASTICEDITOR environment variable is set, and
  3550. the comment is empty, the editor will be automatically launched to allow
  3551. you to specify the comment.
  3552. Reading input from stdin:
  3553. The '^partial ^checkin' command can read paths from stdin. To do this, pass a
  3554. single dash "-".
  3555. Example:
  3556. cm ^partial ^checkin -
  3557. Paths will be read until an empty line is entered.
  3558. This allows you to use pipe to specify which files to checkin.
  3559. Example:
  3560. dir /S /B *.c | cm ^partial ^checkin --^all -
  3561. (In Windows, checkins all .c files in the workspace.)
  3562. Examples:
  3563. cm ^partial ^checkin figure.png landscape.png
  3564. (Applies the checkin to 'figure.png' and 'landscape.png' checked-out files.)
  3565. cm ^partial ^checkin . -^commentsfile=mycomment.txt
  3566. (Applies checkin to current directory and sets the comment from the
  3567. 'mycomment.txt' file.)
  3568. cm ^partial ^ci background.png -^c="my comment" --^keeplock
  3569. (Applies the checkin to 'background.png', includes a comment, and keeps the
  3570. lock.)
  3571. cm ^partial ^checkin --^applychanged
  3572. (Applies the checkin to all pending changes in the workspace.)
  3573. cm ^partial ^checkin link --^symlink
  3574. (Applies the checkin to the symlink file and not to the target.)
  3575. cm ^partial ^checkin . --^ignorefailed
  3576. (Applies checkin to current directory, ignoring the changes that cannot be
  3577. applied.)
  3578. == CMD_DESCRIPTION_PARTIAL_CHECKOUT ==
  3579. Marks files as ready to modify.
  3580. == CMD_USAGE_PARTIAL_CHECKOUT ==
  3581. Usage:
  3582. cm ^partial ^checkout | ^co [<item_path>[ ...]] [--^resultformat=<str_format>]
  3583. [--^silent] [--^ignorefailed]
  3584. Options:
  3585. item_path Items to checkout. Use double quotes (" ") to specify
  3586. paths containing spaces. Use a whitespace to separate
  3587. paths.
  3588. Use . to apply checkout to current directory.
  3589. --^resultformat Retrieves the output result message in a specific
  3590. format.
  3591. --^silent Does not show any output.
  3592. --^ignorefailed If an item cannot be locked (the exclusive checkout
  3593. cannot be performed), the checkout operation will
  3594. continue without it.
  3595. == CMD_HELP_PARTIAL_CHECKOUT ==
  3596. Remarks:
  3597. To checkout an item:
  3598. - The item must be under source code control.
  3599. - The item must be checked in.
  3600. If locks are configured on the server (lock.conf exists), then each time
  3601. a checkout on a path happens, Unity VCS checks if it meets any of the rules
  3602. and if so, the path will be in exclusive checkout (locked) so that none can
  3603. simultaneously checkout.
  3604. You can get all the locks in the server by using 'cm ^lock ^list'.
  3605. Check the Administrator Guide to learn how locking works:
  3606. https://www.plasticscm.com/download/help/locking
  3607. Examples:
  3608. cm ^partial ^checkout pic1.png pic2.png
  3609. (Checkouts 'pic1.png' and 'pic2.png' files.)
  3610. cm ^partial ^co *.png
  3611. (Checkouts all png files.)
  3612. cm ^partial ^checkout .
  3613. (Checkouts current directory.)
  3614. cm ^partial ^checkout -^R c:\workspace\src
  3615. (Recursively checkouts 'src' folder.)
  3616. == CMD_DESCRIPTION_PARTIAL_CONFIGURE ==
  3617. Allows you to configure your workspace by loading or unloading items from it.
  3618. == CMD_USAGE_PARTIAL_CONFIGURE ==
  3619. Usage:
  3620. cm ^partial ^configure <+|-path>[ ...] [--^silent] [--^ignorefailed]
  3621. [--^ignorecase] [--^restorefulldirs]
  3622. [--^machinereadable [--^startlineseparator=<sep>]
  3623. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  3624. Options:
  3625. --^silent Does not show any output.
  3626. --^ignorefailed Skips all errors during the process. Incorrect paths
  3627. will not cause the command to stop.
  3628. --^ignorecase Ignores casing on the paths. With this flag, '^configure'
  3629. will work for "/Data/Textures" even if the user writes
  3630. "/data/teXtures".
  3631. --^restorefulldirs Resets an invalid directory configuration (happens when
  3632. a non-partial operation is run on a partial workspace).
  3633. The directories in this list will be fully configured
  3634. (full check) which means they will automatically
  3635. download new content during the update.
  3636. This operation does not download any files, just
  3637. restores the directory configuration on partial
  3638. workspaces.
  3639. --^machinereadable Outputs the result in an easy-to-parse format.
  3640. --^startlineseparator Used with the '--^machinereadable' flag, specifies how
  3641. the lines should start.
  3642. --^endlineseparator Used with the '--^machinereadable' flag, specifies how
  3643. the lines should end.
  3644. --^fieldseparator Used with the '--^machinereadable' flag, specifies how
  3645. the fields should be separated.
  3646. path Paths to be loaded or unloaded. Use double quotes (" ") to
  3647. specify paths containing spaces. Use a whitespace to separate
  3648. paths. Paths have to start with "/".
  3649. == CMD_HELP_PARTIAL_CONFIGURE ==
  3650. Remarks:
  3651. The command assumes recursive operation.
  3652. Examples:
  3653. cm ^partial ^configure +/landscape_grey.png
  3654. (Loads 'landscape_grey.png' item.)
  3655. cm ^partial ^configure -/landscape_black.png
  3656. (Unloads 'landscape_black.png' item.)
  3657. cm ^partial ^configure +/soft -/soft/soft-black.png
  3658. (Loads all 'soft' directory children items except 'soft-black.png'.)
  3659. cm ^partial ^configure -/
  3660. (Unloads the whole workspace.)
  3661. cm ^partial ^configure -/ +/
  3662. (Loads the whole workspace.)
  3663. cm ^partial ^configure -/figure-64.png --^ignorefailed
  3664. (Unloads 'figure-64.png' item even if it was already unloaded.)
  3665. cm ^partial ^configure +/ --^restorefulldirs
  3666. (Sets all directories to automatically download the new content.)
  3667. cm ^partial ^configure +/src/lib --^restorefulldirs
  3668. (Sets only '/src/lib' and its subdirectories to automatically download the
  3669. new content.)
  3670. == CMD_DESCRIPTION_PARTIAL_MOVE ==
  3671. Moves or renames a file or directory.
  3672. == CMD_USAGE_PARTIAL_MOVE ==
  3673. Usage:
  3674. cm ^partial ^move | ^mv <src_path> <dst_path> [--^format=<str_format>]
  3675. Options:
  3676. --^format Retrieves the output message in a specific format. See
  3677. Remarks for more info.
  3678. src_path Source item path.
  3679. dst_path Destination item path.
  3680. == CMD_HELP_PARTIAL_MOVE ==
  3681. Remarks:
  3682. This command moves or renames an item in the repository.
  3683. Changes are done in the local filesystem too.
  3684. If the source path is a file, the destination path can be a file or a
  3685. directory. In the first case, the file will be renamed; otherwise, the item
  3686. will be moved.
  3687. If source path is a directory, the destination path must be a directory.
  3688. The item to move or rename must exist.
  3689. Format:
  3690. {0} Source path.
  3691. {1} Destination path.
  3692. Examples:
  3693. cm ^partial ^move file.png file-blue.png
  3694. (Renames the item.)
  3695. cm ^partial ^mv .\file-blue.png .\blueFiles
  3696. (Moves 'file-blue.png' to 'blueFiles'.)
  3697. cm ^partial ^move .\design .\marketing
  3698. (Renames a directory.)
  3699. == CMD_DESCRIPTION_PARTIAL_REMOVE ==
  3700. Deletes a file or directory from version control.
  3701. == CMD_USAGE_PARTIAL_REMOVE ==
  3702. Usage:
  3703. cm ^partial ^remove | ^rm <item_path>[ ...] [--^nodisk]
  3704. Options:
  3705. --^nodisk Removes from version control, but keeps the item on disk.
  3706. item_path Items path to remove. Use double quotes (" ") to
  3707. specify paths containing spaces. Use a whitespace to separate
  3708. paths.
  3709. == CMD_HELP_PARTIAL_REMOVE ==
  3710. Remarks:
  3711. Items are deleted from disk. Removed items are removed from the parent
  3712. directory in the source code control.
  3713. Requirements:
  3714. - The item must be under source code control.
  3715. Examples:
  3716. cm ^partial ^remove src
  3717. (Removes 'src'. If 'src' is a directory, this is the same that:
  3718. cm ^partial ^remove -^R src.)
  3719. cm ^partial ^remove c:\workspace\pic01.png --^nodisk
  3720. (Removes 'pic01.png' from version control, but keeps it on disk.)
  3721. == CMD_DESCRIPTION_PARTIAL_SHELVESET ==
  3722. Allows the user to manage partial shelvesets.
  3723. == CMD_USAGE_PARTIAL_SHELVESET ==
  3724. Usage:
  3725. cm ^partial ^shelveset | ^shelve <command> [options]
  3726. Commands:
  3727. - ^create | ^mk
  3728. - ^apply
  3729. - ^delete | ^rm
  3730. To get more information about each command run:
  3731. cm ^partial ^shelveset <command> --^usage
  3732. cm ^partial ^shelveset <command> --^help
  3733. == CMD_HELP_PARTIAL_SHELVESET ==
  3734. Examples:
  3735. cm ^partial ^shelveset ^create -^c="my comment"
  3736. cm ^partial ^shelveset ^apply sh:3
  3737. cm ^partial ^shelveset ^delete sh:5
  3738. == CMD_DESCRIPTION_PARTIAL_SHELVESET_CREATE ==
  3739. Shelves chosen pending changes.
  3740. == CMD_USAGE_PARTIAL_SHELVESET_CREATE ==
  3741. Usage:
  3742. cm ^partial ^shelveset | ^shelve ^create | ^mk [<item_path>[ ...]]
  3743. [-^c=<str_comment> | -^commentsfile=<comments_file>]
  3744. [--^applychanged] [--^symlink] [--^ignorefailed]
  3745. [--^machinereadable [--^startlineseparator=<sep>]
  3746. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  3747. Options:
  3748. -^c Specifies a comment to the changeset created in the
  3749. shelve operation.
  3750. -^commentsfile Applies the comment from the specified file to the
  3751. changeset created in the shelve operation.
  3752. --^applychanged Applies the shelve operation to the changed items
  3753. detected in the workspace along with the checked out
  3754. items.
  3755. --^symlink Applies the shelve operation to the symlink and not to
  3756. the target.
  3757. --^ignorefailed Any changes that cannot be applied (because the lock
  3758. (a.k.a. exclusive checkout) cannot be adquired or
  3759. because local changes are in conflict with the server
  3760. changes) are discarded and the shelve operation
  3761. continues without them.
  3762. --^machinereadable Outputs the result in an easy-to-parse format.
  3763. --^startlineseparator Used with the '--^machinereadable' flag, specifies how
  3764. the lines should start.
  3765. --^endlineseparator Used with the '--^machinereadable' flag, specifies how
  3766. the lines should end.
  3767. --^fieldseparator Used with the '--^machinereadable' flag, specifies how
  3768. the fields should be separated.
  3769. item_path Items to shelve. Use double quotes (" ") to specify
  3770. paths containing spaces. Use a whitespace to separate
  3771. paths. Use . to apply shelve to current directory.
  3772. == CMD_HELP_PARTIAL_SHELVESET_CREATE ==
  3773. The '^partial ^shelveset ^create' command stores the contents of checked out items
  3774. inside the repository. This way the contents are protected without the need to
  3775. checkin the files.
  3776. Remarks:
  3777. If neither <item_path> nor any option is specified, the shelveset will
  3778. include all the pending changes in the workspace.
  3779. The '^partial ^shelveset ^create' operation is always applied recursively from
  3780. the given path.
  3781. The '^partial ^shelveset ^create' operation is the default, which means that,
  3782. if no other operation is defined, the command will try to perform a creation.
  3783. Requirements to shelve an item:
  3784. - The item must be under source code control.
  3785. - The item must be checked out or changed.
  3786. Set the PLASTICEDITOR environment variable to specify an editor for
  3787. entering comments. If the PLASTICEDITOR environment variable is set, and
  3788. the comment is empty, the editor will be automatically launched to allow
  3789. you to specify the comment.
  3790. Examples:
  3791. cm ^partial ^shelveset figure.png landscape.png
  3792. (Creates a new shelveset with 'figure.png' and 'landscape.png' checked-out files.)
  3793. cm ^partial ^shelveset . -^commentsfile=mycomment.txt
  3794. (Creates a new shelveset with every checked-out file in current directory
  3795. and sets the comment from the 'mycomment.txt' file.)
  3796. cm ^partial ^shelve background.png -^c="my comment"
  3797. (Creates a new shelveset with 'background.png', includes a comment.)
  3798. cm ^partial ^shelveset --^applychanged
  3799. (Creates a new shelveset all pending changes in the workspace.)
  3800. cm ^partial ^shelveset link --^symlink
  3801. (Creates a new shelveset with the symlink file and not the target.)
  3802. cm ^partial ^shelveset . --^ignorefailed
  3803. (Creates a new shelveset with every checked-out file in current directory,
  3804. ignoring (skipping) the changes that cannot be applied.)
  3805. == CMD_DESCRIPTION_PARTIAL_SHELVESET_APPLY ==
  3806. Applies a stored shelveset.
  3807. == CMD_USAGE_PARTIAL_SHELVESET_APPLY ==
  3808. Usage:
  3809. cm ^partial ^shelveset ^apply <sh_spec> [--^encoding=<name>]
  3810. [--^comparisonmethod=(^ignoreeol | ^ignorewhitespaces| \
  3811. ^ignoreeolandwhitespaces | ^recognizeall)]
  3812. Options:
  3813. --^encoding Specifies the output encoding, i.e.: utf-8.
  3814. See the MSDN documentation at
  3815. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  3816. to get the table of supported encodings and its format,
  3817. (at the end of the page, in the "Name" column).
  3818. --^comparisonmethod Sets the comparison method. See Remarks for more info.
  3819. sh_spec Shelveset specification. (Use 'cm ^help ^objectspec' to
  3820. learn more about shelveset specs.)
  3821. == CMD_HELP_PARTIAL_SHELVESET_APPLY ==
  3822. The '^partial ^shelveset ^apply' command restores the contents of a stored shelveset.
  3823. Remarks:
  3824. Comparison methods:
  3825. ^ignoreeol Ignores end of line differences.
  3826. ^ignorewhitespaces Ignores whitespace differences.
  3827. ^ignoreeolandwhitespaces Ignores end of line and whitespace differences.
  3828. ^recognizeall Detects end of line and whitespace differences.
  3829. Examples:
  3830. cm ^partial ^shelveset ^apply ^sh:3
  3831. (Applies a stored shelve.)
  3832. == CMD_DESCRIPTION_PARTIAL_SHELVESET_DELETE ==
  3833. Deletes a shelveset.
  3834. == CMD_USAGE_PARTIAL_SHELVESET_DELETE ==
  3835. Usage:
  3836. cm ^partial ^shelveset ^delete | ^rm <sh_spec>
  3837. Options:
  3838. sh_spec Shelveset specification. (Use 'cm ^help ^objectspec' to
  3839. learn more about shelveset specs.)
  3840. == CMD_HELP_PARTIAL_SHELVESET_DELETE ==
  3841. The '^partial ^shelveset ^delete' command deletes a shelveset.
  3842. Examples:
  3843. cm ^partial ^shelveset ^delete ^sh:3
  3844. (Removes a stored shelveset.)
  3845. == CMD_DESCRIPTION_PARTIAL_SWITCH ==
  3846. Sets a branch as the working branch.
  3847. == CMD_USAGE_PARTIAL_SWITCH ==
  3848. Usage:
  3849. cm ^switch <branch_spec> [--^report | --^silent] [--^workspace=<path>]
  3850. [--^noinput]
  3851. (Sets the working branch and updates the workspace.)
  3852. cm ^switch <branch_spec> --^configure <+|-path>[ ...] [--^silent]
  3853. [--^ignorefailed] [--^ignorecase] [--^workspace=<path>]
  3854. (Sets the working branch and runs a workspace configuration like the 'cm
  3855. ^partial ^configure' command does.)
  3856. Options:
  3857. --^silent Does not show any output.
  3858. --^report Prints a list of the applied changes when the command
  3859. is finished. Using '--^silent' will override this setting.
  3860. This option only works when the '--^configure' option
  3861. is not specified.
  3862. --^configure Configures (loads / unloads items) the workspace
  3863. after updating the working branch. Check 'cm ^partial
  3864. ^configure --^help' to learn how to specify the paths
  3865. to configure.
  3866. --^ignorefailed Skips all errors during the configuration process.
  3867. Incorrect paths will not cause the command to stop.
  3868. --^ignorecase Ignores casing on the paths. With this flag, option
  3869. '--^configure' works for "/Data/Textures" even if the user
  3870. writes "/data/teXtures".
  3871. --^noinput Skips the interactive question to continue the
  3872. operation shelving the pending changes.
  3873. --^workspace=path Path where the workspace is located.
  3874. branch_spec Branch specification. (Use 'cm ^help ^objectspec' to learn
  3875. more about branch specs.)
  3876. path Paths to be loaded or unloaded. Use double quotes (" ")
  3877. to specify paths containing spaces. Use a whitespace to
  3878. separate paths. Paths must start with "/".
  3879. == CMD_HELP_PARTIAL_SWITCH ==
  3880. Remarks:
  3881. This command allows users to update the working branch. After updating the
  3882. branch, the command updates the workspace to the new branch as the
  3883. 'cm ^partial ^update' command would do. However, if the '--^configure' option is
  3884. specified, the command allows to configure the workspace using the new
  3885. branch configuration as the 'cm ^partial ^configure' command would do.
  3886. Examples:
  3887. cm ^switch ^br:/main/task
  3888. (Sets /main/task as working branch and updates the workspace.)
  3889. cm ^switch ^br:/main/task --^configure +/art/images
  3890. (Sets /main/task as working branch and configures the workspace to
  3891. load the /art/images folder.)
  3892. == CMD_DESCRIPTION_PARTIAL_UNDOCHECKOUT ==
  3893. Undoes the checkout on an item.
  3894. == CMD_USAGE_PARTIAL_UNDOCHECKOUT ==
  3895. Usage:
  3896. cm ^partial ^undocheckout | ^unco <item_path>[ ...] [--^silent]
  3897. [--^keepchanges | -^k]
  3898. Options:
  3899. --^silent Does not show any output.
  3900. --^keepchanges (-^k) Undoes the checkout and preserves the local changes.
  3901. Sample: undo the checkout of a file leave it as locally
  3902. changed with the same content on disk that it was.
  3903. This option cannot be used with dynamic workspaces.
  3904. item_path Items to apply the operation. Use double quotes (" ")
  3905. to specify paths containing spaces. Use a whitespace to
  3906. separate paths. Use . to apply the operation to current
  3907. directory.
  3908. == CMD_HELP_PARTIAL_UNDOCHECKOUT ==
  3909. Remarks:
  3910. If an item is checked-out and you do not want to checkin it, you can undo
  3911. the checkout using this command. Both files and folders can be unchecked
  3912. out. The item will be updated to the state it had before checking it out.
  3913. Requirements:
  3914. - The item must be under source code control.
  3915. - The item must be checked out.
  3916. Examples:
  3917. cm ^partial ^undocheckout .
  3918. (Undoes checkouts in the current directory.)
  3919. cm ^partial ^undocheckout pic1.png pic2.png
  3920. cm ^unco c:\workspace\design01.png
  3921. (Undoes checkouts of the selected files.)
  3922. == CMD_DESCRIPTION_PARTIAL_UNDO ==
  3923. Undoes changes in a workspace.
  3924. == CMD_USAGE_PARTIAL_UNDO ==
  3925. Usage:
  3926. cm ^partial ^undo [<path>[ ...]] [--^symlink] [-^r | --^recursive]
  3927. [<filter>[ ...]]
  3928. [--^silent | --^machinereadable [--^startlineseparator=<sep>]
  3929. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  3930. Options:
  3931. --^symlink Applies the undo operation to the symlink and not
  3932. to the target.
  3933. -^r | --^recursive Executes the undo recursively.
  3934. --^silent Does not show any output.
  3935. --^machinereadable Outputs the result in an easy-to-parse format.
  3936. --^startlineseparator Used with the '--^machinereadable' flag, specifies
  3937. how the lines should start.
  3938. --^endlineseparator Used with the '--^machinereadable' flag, specifies
  3939. how the lines should end.
  3940. --^fieldseparator Used with the '--^machinereadable' flag, specifies
  3941. how the fields should be separated.
  3942. --^checkedout Select checked-out files and directories.
  3943. --^unchanged Select files whose content is unchanged.
  3944. --^changed Select locally changed or checked-out files and
  3945. directories.
  3946. --^deleted Select deleted files and directories.
  3947. --^moved Select moved files and directories.
  3948. --^added Select added files and directories.
  3949. path Path of the files or directories to apply the
  3950. operation to. Use double quotes (" ") to specify
  3951. paths containing spaces. Use a whitespace to
  3952. separate paths.
  3953. If no path is specified, by default the undo
  3954. operation will take all of the files in the current
  3955. directory.
  3956. filter Applies the specified filter or filters to the given
  3957. paths. Use a whitespace to separate filters. See the
  3958. Filters section for more information.
  3959. == CMD_HELP_PARTIAL_UNDO ==
  3960. Remarks:
  3961. The ^undo command is dangerous - it undoes work in an irreversible way.
  3962. Once the ^undo has finished, it is not possible to recover the previous state
  3963. of the files and directories affected by it. If no path is specified
  3964. in the arguments, by default it will undo every change in the current
  3965. directory, but not recursively.
  3966. These are equivalent when executed from the /src directory:
  3967. - src
  3968. - file.txt
  3969. - code.cs
  3970. - /test
  3971. - test_a.py
  3972. - test_b.py
  3973. cm ^partial ^undo
  3974. cm ^partial ^undo *
  3975. cm ^partial ^undo file.txt code.cs /test
  3976. cm ^partial ^undo .
  3977. cm ^partial ^undo /src file.txt code.cs
  3978. If you want the operation to be recursive, you must specify the '-^r' flag.
  3979. To undo all of the changes below a directory (including changes affecting
  3980. the directory itself):
  3981. cm ^partial ^undo dirpath -^r
  3982. If dirpath is a workspace path, every change in the workspace will be
  3983. undone.
  3984. Filters:
  3985. If no flag is specified, by default, all changes are undone, but the
  3986. paths can be filtered using one or more of the flags below.
  3987. If a file or directory matches one or more of the specified kinds of change,
  3988. all of the changes on said file or directory will be undone.
  3989. For example, if you specify both '--^checkedout' and '--^moved', if a file is
  3990. both checkedout and moved, both changes will be undone.
  3991. Examples:
  3992. cm ^partial ^undo . -^r
  3993. (Undoes all changes in the current directory recursively. If executed
  3994. from the workspace's root, undoes all changes in the entire workspace.)
  3995. cm ^partial ^co file.txt
  3996. cm ^partial ^undo file.txt
  3997. (Undoes the checkout on file.txt.)
  3998. ^echo ^content >> file.txt
  3999. cm ^partial ^undo file.txt
  4000. (Undoes the local change to file.txt.)
  4001. cm ^partial ^undo src
  4002. (Undoes changes to the src directory and its files.)
  4003. cm ^partial ^undo src/*
  4004. (Undo changes in every file and directory contained in src, without
  4005. affecting src.)
  4006. cm ^partial ^undo *.cs
  4007. (Undo changes to every file or directory that matches *.cs in the current
  4008. directory.)
  4009. cm ^partial ^undo *.cs -^r
  4010. (Undoes changes on every file or directory that matches *.cs in the current
  4011. directory and every directory below it.)
  4012. cm ^partial ^co file1.txt file2.txt
  4013. ^echo ^content >> file1.txt
  4014. cm ^partial ^undo --^unchanged
  4015. (Undoes the checkout of unchanged file2.txt, ignoring locally changed
  4016. file1.txt.)
  4017. ^echo ^content >> file1.txt
  4018. ^echo ^content >> file2.txt
  4019. cm ^partial ^co file1.txt
  4020. cm ^partial ^undo --^checkedout
  4021. (Undoes the changes in checked-out file file1.txt, ignoring file2.txt as it is
  4022. not checked-out.)
  4023. cm ^partial ^add file.txt
  4024. cm ^partial ^undo file.txt
  4025. (Undoes the add of file.txt, making it once again a private file.)
  4026. ^rm file1.txt
  4027. ^echo ^content >> file2.txt
  4028. cm ^partial ^add file3.txt
  4029. cm ^partial ^undo --^deleted --^added *
  4030. (Undoes the file1.txt delete and file3.txt add, ignoring the file2.txt
  4031. change.)
  4032. == CMD_DESCRIPTION_PARTIAL_UPDATE ==
  4033. Updates the partial workspace and downloads latest changes.
  4034. == CMD_USAGE_PARTIAL_UPDATE ==
  4035. Usage:
  4036. cm ^partial ^update [<item_path>[ ...]] [--^changeset=<number>]
  4037. [--^silent | --^report] [--^dontmerge]
  4038. [--^xml[=<output_file>]] [--^encoding=<name>]
  4039. [--^machinereadable [--^startlineseparator=<sep>]
  4040. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  4041. Options:
  4042. --^changeset Updates the partial workspace to a specific changeset.
  4043. --^silent No output is shown unless an error happens.
  4044. --^xml Prints the output in XML format to the standard
  4045. output. It is possible to specify an output file.
  4046. --^encoding Used with the '--xml' option, specifies the encoding to
  4047. use in the XML output, i.e.: utf-8.
  4048. See the MSDN documentation at
  4049. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  4050. to get the table of supported encodings and its format,
  4051. (at the end of the page, in the "Name" column).
  4052. By default "utf-8" will be assigned.
  4053. --^report Prints a list of the applied changes when the command
  4054. is finished. Using '--^silent' will override this setting.
  4055. --^dontmerge Does not merge the file conflicts, it just skips them.
  4056. The other changes are properly applied. This option can
  4057. be useful for automation to avoid user interaction.
  4058. --^machinereadable Outputs the result in an easy-to-parse format.
  4059. --^startlineseparator Used with the '--^machinereadable' flag,
  4060. specifies how the lines should start.
  4061. --^endlineseparator Used with the '--^machinereadable' flag,
  4062. specifies how the lines should end.
  4063. --^fieldseparator Used with the '--^machinereadable' flag,
  4064. specifies how the fields should be separated.
  4065. item_path Items to be updated. Use double quotes (" ") to specify
  4066. paths containing spaces. Use a whitespace to separate
  4067. paths. Use . to apply update to current directory.
  4068. If no path is specified, then the current partial
  4069. workspace is fully updated.
  4070. == CMD_HELP_PARTIAL_UPDATE ==
  4071. Remarks:
  4072. The '^partial ^update' command updates the out-of-date files.
  4073. The command assumes recursive operation.
  4074. If all the specified paths are files inside the same Xlink when using the
  4075. '--^changeset' option, then the versions to download are searched in the
  4076. specified changeset of the Xlinked repository.
  4077. Examples:
  4078. cm ^partial ^update
  4079. (Updates all in the current partial workspace.)
  4080. cm ^partial ^update .
  4081. (Updates all current directory children items.)
  4082. cm ^partial ^update backgroud-blue.png
  4083. (Updates 'backgroud-blue.png' item.)
  4084. cm ^partial ^update soft_black.png soft-grey.png
  4085. (Updates 'soft_black.png' and 'soft-grey.png' items.)
  4086. cm ^partial ^update src --^report
  4087. (Updates all 'src' directory children items, printing the applied changes
  4088. list at the end.)
  4089. cm ^partial ^update src --^changeset=4
  4090. (Updates all 'src' directory children items to the content they loaded
  4091. in the changeset 4.)
  4092. cm ^partial ^update xlink/first.png --^changeset=4
  4093. (Updates 'xlink/first.png' item to the content it loaded in the changeset 4
  4094. of the Xlinked repository.)
  4095. cm ^partial ^update . --^changeset=2 --^xml=output.xml 2>errors.txt
  4096. (Updates all current directory children items to the content they loaded
  4097. in the changeset 2, reporting the result in XML format. The output is stored
  4098. in a file named 'output.xml' and errors are redirected to the file 'errors.txt'.
  4099. NOTE: redirection syntax rely on the shell.)
  4100. == CMD_DESCRIPTION_PATCH ==
  4101. Generates a patch file from a spec or applies a generated patch to the current
  4102. workspace.
  4103. == CMD_USAGE_PATCH ==
  4104. Usage:
  4105. cm ^patch <source_spec> [<source_spec>] [--^output=<output_file>]
  4106. [--^tool=<path_to_diff>]
  4107. (Generates a patch file that contains the differences of a branch,
  4108. a changeset, or the differences between changesets. It also tracks
  4109. differences of text and binary files.)
  4110. cm ^patch --^apply <patch_file> [--^tool=<path_to_patch>]
  4111. (Allows to apply the contents of a generated patch file in the current
  4112. workspace.)
  4113. Options:
  4114. --^output Sets the output file of the patch command.
  4115. --^tool Sets the application to use (diff or patch).
  4116. source_spec Full spec of a changeset or a branch. (Use
  4117. 'cm ^help ^objectspec' to learn more about specs.)
  4118. output_file File to save the patch content. It no file is specified,
  4119. the patch content will be printed on standard output.
  4120. patch_file Patch file to apply in the current workspace.
  4121. == CMD_HELP_PATCH ==
  4122. Limitations:
  4123. If the output patch file already exists, the command will not overwrite it.
  4124. When applying a patch, the command will not apply changes to modified files
  4125. if they are not present on disk.
  4126. Important:
  4127. This command requires Diff and Patch tools, publicly available at
  4128. http://gnuwin32.sourceforge.net/packages/patch.htm and
  4129. http://gnuwin32.sourceforge.net/packages/diffutils.htm
  4130. Once installed, it's recommended to add their location to the PATH
  4131. environment variable.
  4132. Examples:
  4133. cm ^patch ^cs:4@default@localhost:8084
  4134. (Prints on console the differences of cset 4 in unified format.)
  4135. cm ^patch ^br:/main --^output=file.patch
  4136. (Generates a patch file with the differences of branch "main".)
  4137. cm ^patch ^br:/main --^output=file.patch --^tool=C:\gnu\diff.exe
  4138. (Same as above, using a custom exe.)
  4139. cm ^patch ^cs:2@default ^cs:4@default
  4140. (Prints on console the differences between csets 2 and 4 in unified format.)
  4141. cm ^patch --^apply file.patch --^tool=C:\gnu\patch.exe
  4142. (Applies the patch in 'file.patch' to the local workspace with a custom exe.)
  4143. == CMD_DESCRIPTION_PROFILE ==
  4144. Allows the user to manage server connection profiles.
  4145. == CMD_USAGE_PROFILE ==
  4146. Usage:
  4147. cm ^profile <command> [options]
  4148. Commands:
  4149. - ^list | ^ls
  4150. - ^create | ^mk
  4151. - ^delete | ^rm
  4152. To get more information about each command run:
  4153. cm ^profile <command> --^usage
  4154. cm ^profile <command> --^help
  4155. == CMD_HELP_PROFILE ==
  4156. Examples:
  4157. cm ^profile
  4158. cm ^profile ^list
  4159. cm ^profile ^create
  4160. cm ^profile ^delete 1
  4161. == CMD_DESCRIPTION_PROFILE_LIST ==
  4162. Lists the server connection profiles configured on the client.
  4163. == CMD_USAGE_PROFILE_LIST ==
  4164. Usage:
  4165. cm ^profile [^list | ^ls] [--^format=<str_format>]
  4166. Options:
  4167. --^format Retrieves the output message in a specific format.
  4168. See Remarks for more info.
  4169. == CMD_HELP_PROFILE_LIST ==
  4170. Remarks:
  4171. Output format parameters (--^format option):
  4172. This command accepts a format string to show the output.
  4173. The output parameters of this command are the following:
  4174. {^index} | {0} Profile index in the profiles list
  4175. {^name} | {1} Profile name
  4176. {^server} | {2} Profile server
  4177. {^user} | {3} Profile user
  4178. {^workingmode} | {4} Profile working mode
  4179. {^securityconfig} | {5} Profile security config
  4180. {^tab} Inserts a tab space
  4181. {^newline} Inserts a new line
  4182. Examples:
  4183. cm ^profile
  4184. (Lists all the profiles using the default format)
  4185. cm ^profile --^format="{index,2} {server,-20}"
  4186. (Writes the profile index in 2 spaces, aligned to the right, then two blanks,
  4187. and then the repository server in 20 spaces, aligned to the left.)
  4188. cm ^profile --^format="{0,2} {2,-20}"
  4189. (Writes the same output as the previous example.)
  4190. == CMD_DESCRIPTION_PROFILE_CREATE ==
  4191. Creates a new server connection profile.
  4192. == CMD_USAGE_PROFILE_CREATE ==
  4193. Usage:
  4194. cm ^profile [^create | ^mk]
  4195. (Creates a new profile interactively.)
  4196. cm ^profile [^create | ^mk] --^server=<server_addr> --^username=<username>
  4197. --^password=<password> --^workingmode=<workingmode>
  4198. (Creates a new server connection profile using a user/password
  4199. authentication mode.)
  4200. cm ^profile [^create | ^mk] --^server=<server_addr> --^username=<username>
  4201. --^token=<token> --^workingmode=SSOWorkingMode
  4202. (Creates a new server connection profile using Single Sign On authentication
  4203. mode.)
  4204. Options:
  4205. --^server Creates the connection profile for the specified server.
  4206. --^username The username that should be used in the connection profile
  4207. --^password The plain-text password that should be used in the connection
  4208. profile. This option is only valid for authentication modes
  4209. that are based on a user and password.
  4210. --^token The plain-text token that should be used in the connection
  4211. profile. This option is only valid for authentication modes
  4212. that are based on a token (SSOWorkingMode for now).
  4213. --^workingmode The target server's authentication mode.
  4214. Available users/security working modes:
  4215. ^LDAPWorkingMode (LDAP)
  4216. ^UPWorkingMode (User and password)
  4217. ^SSOWorkingMode (Single Sign On)
  4218. == CMD_HELP_PROFILE_CREATE ==
  4219. Remarks:
  4220. When using this command interactively (without options), the client will try
  4221. to connect to the server to obtain the working mode and check the credentials.
  4222. This guarantees that the resulting profile is correct.
  4223. When specifying the options, the client will generate the connection profile
  4224. without connecting to the server. This is useful when creating connection
  4225. profiles for automation purposes.
  4226. Examples:
  4227. cm ^profile ^create
  4228. (Creates a new connection profile interactively.)
  4229. cm ^profile ^create --^server=plastic.domain.com:8087 --^username=sergio
  4230. --^password=thisissupersecret --^workingmode=LDAPWorkingMode
  4231. (Creates a new connection profile to connect to 'plastic.domain.com:8087'
  4232. using user 'sergio' and password 'thisissupersecret' through LDAP working mode.)
  4233. cm ^profile ^create --^server=plastic.domain.com:8087 --^username=sergio
  4234. --^token="TOKENAMoKJ9iAA(...)12fssoprov:unityid" --workingmode=^SSOWorkingMode
  4235. (Creates a new connection profile to connect to 'plastic.domain.com:8087'
  4236. using user 'sergio' and the specified token through Single Sign On working mode.)
  4237. == CMD_DESCRIPTION_PROFILE_DELETE ==
  4238. Deletes a server connection profile from the client's configuration.
  4239. == CMD_USAGE_PROFILE_DELETE ==
  4240. Usage:
  4241. cm ^profile ^delete | ^rm <index | name>
  4242. cm ^profile ^delete | ^rm --^index=<index>
  4243. cm ^profile ^delete | ^rm --^name=<name>
  4244. Options:
  4245. --^index Used to disambiguate in case a profile has a name that is a number
  4246. --^name Used to disambiguate in case a profile has a name that is a number
  4247. index Profile index in the profiles list.
  4248. name Profile name.
  4249. == CMD_HELP_PROFILE_DELETE ==
  4250. Remarks:
  4251. Deletes a server connection profile from the client's configuration.
  4252. It works both with the profile index and the profile name.
  4253. The 'cm ^profile ^list' command does not show profile names by default,
  4254. check 'cm ^profile ^list --help' to check how to output profile's name.
  4255. Example:
  4256. cm ^profile ^delete 1
  4257. (Removes the profile at index 1.)
  4258. cm ^profile ^delete 192.168.0.2:8087_UPWorkingMode
  4259. (Removes the profile with name '192.168.0.2:8087_UPWorkingMode'.)
  4260. cm ^profile ^delete --name=12
  4261. (Removes the profile with name '12'.)
  4262. == CMD_DESCRIPTION_QUERY ==
  4263. Executes SQL queries. Requires SQL storage.
  4264. == CMD_USAGE_QUERY ==
  4265. Usage:
  4266. cm ^query <sql_command> [--^outputfile=<output_file>]
  4267. [--^solveuser=<column_name>[,...]]
  4268. [--^solvepath=<column_name>[,...]]
  4269. [--^columnwidth=<value>] [--^nocolumnname]
  4270. [--^columnseparator=<sep>] [--^repository=<name>]
  4271. Options:
  4272. --^outputfile Writes the result in an output file.
  4273. --^solveuser Sets the specified columns as username columns. The
  4274. query interpreter will assume that data of these columns
  4275. will be users, and will try to solve them.
  4276. --^solvepath Sets the specified columns as itemid column. The query
  4277. interpreter will try to solve item id to filesystem
  4278. paths.
  4279. --^columnwidth Specifies the width of each column to format the output.
  4280. --^nocolumnname Does not print column name.
  4281. --^columnseparator Uses char as column separator instead of a tab (\t).
  4282. --^repository Repository to query.
  4283. sql_command The sql query to be executed.
  4284. == CMD_HELP_QUERY ==
  4285. Remarks:
  4286. This command allows users to execute SQL queries in the server database.
  4287. In order to write SQL queries, use these two pre-defined functions to manage
  4288. users and paths:
  4289. - '^SolveUser(<username>)' that resolves a username into Unity VCS format.
  4290. - '^SolvePath(<path>)' that resolves a disk path into an item id.
  4291. Also, you can use options to show query results in a human readable form.
  4292. You can use the options '--^solveuser=<column_name>' and
  4293. '--^solvepath=<column_name>' to specify columns that query interpreter
  4294. must convert to a legible text. You can specify more than one column name,
  4295. comma separated.
  4296. Examples:
  4297. cm ^query "^SELECT * ^FROM ^revision" --^columnwidth=25 --^repository=reptest
  4298. (Retrieves data from 'revision' table from repository 'reptest'.)
  4299. cm ^query "^SELECT b.^sname ^as br_name, o.^dtimestamp ^as date ^from ^branch b, \
  4300. ^object o, ^seid s ^where b.^iobjid=o.^iobjid ^and o.^fidowner=s.^iseidid ^and \
  4301. s.^scode='^SolveUser(john)'" --^outputfile=query.txt
  4302. (Outputs into a file the branches with owner 'john'.)
  4303. cm ^query "^select r.^iobjid, r.^fiditem ^as path, s.^scode ^as username ^FROM \
  4304. ^revision r, ^object o, ^seid s ^WHERE r.^iobjid=o.^iobjid ^and \
  4305. o.^fidowner=s.^iseidid ^and o.^dtimestamp>04/25/2014" \
  4306. --^solveuser=username --^solvepath=path --^repository=reptest@server2:9095
  4307. (Retrieves selected data from selected repository.)
  4308. cm ^query "^SELECT * ^FROM ^revision ^WHERE ^fiditem=^SolvePath(c:\mywkpath\info)"
  4309. (Retrieves all revision data of path 'info'.)
  4310. == CMD_DESCRIPTION_ATTRIBUTE_DELETE ==
  4311. Deletes one or more attributes.
  4312. == CMD_USAGE_ATTRIBUTE_DELETE ==
  4313. Usage:
  4314. cm ^attribute | ^att ^delete | ^rm <att_spec>[ ...]
  4315. Options:
  4316. att_spec Attributes to delete. Use a whitespace to separate
  4317. attributes.
  4318. (Use 'cm ^help ^objectspec' to learn more about attribute
  4319. specs.)
  4320. == CMD_HELP_ATTRIBUTE_DELETE ==
  4321. Remarks:
  4322. This command removes one or more attributes.
  4323. Examples:
  4324. cm ^attribute ^delete ^att:status
  4325. (Deletes the attribute 'status'.)
  4326. cm ^att ^rm status ^att:integrated@reptest@server2:8084
  4327. (Deletes the attributes 'status' and 'integrated'.)
  4328. == CMD_DESCRIPTION_ATTRIBUTE_UNSET ==
  4329. Unsets an object's attribute.
  4330. == CMD_USAGE_ATTRIBUTE_UNSET ==
  4331. Usage:
  4332. cm ^attribute | ^att ^unset <att_spec> <object_spec>
  4333. att_spec Attribute specification. (Use 'cm ^help ^objectspec' to
  4334. learn more about attribute specs.)
  4335. object_spec Specification of the object to remove the attribute
  4336. from. Attributes can be set on: branches, changesets,
  4337. shelvesets, labels, items, and revisions.
  4338. (Use 'cm ^help ^objectspec' to learn more about specs.)
  4339. == CMD_HELP_ATTRIBUTE_UNSET ==
  4340. Remarks:
  4341. The command unsets an attribute that was previously set on an object. It
  4342. does not delete the attribute object itself.
  4343. Examples:
  4344. cm ^attribute ^unset ^att:status ^br:/main/SCM105
  4345. (Removes attribute realization 'status' from branch 'main/SCM105'.)
  4346. cm ^att ^unset ^att:integrated@reptest@localhost:8084 ^cs:25@reptest@localhost:8084
  4347. (Removes attribute realization 'integrated' from changeset 25, all in
  4348. repository 'reptest'.)
  4349. == CMD_DESCRIPTION_ATTRIBUTE_RENAME ==
  4350. Renames an attribute.
  4351. == CMD_USAGE_ATTRIBUTE_RENAME ==
  4352. Usage:
  4353. cm ^attribute | ^att ^rename <att_spec> <new_name>
  4354. att_spec Attribute to rename. (Use 'cm ^help ^objectspec' to learn
  4355. more about attribute specs.)
  4356. new_name New name for the attribute.
  4357. == CMD_HELP_ATTRIBUTE_RENAME ==
  4358. Remarks:
  4359. This command renames an attribute.
  4360. Examples:
  4361. cm ^attribute ^rename ^att:status state
  4362. (Renames the attribute 'status' to 'state'.)
  4363. == CMD_DESCRIPTION_ATTRIBUTE_EDIT ==
  4364. Edits the comment of an attribute.
  4365. == CMD_USAGE_ATTRIBUTE_EDIT ==
  4366. Usage:
  4367. cm ^attribute | ^att ^edit <att_spec> <new_comment>
  4368. Options:
  4369. att_spec Attribute to change its comment. (Use 'cm ^help ^objectspec'
  4370. to learn more about attribute specs.)
  4371. new_comment New comment for the attribute. You can also specify a
  4372. default list of values for the attribute. See Remarks for
  4373. more info.
  4374. == CMD_HELP_ATTRIBUTE_EDIT ==
  4375. Remarks:
  4376. This command changes the comment of an attribute.
  4377. To specify a default list of values for the attribute, you just need to
  4378. include a line like the following in the attribute comment:
  4379. 'default: value_one, "value two", value3, "Final value"'.
  4380. Examples:
  4381. cm ^attribute ^edit ^att:status "The status of a branch in the CI pipeline."
  4382. (Edits the comment of the attribute 'status'.)
  4383. cm ^attribute ^edit ^att:status "Status of a branch. default: open, resolved, reviewed"
  4384. (Edits the comment of the attribute 'status'. And also specifies a list of
  4385. values. So when you set the attribute 'status' to an object, you can select
  4386. one of the following values: "open", "resolved", or "reviewed".)
  4387. == CMD_DESCRIPTION_PULL ==
  4388. Pulls a branch from another repo.
  4389. == CMD_USAGE_PULL ==
  4390. Usage:
  4391. cm ^pull <src_br_spec> <dst_rep_spec>
  4392. [--^preview] [--^nodata] [TranslateOptions]
  4393. [--^user=<usr_name> [--^password=<pwd>] | AuthOptions]
  4394. (Direct server-to-server replication. Pulls a branch from a repository.)
  4395. cm ^pull <dst_rep_spec> --^package=<pack_file> [AuthOptions]
  4396. (Package based replication. Imports the package in the destination repository.)
  4397. cm ^pull ^hydrate <dst_br_spec> [<src_rep_spec>]
  4398. [--^user=<usr_name> [--^password=<pwd>] | AuthOptions]
  4399. (Introduces the missing data for all the changesets of a branch previously
  4400. replicated with '--^nodata'. If a repo to obtain the data is not specified,
  4401. Unity VCS tries to use the "replication source" (origin of the replicated
  4402. branch)).
  4403. cm ^pull ^hydrate <dst_cs_spec> [<src_rep_spec>]
  4404. [--^user=<usr_name> [--^password=<pwd>] | AuthOptions]
  4405. (Introduces the missing data for a changeset previously replicated with
  4406. '--^nodata'. If a repo to obtain the data is not specified, Unity VCS tries
  4407. to use the "replication source").
  4408. Options:
  4409. --^preview Gives information about what changes will be pulled but
  4410. no changes are actually performed. This option is useful
  4411. to check the data that will be transferred before
  4412. replicating changes.
  4413. --^nodata Replicates the branch changes without replicating the
  4414. data. This option is not allowed with package
  4415. replication.
  4416. --^user, --^password Credentials to use if the authentication mode is
  4417. different in source and destination and there is not a
  4418. profile to authenticate to destination.
  4419. --^package Specifies the previously created package file to import
  4420. for package based replication. Useful to move data between
  4421. servers when there is no direct network connection. Refer to
  4422. 'cm ^push' to create a package file.
  4423. src_br_spec The branch to pull from a remote repository.
  4424. (Use 'cm ^help ^objectspec' to learn more about branch specs.)
  4425. dst_br_spec The branch to hydrate.
  4426. (Use 'cm ^help ^objectspec' to learn more about branch specs.)
  4427. dst_cs_spec The changeset to hydrate.
  4428. (Use 'cm ^help ^objectspec' to learn more about changeset specs.)
  4429. dst_rep_spec The destination repository.
  4430. (Use 'cm ^help ^objectspec' to learn more about repository specs.)
  4431. TranslateOptions See the Translate options section for more information.
  4432. AuthOptions See the Authentication options section for more information.
  4433. Translate options:
  4434. Mode:
  4435. --^trmode=(^copy|^name|^table --^trtable=<translation_table_file>)
  4436. The source and destination repositories may use different authentication
  4437. modes. The '--^trmode' option specifies how to translate the user names from
  4438. the source to the destination. The '--^trmode' must be one of the following
  4439. values:
  4440. ^copy (Default). Means that the user identifiers will be just copied.
  4441. ^name The user identifiers will be matched by name.
  4442. ^table Uses a translation table specified in the option '--^trtable'
  4443. (see below).
  4444. Specifics if mode is set to "table":
  4445. --^trtable=<translation_table_file>
  4446. If the translation mode is 'table', a translation table is a file
  4447. containing lines in the form <oldname;newname> (one per line). When the
  4448. branch is written to the destination repository, the objects created by
  4449. a user identified by "oldname" in the source repository will be set
  4450. to the user with "newname" on the destination.
  4451. Authentication options:
  4452. Authentication data can be specified using one of the two following modes:
  4453. - Using authentication parameters.
  4454. - Using an authentication file.
  4455. Using authentication parameters:
  4456. --^authmode=<mode> --^authdata=<data>
  4457. Where --^authmode can take one of the following values
  4458. - ^NameWorkingMode
  4459. - ^LDAPWorkingMode
  4460. - ^ADWorkingMode
  4461. - ^UPWorkingMode
  4462. Examples:
  4463. (^LDAPWorkingMode) --^authdata=::0:dave:fPBea2rPsQaagEW3pKNveA
  4464. (^UPWorkingMode) --^authdata=dave:fPBea2rPsQaagEW3pKNveA==
  4465. The '--^authdata' line is the content of the <^SecurityConfig> entry
  4466. in the client.conf file and the profiles.conf file. The profiles.conf
  4467. file can be easily generated from the Unity VCS GUI in the replication
  4468. profiles tab under Preferences.
  4469. If you are using ^UPWorkingMode, you can simply specify:
  4470. --^authmode=^UPWorkingMode --^user=<user> --^password=<psw>
  4471. Using an authentication file:
  4472. It's possible to have a different file for each server you connect to,
  4473. with the credentials for that server and --^authfile=<authentication_file>
  4474. where the authentication_file must be formed by the following 2 lines:
  4475. 1) mode, as described in '--^authmode'
  4476. 2) authentication data, as described in '--^authdata'
  4477. == CMD_HELP_PULL ==
  4478. Remarks:
  4479. The '^pull' command is able to replicate branches (along with their
  4480. changesets) between a source repository and a destination repository.
  4481. The repositories can be located at different servers.
  4482. There are two replication operations: '^push' and '^pull'.
  4483. A '^pull' operation means that the replication operation will demand data
  4484. from the source repository to be stored into the destination repository.
  4485. The client will connect to the destination repository and, from that host,
  4486. it will establish a connection to the source repository to retrieve the
  4487. targeted data. During pull it is the destination server which will be
  4488. connected to the source.
  4489. Although in a typical distributed scenario a developer pushes data from his
  4490. local server to the main server, the developer might want to pull the latest
  4491. repository updates from the main server, too.
  4492. Replication can resolve situations where concurrent changes have been made
  4493. on the same branch on two replicated repositories:
  4494. - Push: If you try to push your data to a repository having newer changes
  4495. than those you are sending, the system will ask you to pull the latest
  4496. changes, resolve the merge operation and, finally, try to push again.
  4497. - Pull: Whenever you pull changesets from a remote branch, they will be
  4498. correctly linked to their parent changesets. If the changeset you pulled
  4499. is not a child of the last changeset in the branch, then a multi-headed
  4500. scenario will appear. The branch will have more than one 'head', or last
  4501. changeset on the branch. You will need to merge the two 'heads' before
  4502. being able to push again.
  4503. Pull can work in two modes:
  4504. 1) Direct communication between servers: The destination server will fetch
  4505. the data from the source server, automatically synchronizing data for
  4506. the specified branch. It requires the user running the command to be
  4507. authenticated by the remote server, either using the default authentication
  4508. in the client.conf file, or specifiying the '--^authmode' and '--^authdata'
  4509. modifiers, or '--^authmode' and '--^user' and '--^password' if the authentication
  4510. mode is ^UPWorkingMode.
  4511. 2) Import a previously generated package with push and the '--^package' option.
  4512. This mode requires using a package file previously generated with the push
  4513. command.
  4514. Keep in mind that pull replication works in an indirect way. When executed,
  4515. the command asks the destination repository to connect to the source and
  4516. obtain the selected branch.
  4517. However, this can be done directly by using the push command. This will make
  4518. the command replicate the selected branch from source to destination.
  4519. Examples:
  4520. cm ^pull ^br:/main@project1@remoteserver:8084 projectx@myserver:8084
  4521. (Pulls the 'main' branch from 'remoteserver' to 'myserver'. In this case,
  4522. both servers are configured with the same authentication mode.)
  4523. cm ^pull ^br:/main@project1@remoteserver:8084 projectx@myserver:8084 \
  4524. --^authmode=^LDAPWorkingMode --^authdata=::0:dave:fPBea2rPsQaagEW3pKNveA
  4525. (Pulls the same branch as before, but now the remote server is configured
  4526. to authenticate users with Active Directory. For instance, I am connecting
  4527. from a Linux machine to a Windows server configured to use Active Directory
  4528. integrated mode. I will specify my Active Directory user and cyphered
  4529. password and pass it as LDAP to the server.)
  4530. cm ^pull ^br:/main@project1@remoteserver:8084 projectx@myserver:8084 \
  4531. --^authmode=^UPWorkingMode --^user=dave --^password=mysecret
  4532. (Pulls the same branch, but now users are authenticated on the remote
  4533. server, taking advantage of the user/password database included in
  4534. Unity VCS.)
  4535. cm ^pull ^br:/main@project1@remoteserver:8084 projectx@myserver:8084 --^nodata
  4536. (Replicates the 'main' branch from 'remoteserver' to 'myserver' without data.)
  4537. cm ^pull ^hydrate ^br:/main@projectx@myserver:8084 projectx@remoteserver:8084
  4538. (Hydrates all the changesets in the 'main' branch obtaining the data from
  4539. the remote server.)
  4540. cm ^pull ^hydrate ^cs:122169@projectx@myserver:8084 projectx@remoteserver:8084
  4541. (Hydrates changeset 122169 in 'myserver' obtaining the data from the remote
  4542. server.)
  4543. == CMD_DESCRIPTION_PUSH ==
  4544. Pushes a branch to another repo.
  4545. == CMD_USAGE_PUSH ==
  4546. Usage:
  4547. cm ^push <src_br_spec> <dst_rep_spec>
  4548. [--^preview] [TranslateOptions]
  4549. [--^user=<usr_name> [--^password=<pwd>] | AuthOptions]
  4550. (Direct server-to-server replication. Pushes a branch from a repository.)
  4551. cm ^push <src_br_spec> --^package=<pack_file> [AuthOptions]
  4552. (Package based replication. Creates a replication package in the source
  4553. server with the selected branch.)
  4554. Options:
  4555. --^preview Gives information about what changes will be pushed,
  4556. but no changes are actually performed. This option is
  4557. useful to check the data that will be transferred before
  4558. replicating changes.
  4559. --^package Specifies path for exporting replication package for
  4560. package based replication.
  4561. Useful to move data between servers when there is no
  4562. direct network connection.
  4563. --^user, --^password Credentials to use if the authentication mode is
  4564. different in source and destination and there is not a
  4565. profile to authenticate to destination.
  4566. src_br_spec The branch to push to a remote repository.
  4567. (Use 'cm ^help ^objectspec' to learn more about branch specs.)
  4568. dst_rep_spec The destination repository.
  4569. (Use 'cm ^help ^objectspec' to learn more about repository
  4570. specs.)
  4571. TranslateOptions See the Translate options section for more information.
  4572. AuthOptions See the Authentication options section for more information.
  4573. Translate options:
  4574. Mode:
  4575. --^trmode=(^copy|^name|^table --^trtable=<translation_table_file>)
  4576. The source and destination repositories may use different authentication
  4577. modes. The '--^trmode' option specifies how to translate the user names from
  4578. the source to the destination. The '--^trmode' must be one of the following
  4579. values:
  4580. ^copy (Default). Means that the user identifiers will be just copied.
  4581. ^name The user identifiers will be matched by name.
  4582. ^table Uses a translation table specified in the option '--^trtable'
  4583. (see below).
  4584. Specifics if mode is set to "table":
  4585. --^trtable=<translation_table_file>
  4586. If the translation mode is 'table', a translation table is a file
  4587. containing lines in the form <oldname;newname> (one per line). When the
  4588. branch is written to the destination repository, the objects created by
  4589. a user identified by "oldname" in the source repository will be set
  4590. to the user with "newname" on the destination.
  4591. Authentication options:
  4592. Authentication data can be specified using one of the two following modes:
  4593. - Using authentication parameters.
  4594. - Using an authentication file.
  4595. Using authentication parameters:
  4596. --^authmode=<mode> --^authdata=<data>
  4597. Where --^authmode can take one of the following values
  4598. - ^NameWorkingMode
  4599. - ^LDAPWorkingMode
  4600. - ^ADWorkingMode
  4601. - ^UPWorkingMode
  4602. Examples:
  4603. (^LDAPWorkingMode) --^authdata=::0:dave:fPBea2rPsQaagEW3pKNveA
  4604. (^UPWorkingMode) --^authdata=dave:fPBea2rPsQaagEW3pKNveA==
  4605. The '--^authdata' line is the content of the <^SecurityConfig> entry
  4606. in the client.conf file and the profiles.conf file. The profiles.conf
  4607. file can be easily generated from the Unity VCS GUI in the replication
  4608. profiles tab under Preferences.
  4609. If you are using ^UPWorkingMode, you can simply specify:
  4610. --^authmode=^UPWorkingMode --^user=<user> --^password=<psw>
  4611. Using an authentication file:
  4612. It's possible to have a different file for each server you connect to,
  4613. with the credentials for that server and --^authfile=<authentication_file>
  4614. where the authentication_file must be formed by the following 2 lines:
  4615. 1) mode, as described in '--^authmode'
  4616. 2) authentication data, as described in '--^authdata'
  4617. == CMD_HELP_PUSH ==
  4618. Remarks:
  4619. The '^push' command is able to replicate branches (along with their
  4620. changesets) between a source repository and a destination repository.
  4621. The repositories can be located at different servers.
  4622. There are two replication operations: '^push' and '^pull'.
  4623. A '^push' operation means that the replication operation will send data
  4624. from the source repository to the destination repository. In this case,
  4625. the client will connect to the source repository, getting the data to
  4626. replicate, and then it will send it to the destination repository. While
  4627. the former (source) must have connectivity to the destination, the latter
  4628. (destination) will not connect itself to the source.
  4629. In a typical distributed scenario, a developer pushes data from his local
  4630. server to the main server. Also, the developer might want to pull the latest
  4631. repository updates from the main server, too.
  4632. Replication can resolve situations where concurrent changes have
  4633. been made on the same branch on two replicated repositories.
  4634. - Push: If you try to push your data to a repository having newer changes
  4635. than those you are sending, the system will ask you to pull the latest
  4636. changes, resolve the merge operation and, finally, try to push again.
  4637. - Pull: Whenever you pull changesets from a remote branch, they will be
  4638. correctly linked to their parent changesets. If the changeset you pulled
  4639. is not a child of the last changeset in the branch, then a multi-headed
  4640. scenario will appear. The branch will have more than one 'head', or last
  4641. changeset on the branch. You will need to merge the two 'heads' before
  4642. being able to push again.
  4643. Push can work in two modes:
  4644. 1) Direct communication between servers: The origin server will send
  4645. the data to the destination server, automatically synchronizing data
  4646. for the specified branch.
  4647. 2) Export package mode: The client will only connect to the source and
  4648. generate a replication package obtaining both data and metadata for the
  4649. specified branch. The '--^package' modifier will be used.
  4650. Both modes require the user running the command to be authenticated
  4651. by the server, either using the default authentication in the client.conf
  4652. file, or specifiying the '--^authmode' and '--^authdata' modifiers.
  4653. The ^push replication works in a direct way. When executed, the command
  4654. will replicate the selected branch from source to destination, instead of
  4655. asking the destination repository to connect to the source and obtain the
  4656. selected branch (as the pull does).
  4657. Examples:
  4658. cm ^push ^br:/main@project1@myserver:8084 projectx@remoteserver:8084
  4659. (Replicates the 'main' branch from 'myserver' to 'remoteserver'. In this case,
  4660. both servers are configured with the same authentication mode.)
  4661. cm ^push ^br:/main@project1@myserver:8084 projectx@remoteserver:8084 \
  4662. --^authmode=^LDAPWorkingMode --^authdata=::0:dave:fPBea2rPsQaagEW3pKNveA
  4663. (Replicates same branch as before, but now the remote server is configured
  4664. to authenticate users with Active Directory. For instance, I am connecting
  4665. from a Linux machine to a Windows server configured to use Active Directory
  4666. integrated mode. I will specify my Active Directory user and cyphered
  4667. password and pass it as LDAP to the server.)
  4668. cm ^push ^br:/main@project1@myserver:8084 projectx@remoteserver:8084 \
  4669. --^authmode=^UPWorkingMode --^user=dave --^password=mysecret
  4670. (Replicates the same branch, but now users are authenticated on the remote
  4671. server, taking advantage of the user/password database included in
  4672. Unity VCS.)
  4673. == CMD_DESCRIPTION_CLONE ==
  4674. Clones a remote repository.
  4675. == CMD_USAGE_CLONE ==
  4676. Usage:
  4677. cm ^clone <src_rep_spec> [<dst_rep_spec> | <dst_repserver_spec>]
  4678. [--^user=<usr_name> [--^password=<pwd>] |
  4679. [--^authmode=<mode> --^authdata=<data>] |
  4680. [--^authfile=<authentication_file>]]
  4681. [--^trmode=(^copy|^name|^table --^trtable=<translation_table_file>]
  4682. (Direct repository-to-repository clone.)
  4683. cm ^clone <src_rep_spec> --^package=<pack_file>
  4684. [--^user=<usr_name> [--^password=<pwd>] |
  4685. [--^authmode=<mode> --^authdata=<data>] |
  4686. [--^authfile=<authentication_file>]]
  4687. [--^trmode=(^copy|^name|^table --^trtable=<translation_table_file>]
  4688. (Clones to an intermediate package, that can be imported later using a
  4689. pull into the destination repository.)
  4690. Options:
  4691. --^user, --^password Credentials to use if the authentication mode is
  4692. different in source and destination and there is not a
  4693. profile to authenticate to destination.
  4694. --^package Exports the specified repository to a package file,
  4695. instead of a repository.
  4696. Useful for moving data between servers when there is no
  4697. direct network connection.
  4698. The resulting package must be imported using the
  4699. pull command.
  4700. --^authmode Describes the authentication method used in the server.
  4701. Admisible values: ^NameWorkingMode, ^LDAPWorkingMode,
  4702. ^ADWorkingMode, ^UPWorkingMode.
  4703. --^authdata Authentication information sent to the server. It holds
  4704. the content of the <^SecurityConfig> entry in the
  4705. client.conf file and the profiles.conf file. The
  4706. profiles.conf file can be easily generated from the Unity
  4707. VCS in the connection profiles tab under Preferences.
  4708. --^authfile Allows to specify a path to a file with the credentials.
  4709. --^trmode The source and destination repositories may use different
  4710. authentication modes. The '--^trmode' option specifies
  4711. how to translate the user names from the source to the
  4712. destination. It must be one of the following values:
  4713. ^copy: (Default.) Means that the user identifiers will
  4714. be just copied; ^name: The user identifiers will be
  4715. matched by name; ^table: Uses a translation table
  4716. specified in the option '--^trtable'
  4717. --^trtable If the translation mode is 'table', a translation table
  4718. is a file containing lines in the form <oldname;newname>
  4719. (one per line). When the branch is written to the
  4720. destination repository, the objects created by a user
  4721. identified by "oldname" in the source repository will
  4722. be set to the user with "newname" on the destination.
  4723. src_rep_spec Source repository of the clone operation.
  4724. (Use 'cm ^help ^objectspec' to learn more about repository
  4725. specs.)
  4726. dst_rep_spec Destination repository of the clone operation. If it
  4727. exists, it must be empty. If it does not exist, it will
  4728. be created.
  4729. If it is not specified, the command will use user's
  4730. default repository server.
  4731. (Use 'cm ^help ^objectspec' to learn more about repository
  4732. specs.)
  4733. dst_repserver_spec Destination repository server of the clone operation.
  4734. If there is a repository with the same name as
  4735. <src_rep_spec> in the destination repository server, it
  4736. must be empty. If there is not, it will be created.
  4737. If it is not specified, the command will use user's
  4738. default repository server.
  4739. (Use 'cm ^help ^objectspec' to learn more about repository
  4740. server specs.)
  4741. translation_table_file If the translation mode is 'table', a translation table
  4742. is a file containing lines in the form <oldname;newname>
  4743. (one per line). When the branch is written to the destination
  4744. repository, the objects created by a user identified by
  4745. "oldname" in the source repository will be set to the user
  4746. with "newname" on the destination.
  4747. authentication_file Authentication file where you may have a different file
  4748. for each server you connect to, containing the credentials
  4749. for that server. The file format must comply with the
  4750. following structure: 2 lines, where the first line
  4751. describes the authentication mode, equally described as in
  4752. --^auth_mode; and the second line containing the data as
  4753. sdescribed in --^auth_data.
  4754. == CMD_HELP_CLONE ==
  4755. Remarks:
  4756. The clone command can replicate branches (along with their changesets,
  4757. labels, attributes, reviews, and so on) from a source repository to a
  4758. destination repository. The repositories can be located at different servers.
  4759. The destination repository can be created beforehand, but if it contains
  4760. previous data, the clone operation will fail.
  4761. The clone operation does NOT clone repository submodules, nor repositories
  4762. under a Xlink.
  4763. Examples:
  4764. cm ^clone awesomeProject@tardis@cloud
  4765. (Clones 'awesomeProject' repository from 'tardis@cloud' organization into
  4766. a local repository with the same name.)
  4767. cm ^clone repo@server.home:9095 repo-local
  4768. (Clones 'repo' from 'server.home:9095' into 'repo-local' at user's default
  4769. repository server.)
  4770. cm ^clone project@192.168.111.130:8084 ^repserver:192.168.111.200:9095
  4771. (Clones 'project' repository from '192.168.111.130:8084' into
  4772. 'project@192.168.111.200:9095'.)
  4773. cm ^clone project@ldapserver:8084 --authmode=^LDAPWorkingMode \
  4774. --^authdata=::0:dave:fPBea2rPsQaagEW3pKNveA
  4775. (Clones 'project' repository from 'ldapserver:8084' using LDAP
  4776. authentication against the remote repository.)
  4777. cm ^clone project@upserver:8084 --authmode=^UPWorkingMode \
  4778. --^authdata=dave:fPBea2rPsQaagEW3pKNveA==
  4779. (Clones 'project' repository from 'upserver:8084' using UPWorkingMode
  4780. authentication against the remote repository.)
  4781. cm ^clone project@upserver:8084 --authmode=^UPWorkingMode \
  4782. --^user=<user> --^password=<pwd>
  4783. (Clones 'project' repository from 'upserver:8084' using UPWorkingMode
  4784. authentication against the remote repository but specifying the
  4785. ^user and ^password instead of the ^authdata.)
  4786. cm ^clone project@ldapserver:8084 --authfile=credentials.txt \
  4787. --^trmode=table --^trtable=table.txt
  4788. (Clones 'project' repository from 'ldapserver:8084' using an authentication
  4789. file against the remote repository, and translating users following the
  4790. specified translation table.)
  4791. cm ^clone project@server.home:9095 --^package=project.plasticpkg
  4792. cm ^repository ^create project@mordor.home:8084
  4793. cm ^pull --^package=project.plasticpkg project@mordor.home:8084
  4794. (Clones 'project' repository from 'server.home:9095' into the package
  4795. 'project.plasticpkg', which is later imported through a pull into
  4796. the 'project' repository at 'mordor.home:8084'.)
  4797. == CMD_DESCRIPTION_REVERT ==
  4798. Reverts an item to a previous revision.
  4799. == CMD_USAGE_REVERT ==
  4800. Usage:
  4801. cm ^revert <revspec>
  4802. Options:
  4803. revspec Specification of the changeset that contains the
  4804. revision which content will be loaded in the workspace.
  4805. (Use 'cm ^help ^objectspec' to learn more about revision specs.)
  4806. == CMD_HELP_REVERT ==
  4807. Remarks:
  4808. The item must be checked in.
  4809. Examples:
  4810. cm ^revert dir#^cs:0
  4811. cm ^revert C:\mywks\dir\file1.txt#23456
  4812. == CMD_DESCRIPTION_HISTORY ==
  4813. Displays the history of a file or directory.
  4814. == CMD_USAGE_HISTORY ==
  4815. Usage:
  4816. cm ^history | ^hist <item_path>[ ...] [--^long | --^format=<str_format>]
  4817. [--^symlink] [--^xml[=<output_file>]] [--^encoding=<name>]
  4818. [--^moveddeleted]
  4819. Options:
  4820. --^long Shows additional information.
  4821. --^format Retrieves the output message in a specific format. See
  4822. Remarks for more info. This option cannnot be combined
  4823. with '--^xml'.
  4824. --^symlink Applies the history operation to the symlink and not to
  4825. the target.
  4826. --^xml Prints the output in XML format to the standard output.
  4827. It is possible to specify an output file. This option
  4828. cannot be combined with '--^format'.
  4829. --^encoding Used with the '--^xml' option, specifies the encoding to
  4830. use in the XML output, i.e.: utf-8.
  4831. See the MSDN documentation at
  4832. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  4833. to get the table of supported encodings and its format,
  4834. (at the end of the page, in the "Name" column).
  4835. --^moveddeleted Include move and remove operations in the history.
  4836. --^limit Displays the N most recent revisions for the specified items,
  4837. sorted by date and changeset id. If a negative number is supplied,
  4838. it will return an empty list. If a number higher than the number
  4839. of revisions is supplied, it will return all the available revisions
  4840. regarding that item.
  4841. item_path Item's path. Use a whitespace to separate paths. Use
  4842. double quotes (" ") to specify paths containing spaces.
  4843. Paths can be server path revisions too.
  4844. (Use 'cm ^help ^objectspec' to learn more about specs.)
  4845. == CMD_HELP_HISTORY ==
  4846. Remarks:
  4847. This command shows a list of revisions for a given item, and label, branch,
  4848. and comment info for each revision.
  4849. Output format parameters (--^format option):
  4850. This command accepts a format string to show the output.
  4851. The output parameters of this command are the following:
  4852. {0} | {^date} Date.
  4853. {1} | {^changesetid} Changeset number.
  4854. {2} | {^branch} Branch.
  4855. {4} | {^comment} Comment.
  4856. {5} | {^owner} Owner.
  4857. {6} | {^id} Revision id.
  4858. {7} | {^repository} Repository.
  4859. {8} | {^server} Server.
  4860. {9} | {^repspec} Repository spec.
  4861. {10} | {^datastatus} Availability of the revision data.
  4862. {11} | {^path} Path or spec passed as <item_path>.
  4863. {12} | {^itemid} Item Id.
  4864. {13} | {^size} Size.
  4865. {14} | {^hash} Hash code.
  4866. {^tab} Inserts a tab space.
  4867. {^newline} Inserts a new line.
  4868. Examples:
  4869. cm ^history file1.txt "file 2.txt"
  4870. cm ^hist c:\workspace --^long
  4871. (Displays all information.)
  4872. cm ^history link --^symlink
  4873. (Applies the history operation to the symlink file and not to the target.)
  4874. cm ^history ^serverpath:/src/foo/bar.c#^br:/main/task001@myserver
  4875. (Retrieves the revision history from a server path in a given branch.)
  4876. cm ^history bar.c, foo.c --long --limit=2
  4877. (Retrieves the 2 last revisions for the bar.c and foo.c items.)
  4878. == CMD_DESCRIPTION_REVISION_TREE ==
  4879. > **This command is deprecated.**
  4880. Shows the revision tree for an item.
  4881. == CMD_USAGE_REVISION_TREE ==
  4882. Usage:
  4883. cm ^tree <path> [--^symlink]
  4884. Options:
  4885. --^symlink Applies the operation to the link file and not to the target.
  4886. path Item path.
  4887. == CMD_HELP_REVISION_TREE ==
  4888. Examples:
  4889. cm ^tree fichero1.txt
  4890. cm ^tree c:\workspace
  4891. cm ^tree link --^symlink
  4892. (Applies the operation to the symlink file and not to the target.)
  4893. == CMD_DESCRIPTION_REMOVE ==
  4894. Allows the user to delete files and directories.
  4895. == CMD_USAGE_REMOVE ==
  4896. Usage:
  4897. cm ^remove | ^rm <command> [options]
  4898. Commands:
  4899. - ^controlled (optional)
  4900. - ^private
  4901. To get more information about each command run:
  4902. cm ^remove <command> --^usage
  4903. cm ^remove <command> --^help
  4904. == CMD_HELP_REMOVE ==
  4905. Examples:
  4906. cm ^remove \path\controlled_file.txt
  4907. cm ^remove ^private \path\private_file.txt
  4908. == CMD_DESCRIPTION_REMOVE_CONTROLLED ==
  4909. Deletes a file or directory from version control.
  4910. == CMD_USAGE_REMOVE_CONTROLLED ==
  4911. Usage:
  4912. cm ^remove | ^rm <item_path>[ ...] [--^format=<str_format>]
  4913. [--^errorformat=<str_format>] [--^nodisk]
  4914. Options:
  4915. --^format Retrieves the output progress message in a specific
  4916. format. See the Examples for more information.
  4917. --^errorformat Retrieves the error message (if any) in a specific
  4918. format. See the Examples for more information.
  4919. --^nodisk Removes from version control, but keeps the item on
  4920. disk.
  4921. item_path Items path to remove. Use double quotes (" ") to specify
  4922. paths containing spaces. Use a whitespace to separate
  4923. paths.
  4924. == CMD_HELP_REMOVE_CONTROLLED ==
  4925. Remarks:
  4926. Items are deleted from disk. Removed items are removed from the parent
  4927. directory in the source code control.
  4928. Requirements:
  4929. - The item must be under source code control.
  4930. Reading input from stdin:
  4931. The '^remove' command can read paths from stdin. To do this, pass a single
  4932. dash "-".
  4933. Example: cm ^remove -
  4934. Paths will be read until an empty line is entered.
  4935. This allows you to use pipe to specify which files to remove.
  4936. Example:
  4937. dir /S /B *.c | cm ^remove -
  4938. (In Windows, removes all .c files in the workspace.)
  4939. Examples:
  4940. cm ^remove src
  4941. (Removes 'src'. If src is a directory, this is the same as
  4942. 'cm ^remove -^R src'.)
  4943. cm ^remove c:\workspace\file.txt --^format="{0} - REMOVED" \
  4944. --^errorformat="{0} - ERROR REMOVING"
  4945. (Removes 'file.txt' from version control and from disk, writing
  4946. "c:\workspace\file.txt - ^REMOVED" if the operation succeeded, or
  4947. "c:\workspace\file.txt - ^ERROR ^REMOVING" otherwise.)
  4948. cm ^remove c:\workspace\file.txt --^nodisk
  4949. (Removes 'file.txt' from version control, but keeps it on disk.)
  4950. == CMD_DESCRIPTION_REMOVE_PRIVATE ==
  4951. Deletes a private file or directory.
  4952. Warning: files deleted using the command are permanently erased, and are not
  4953. recoverable. It is recommended that you use the '--^dry-run' option to check
  4954. which files will be affected by the command.
  4955. == CMD_USAGE_REMOVE_PRIVATE ==
  4956. Usage:
  4957. cm ^remove | ^rm ^private <path>[ ...] [-^R | -^r | --^recursive] [--^ignored]
  4958. [--^verbose] [--^dry-run]
  4959. Options:
  4960. -^R | -^r | --^recursive Recursively deletes private files from within controlled
  4961. directories.
  4962. --^ignored Deletes also ignored and cloaked files and directories.
  4963. --^verbose Prints all affected paths.
  4964. --^dry-run Runs the command without making any changes on disk.
  4965. path Path of the files or directories to remove. Use double
  4966. quotes (" ") to specify paths containing spaces. Use a
  4967. whitespace to separate paths.
  4968. == CMD_HELP_REMOVE_PRIVATE ==
  4969. Remarks:
  4970. If the path is a private file or directory, it will be deleted from disk.
  4971. If the path is a controlled file, the command fails.
  4972. If the path is a controlled directory, the command fails unless you
  4973. specify the '-^r' option, in which case it will delete all private files and
  4974. directories below the specified directory.
  4975. Examples:
  4976. cm ^remove ^private private_directory
  4977. (Deletes 'private_directory'.)
  4978. cm ^remove ^private c:\workspace\controlled_directory
  4979. (Fails, because 'controlled_directory' is not private.)
  4980. cm ^remove ^private -^r c:\workspace\controlled_directory
  4981. (Deletes all private files and directories below 'controlled_directory'.)
  4982. cm ^rm ^private --^dry-run --^verbose c:\workspace\controlled_directory -^r
  4983. (Shows all of the paths affected by the deletion of private files below
  4984. 'controlled_directory' without actually deleting anything.)
  4985. cm ^rm ^private --^verbose c:\workspace\controlled_directory -^r
  4986. (Shows all of the paths affected by the deletion of private files below
  4987. 'controlled_directory', performing the delete.)
  4988. == CMD_DESCRIPTION_TRIGGER_DELETE ==
  4989. Deletes a trigger.
  4990. == CMD_USAGE_TRIGGER_DELETE ==
  4991. Usage:
  4992. cm ^trigger | ^tr ^delete | ^rm <subtype-type> <position_number>
  4993. [--^server=<repserverspec>]
  4994. Options:
  4995. --^server Deletes the trigger on the specified server.
  4996. If no server is specified, executes the command on the
  4997. one configured on the client.
  4998. subtype-type Trigger execution and trigger operation.
  4999. (Use 'cm ^showtriggertypes' to see a list of trigger
  5000. types.)
  5001. position_number Position assigned to the trigger when it was created.
  5002. == CMD_HELP_TRIGGER_DELETE ==
  5003. Examples:
  5004. cm ^trigger ^delete ^after-setselector 4
  5005. cm ^tr ^rm ^after-setselector 4
  5006. == CMD_DESCRIPTION_ATTRIBUTE_SET ==
  5007. Sets an attribute on a given object.
  5008. == CMD_USAGE_ATTRIBUTE_SET ==
  5009. Usage:
  5010. cm ^attribute | ^att ^set <att_spec> <object_spec> <att_value>
  5011. att_spec Attribute specification. (Use 'cm ^help ^objectspec' to
  5012. learn more about attribute specs.)
  5013. object_spec Specification of the object to set the attribute on.
  5014. Attributes can be set on: branches, changesets,
  5015. shelvesets, labels, items, and revisions.
  5016. (Use 'cm ^help ^objectspec' to learn more about specs.)
  5017. att_value The attribute value to set to the object.
  5018. == CMD_HELP_ATTRIBUTE_SET ==
  5019. Remarks:
  5020. An attribute can be set on an object to save additional information for
  5021. this object.
  5022. Attributes can be set on the following objects: branches, changesets,
  5023. shelvesets, labels, items, and revisions.
  5024. Examples:
  5025. cm ^attribute ^set ^att:status ^br:/main/SCM105 open
  5026. (Sets attribute 'status' to branch 'SCM105' with value 'open'.)
  5027. cm ^att ^set ^att:integrated@reptest@server2:8084 ^lb:LB008@reptest@server2:8084 yes
  5028. (Sets attribute 'integrated' to label 'LB008' in repository 'reptest' with
  5029. value 'yes'.)
  5030. == CMD_DESCRIPTION_SETOWNER ==
  5031. Sets the owner of an object.
  5032. == CMD_USAGE_SETOWNER ==
  5033. Usage:
  5034. cm ^setowner | ^sto --^user=<usr_name> | --^group=<group> <object_spec>
  5035. Options:
  5036. --^user User name. New owner of the object.
  5037. --^group Group name. New owner of the object.
  5038. object_spec Specification of the object to set the new owner on.
  5039. The owner can be set on the following objects:
  5040. repository server, repository, branch, changeset,
  5041. label, item, revision and attribute.
  5042. (Use 'cm ^help ^objectspec' to learn more about specs.)
  5043. == CMD_HELP_SETOWNER ==
  5044. Remarks:
  5045. The owner of an object can be a user or a group.
  5046. The owner can be set on the following objects: repository server,
  5047. repository, branch, changeset, label, item, revision, and attribute.
  5048. Examples:
  5049. cm ^setowner --^user=john ^repserver:localhost:8084
  5050. (Sets 'john' as repository server owner.)
  5051. cm ^sto --^group=development ^rep:mainRep@PlasticServer:8084
  5052. (Sets 'development' group as owner of 'mainRep' repository.)
  5053. == CMD_DESCRIPTION_SETSELECTOR ==
  5054. > **This command is deprecated.**
  5055. Sets the selector to a workspace.
  5056. == CMD_USAGE_SETSELECTOR ==
  5057. Selectors are discontinued and its use is not recommended.
  5058. Usage:
  5059. cm ^setselector | ^sts [--^file=<selector_file>] [--^ignorechanges]
  5060. [--^forcedetailedprogress] [<wk_path> | <wk_spec>]
  5061. [--^noinput]
  5062. Options:
  5063. --^file File to load a selector from.
  5064. --^ignorechanges Ignores the pending changes warning message that is
  5065. shown if there are pending changes detected when
  5066. updating the workspace.
  5067. --^forcedetailedprogress Forces detailed progress even when standard output
  5068. is redirected.
  5069. --^noinput Skips the interactive questions to continue the
  5070. operation with pending changes or to shelve them.
  5071. wk_path Path of the workspace to set the selector.
  5072. wk_spec Workspace specification. (Use 'cm ^help ^objectspec'
  5073. to learn more about workspace specs.)
  5074. == CMD_HELP_SETSELECTOR ==
  5075. Remarks:
  5076. This command sets the selector of a workspace.
  5077. A workspace needs information to load revisions from the repository.
  5078. To get this information, Unity VCS uses a selector.
  5079. Using a selector, it is possible to load revisions from a given branch,
  5080. label, or changeset.
  5081. If a file to load the selector is not specified, the default Operating
  5082. System editor will be executed.
  5083. Sample selector:
  5084. - ^repository "^default" // working repository
  5085. - ^path "/" // rules will be applied to the root directory
  5086. - ^branch "/^main" // obtain latest revisions from ^br:/^main
  5087. - ^checkout "/^main" // place checkouts on branch ^br:/^main
  5088. Examples:
  5089. cm ^sts
  5090. (Opens the current selector file to be applied.)
  5091. cm ^sts ^wk:workspace_projA@reptest
  5092. (Opens the specified selector file to be applied.)
  5093. cm ^setselector --^file=c:\selectors\sel.xml
  5094. (Sets the specified selector file in the current workspace.)
  5095. cm ^setselector --^file=c:\selectors\sel.xml ^wk:MyWorkspace
  5096. (Sets the specified selector file in the selected workspace.)
  5097. == CMD_DESCRIPTION_SHELVE ==
  5098. > **This command is deprecated.** Use cm ^shelveset instead.
  5099. Shelves the contents of checked-out items.
  5100. == CMD_USAGE_SHELVE ==
  5101. Usage:
  5102. cm ^shelve [<item_path>+] [--^all] [--^dependencies]
  5103. [-^c=str_comment | -^commentsfile=<comments_file>]
  5104. [--^encoding=name] [--^comparisonmethod=comp_method]
  5105. [--^summaryformat]
  5106. (Shelves the contents.)
  5107. cm ^shelve --^apply=<sh_spec> [--^mount]
  5108. (Applies a stored shelveset.)
  5109. cm ^shelve --^delete=<sh_spec>
  5110. (Removes a stored shelveset.)
  5111. Options:
  5112. item_path Items to be shelved, separated by spaces. Quotes (") can
  5113. be used to specify paths containing spaces.
  5114. --^all The items changed, moved and deleted locally, on the
  5115. given paths, will also be included.
  5116. --^dependencies Includes local change dependencies in the items to
  5117. shelve.
  5118. -^c Applies the specified comment to the created shelveset.
  5119. -^commentsfile Applies the comment in the specified file to the created
  5120. shelveset.
  5121. --^encoding Specifies the output encoding, i.e.: utf-8.
  5122. See the MSDN documentation at
  5123. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  5124. to get the table of supported encodings and its format,
  5125. (at the end of the page, in the "Name" column).
  5126. --^comparisonmethod Sets the comparison method. See remarks for more info.
  5127. --^summaryformat Just prints the shelveset spec created for the main repo,
  5128. skipping shelvesets of xlinked repos and any other output
  5129. messages. For automation purposes.
  5130. --^mount The mount point for the given repository.
  5131. --^delete Removes the specified shelveset.
  5132. Shelveset specification: check 'cm ^help ^objectspec'.
  5133. --^apply Restores the shelved contents of the specified shelveset.
  5134. Shelve specification: check 'cm ^help ^objectspec'.
  5135. == CMD_HELP_SHELVE ==
  5136. Remarks:
  5137. If neither <item_path> nor any option is specified, the shelve will involve
  5138. all the pending changes in the workspace.
  5139. The shelve operation is always applied recursively from the given path.
  5140. Requirements to shelve an item:
  5141. - The item must be under source code control.
  5142. - The item must be checked out or changed (--^all option must be used).
  5143. Comparison methods:
  5144. ^ignoreeol Ignores end of line differences.
  5145. ^ignorewhitespaces Ignores whitespace differences.
  5146. ^ignoreeolandwhitespaces Ignores end of line and whitespace differences.
  5147. ^recognizeall Detects end of line and whitespace differences.
  5148. Set the PLASTICEDITOR environment variable to specify an editor for
  5149. entering comments. If the PLASTICEDITOR environment variable is set, and
  5150. the comment is empty, the editor will be automatically launched to allow
  5151. you to specify the comment.
  5152. Examples:
  5153. cm ^shelve -^c="my comment"
  5154. (Shelves all the pending changes in the current workspace including a
  5155. comment.)
  5156. cm ^shelve file1.txt "file 2.txt" -^commentsfile=commentshelve.txt
  5157. (Shelves the selected pending changes and applies the comment in the
  5158. commentshelve.txt file.)
  5159. cm ^shelve --^apply=^sh:3
  5160. (Applies a stored shelveset.)
  5161. cm ^shelve --^delete=^sh:3
  5162. (Removes a stored shelveset.)
  5163. cm ^status --^short --^changelist=pending_to_review | cm ^shelve -
  5164. (Shelves client changelist.
  5165. The command above lists the paths in the changelist named
  5166. 'pending_to_review' and the path list is redirected to the input of the
  5167. shelve command.)
  5168. == CMD_DESCRIPTION_SHELVESET ==
  5169. Allows the user to manage shelvesets.
  5170. == CMD_USAGE_SHELVESET ==
  5171. Usage:
  5172. cm ^shelveset <command> [options]
  5173. Commands:
  5174. - ^create | ^mk
  5175. - ^delete | ^rm
  5176. - ^apply
  5177. To get more information about each command run:
  5178. cm ^shelveset <command> --^usage
  5179. cm ^shelveset <command> --^help
  5180. == CMD_HELP_SHELVESET ==
  5181. Examples:
  5182. cm ^shelveset ^create -^c="my comment"
  5183. cm ^shelveset ^delete ^sh:3
  5184. cm ^shelve ^apply ^sh:3
  5185. == CMD_DESCRIPTION_SHELVESET_CREATE ==
  5186. Shelves pending changes.
  5187. == CMD_USAGE_SHELVESET_CREATE ==
  5188. Usage:
  5189. cm ^shelveset ^create | ^mk [<item_path>[ ...]] [--^all] [--^dependencies]
  5190. [-^c=<str_comment> | -^commentsfile=<comments_file>]
  5191. [--^summaryformat]
  5192. Options:
  5193. item_path Items to shelve. Use a whitespace to separate user names.
  5194. Use double quotes (" ") to specify paths containing
  5195. spaces.
  5196. --^all The items changed, moved, and deleted locally, on the
  5197. given paths, will also be included.
  5198. --^dependencies Includes local change dependencies into the items to
  5199. shelve.
  5200. --^summaryformat Just prints the shelveset spec created for the main repo,
  5201. skipping shelvesets of xlinked repos and any other output
  5202. messages. For automation purposes.
  5203. -^c Applies the specified comment to the created shelve.
  5204. -^commentsfile Applies the comment in the specified file to the created
  5205. shelve.
  5206. == CMD_HELP_SHELVESET_CREATE ==
  5207. The '^shelveset ^create' command stores the contents of checked out items inside the
  5208. repository. This way the contents are protected without the need to
  5209. checkin the files.
  5210. Remarks:
  5211. If neither <item_path> nor any option is specified, the shelveset will
  5212. include all the pending changes in the workspace.
  5213. The '^shelveset ^create' operation is always applied recursively from the
  5214. given path.
  5215. Requirements to shelve an item:
  5216. - The item must be under source code control.
  5217. - The item must be checked out or changed ('--^all' option must be used).
  5218. Set the PLASTICEDITOR environment variable to specify an editor for
  5219. entering comments. If the PLASTICEDITOR environment variable is set, and
  5220. the comment is empty, the editor will be automatically launched to allow
  5221. you to specify the comment.
  5222. Examples:
  5223. cm ^shelveset ^create -^c="my comment"
  5224. (Shelves all the pending changes in the current workspace including a
  5225. comment.)
  5226. cm ^shelveset file1.txt "file 2.txt" -^commentsfile=commentshelve.txt
  5227. (Shelves the selected pending changes and applies the comment in the
  5228. 'commentshelve.txt' file. Note, '^create' is the default subcommand.)
  5229. cm ^status --^short --^changelist=pending_to_review | cm ^shelveset -
  5230. (Shelves client changelist.
  5231. The command above lists the paths in the changelist named
  5232. 'pending_to_review' and the path list is redirected to the input of the
  5233. '^shelveset' command.)
  5234. == CMD_DESCRIPTION_SHELVESET_DELETE ==
  5235. Deletes a shelveset.
  5236. == CMD_USAGE_SHELVESET_DELETE ==
  5237. Usage:
  5238. cm ^shelveset ^delete | ^rm <sh_spec>
  5239. sh_spec Shelveset specification. (Use 'cm ^help ^objectspec' to
  5240. learn more about shelveset specs.)
  5241. == CMD_HELP_SHELVESET_DELETE ==
  5242. The '^shelveset ^delete' command deletes a shelveset.
  5243. Examples:
  5244. cm ^shelveset ^delete ^sh:3
  5245. (Removes a stored shelveset.)
  5246. == CMD_DESCRIPTION_SHELVESET_APPLY ==
  5247. Applies a stored shelveset.
  5248. == CMD_USAGE_SHELVESET_APPLY ==
  5249. Usage:
  5250. cm ^shelveset ^apply <sh_spec> [<change_path>[ ...]] [--^preview]
  5251. [--^mount] [--^encoding=<name>]
  5252. [--^comparisonmethod=(^ignoreeol | ^ignorewhitespaces| \
  5253. ^ignoreeolandwhitespaces | ^recognizeall)]
  5254. Options:
  5255. --^preview Prints the changes to apply on the workspace without
  5256. applying them
  5257. --^mount The mount point for the given repository.
  5258. --^encoding Specifies the output encoding, i.e.: utf-8.
  5259. See the MSDN documentation at
  5260. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  5261. to get the table of supported encodings and its format,
  5262. (at the end of the page, in the "Name" column).
  5263. --^comparisonmethod Sets the comparison method. See Remarks for more info.
  5264. sh_spec Shelveset specification. (Use 'cm ^help ^objectspec' to
  5265. learn more about shelveset specs.)
  5266. change_path The change path(s) of the shelve to apply. It's a
  5267. server path, the one printed by the --preview option.
  5268. When no path is set, all changes will be applied.
  5269. == CMD_HELP_SHELVESET_APPLY ==
  5270. The '^shelveset ^apply' command restores the contents of a stored shelveset.
  5271. Remarks:
  5272. Comparison methods:
  5273. ^ignoreeol Ignores end of line differences.
  5274. ^ignorewhitespaces Ignores whitespace differences.
  5275. ^ignoreeolandwhitespaces Ignores end of line and whitespace differences.
  5276. ^recognizeall Detects end of line and whitespace differences.
  5277. Examples:
  5278. cm ^shelveset ^apply ^sh:3
  5279. (Applies a stored shelve.)
  5280. cm ^shelveset ^apply ^sh:3 /src/foo.c
  5281. (Applies only the /src/foo.c change stored on the shelve.)
  5282. == CMD_DESCRIPTION_SHOW_FIND_OBJECTS ==
  5283. Lists objects and attributes.
  5284. == CMD_USAGE_SHOW_FIND_OBJECTS ==
  5285. Usage:
  5286. cm ^showfindobjects <object>
  5287. Options:
  5288. ^object Check remarks for available objects and attributes.
  5289. == CMD_HELP_SHOW_FIND_OBJECTS ==
  5290. Remarks:
  5291. Available objects and attributes:
  5292. - ^attribute.
  5293. - ^attributetype.
  5294. - ^branch.
  5295. - ^changeset.
  5296. - ^label.
  5297. - ^merge.
  5298. - ^replicationlog.
  5299. - ^review.
  5300. - ^revision.
  5301. - ^shelve.
  5302. ^attribute:
  5303. You can find attributes by filtering using the following fields:
  5304. ^type string.
  5305. ^value string.
  5306. ^date date. Check "date constants" for more info in this guide.
  5307. ^owner user. Admits special user '^me'.
  5308. ^GUID Global Unique Identifier.
  5309. Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
  5310. ^comment string.
  5311. ^srcobj object spec: item path, branch, changeset, revision, or label.
  5312. Use 'cm ^help ^objectspec' to learn how to specify these objects.
  5313. ^ID integer.
  5314. Examples:
  5315. cm ^find ^attribute "^where ^type = 'status'"
  5316. (Finds all attributes of type 'status'.)
  5317. cm ^find ^attribute "^where ^date > '^this ^week'"
  5318. (Finds all attributes applied during the current week.)
  5319. cm ^find ^attribute "^where ^value = 'resolved' ^and ^owner = '^me'"
  5320. (Finds all attributes with value 'resolved' applied by me.)
  5321. cm ^find ^attribute "^where ^srcobj = '^item:readme.txt'"
  5322. (Finds the attributes applied to the item 'readme.txt'.)
  5323. cm ^find ^attribute "^where ^srcobj = '^br:/main/scm23343'"
  5324. (Finds the attributes applied to the branch scm23343.)
  5325. cm ^find ^attribute "^where ^srcobj = '^rev:readme.txt#^br:/main/task002'"
  5326. (Finds the attributes applied to the specified revision.)
  5327. cm ^find ^attribute "^where ^srcobj = '^rev:^revid:1126'"
  5328. (Finds the attributes applied to the specified revision id.)
  5329. ^attributetype:
  5330. You can find attribute types by filtering using the following fields:
  5331. ^name string.
  5332. ^value string.
  5333. ^date date. Check "date constants" for more info in this guide.
  5334. ^owner user. Admits special user '^me'.
  5335. ^GUID Global Unique Identifier.
  5336. Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
  5337. ^comment string.
  5338. ^source object spec: item path, branch, changeset or label.
  5339. Use 'cm ^help ^objectspec' to learn how to specify these objects.
  5340. ^ID integer.
  5341. Replication field Check "replication related fields" below.
  5342. Replication related fields:
  5343. - ^ReplLogId
  5344. - ^ReplSrcDate
  5345. - ^ReplSrcId
  5346. - ^ReplSrcRepository
  5347. - ^ReplSrcServer
  5348. Examples:
  5349. cm ^find ^attributetype "^where ^name ^like 'st%'"
  5350. (Finds all attribute where name starts with 'st'.)
  5351. cm ^find ^attribute "^where ^date > '^today'"
  5352. (Finds all attributes applied today.)
  5353. cm ^find ^attributetype "^where ^comment != ''" --^xml
  5354. (Finds all attribute types that have a comment and prints the
  5355. output in XML format to the standard output.)
  5356. cm ^find ^attributetype "^where ^source = '^item:readme.txt'"
  5357. (Finds all attribute types in item 'readme.txt'.)
  5358. cm ^find ^attributetype "^where ^source = '^cs:30'"
  5359. (Finds all attribute types in changeset '30'.)
  5360. cm ^find ^attributetype "^where ^source = '^lb:v0.14.1'"
  5361. (Finds all attribute types in label 'v0.14.1'.)
  5362. ^branch:
  5363. You can find branches by filtering using the following fields:
  5364. ^name string.
  5365. ^date date. Check "date constants" for more info in this guide.
  5366. ^changesets date (of the changesets in the branch). Check "date constants"
  5367. for more info in this guide.
  5368. ^attribute string.
  5369. ^attrvalue string.
  5370. ^owner user. Admits special user '^me'.
  5371. ^parent branch spec.
  5372. Use 'cm ^help ^objectspec' to learn how to specify this object.
  5373. ^comment string.
  5374. ^GUID Global Unique Identifier.
  5375. Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
  5376. ^ID integer.
  5377. ^order ^by field to use for sorting. Check "sorting fields" for more info.
  5378. Replication fields Check "replication related fields" below.
  5379. Sorting fields:
  5380. - ^date
  5381. - ^branchname
  5382. Replication related fields:
  5383. - ^ReplLogId
  5384. - ^ReplSrcDate
  5385. - ^ReplSrcId
  5386. - ^ReplSrcRepository
  5387. - ^ReplSrcServer
  5388. Examples:
  5389. cm ^find ^branch "^where ^name ^like 'scm23%'"
  5390. (Finds branches which name starts with 'scm23'.)
  5391. cm ^find ^branch "^where ^date > '^one ^week ^ago'"
  5392. (Finds branches created during the last week.)
  5393. cm ^find ^branch "^where ^changesets >= '^today'"
  5394. (Finds branches with changesets created today.)
  5395. cm ^find ^branch "^where ^attribute = 'status' ^and ^attrvalue = 'failed'"
  5396. (Finds branches that have the attribute 'status' and which
  5397. value is 'failed'.)
  5398. cm ^find ^branch "^where ^owner != '^me' ^and ^parent != '^br:/main'"
  5399. (Finds branches created by other than me and which parent
  5400. branch is not '/main'.)
  5401. cm ^find ^branch "^where ^id = 2029607"
  5402. (Finds the branch which id is 2029607.)
  5403. ^changeset:
  5404. You can find changesets by filtering using the following fields:
  5405. ^branch branch spec. Use 'cm ^help ^objectspec' to learn how to
  5406. specify this object.
  5407. ^changesetid integer.
  5408. ^attribute string.
  5409. ^attrvalue string.
  5410. ^date date. Check "date constants" for more info in this guide.
  5411. ^owner user. Admits special user '^me'.
  5412. ^GUID Global Unique Identifier.
  5413. Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
  5414. ^comment string.
  5415. ^onlywithrevisions boolean. To filter whether a cset has revisions or not.
  5416. ^returnparent boolean. A way to return the parent of a cset. Good for scripting.
  5417. ^parent changeset id (integer).
  5418. ^ID integer.
  5419. ^order ^by field to use for sorting. Check "sorting fields" for more info.
  5420. Replication fields Check "replication related fields" below.
  5421. Sorting fields:
  5422. - ^date
  5423. - ^changesetid
  5424. Replication related fields:
  5425. - ^ReplLogId
  5426. - ^ReplSrcDate
  5427. - ^ReplSrcId
  5428. - ^ReplSrcRepository
  5429. - ^ReplSrcServer
  5430. Examples:
  5431. cm ^find ^changeset "^where ^branch = '/main/scm23119'"
  5432. (Finds all changesets in branch 'scm23119'.)
  5433. cm ^find ^changeset "^where ^attribute = 'status'"
  5434. (Finds the changesets with the attribute 'status'.)
  5435. cm ^find ^changeset "^where ^date >= '6/8/2018' ^and ^owner != '^me'"
  5436. (Finds all changesets with creation date equal or
  5437. greater than 6/8/2018 and created by others than me.)
  5438. cm ^find ^changeset "^where ^guid = '1b30674f-14cc-4fd7-962b-676c8a6f5cb6'"
  5439. (Finds the changeset with the specified guid.)
  5440. cm ^find ^changeset "^where ^comment = ''"
  5441. (Finds the changesets with no comments.)
  5442. cm ^find ^changeset "^where ^onlywithrevisions = 'false'"
  5443. (Finds changesets with no revisions.)
  5444. cm ^find ^changeset "^where ^changesetid = 29 ^and ^returnparent = 'true'"
  5445. (Finds the parent of changeset 29.)
  5446. cm ^find ^changeset "^where ^parent = 548"
  5447. (Finds all changesets which parent is cset 548.)
  5448. ^label:
  5449. You can find labels by filtering using the following fields:
  5450. ^name string.
  5451. ^attribute string.
  5452. ^attrvalue string.
  5453. ^date date. Check "date constants" for more info in this guide.
  5454. ^owner user. Admits special user '^me'.
  5455. ^GUID Global Unique Identifier.
  5456. Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
  5457. ^branch branch spec. Use 'cm ^help ^objectspec' to learn how to
  5458. specify this object.
  5459. ^branchid integer.
  5460. ^changeset changeset id (integer).
  5461. ^comment string.
  5462. ^ID integer.
  5463. ^order ^by field to use for sorting. Check "sorting fields" for more info.
  5464. Replication fields Check "replication related fields" below.
  5465. Sorting fields:
  5466. - ^date
  5467. - ^labelname
  5468. Replication related fields:
  5469. - ^ReplLogId
  5470. - ^ReplSrcDate
  5471. - ^ReplSrcId
  5472. - ^ReplSrcRepository
  5473. - ^ReplSrcServer
  5474. Examples:
  5475. cm ^find ^label "^where ^name ^like '7.0.16.%'"
  5476. (Finds the labels with a name that starts with '7.0.16.'.)
  5477. cm ^find ^label "^where ^date >= '^this ^month' ^and \
  5478. ^attribute = 'publish-status' ^and ^attrvalue != 'PUBLISHED'"
  5479. (Finds the labels created this month with an attribute 'publish-status'
  5480. set to a value other than 'PUBLISHED'.)
  5481. cm ^find ^label "^where ^branch = '/main'"
  5482. (Finds all labels applied to the main branch.)
  5483. cm ^find ^label "^where ^changeset = 111733"
  5484. (Finds the labels applied to changeset 111733.)
  5485. ^merge:
  5486. You can find merges by filtering using the following fields:
  5487. ^srcbranch branch spec.
  5488. Use 'cm ^help ^objectspec' to learn how to specify this object.
  5489. ^srcchangeset changeset id (integer).
  5490. ^dstbranch branch spec. Use 'cm ^help ^objectspec' to learn how to
  5491. specify this object.
  5492. ^dstchangeset changeset id (integer).
  5493. ^date date. Check "date constants" for more info in this guide.
  5494. ^owner user. Admits special user '^me'.
  5495. ^GUID Global Unique Identifier.
  5496. Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
  5497. ^type string. Check possible values in "Type values" below.
  5498. ^ID integer.
  5499. ^Type values:
  5500. - ^merge
  5501. - ^cherrypick
  5502. - ^cherrypicksubstractive
  5503. - ^interval
  5504. - ^intervalcherrypick
  5505. - ^intervalcherrypicksubstractive
  5506. Examples:
  5507. cm ^find ^merge "^where ^srcbranch = '^br:/main'"
  5508. (Finds merges from the main branch.)
  5509. cm ^find ^merge "^where ^dstchangeset = 108261" \
  5510. --^format="{^srcbranch} {^srcchangeset} {^dstbranch} {^dstchangeset} {^owner}"
  5511. (Finds the merges to changeset 108261 and prints the
  5512. formatted output showing the source (branch and cset id),
  5513. the destination (branch and cset id), and the merge owner.)
  5514. cm ^find ^merge "^where ^type = '^cherrypick' ^and ^owner = '^me'"
  5515. (Finds all my cherry picks.)
  5516. ^replicationlog:
  5517. You can find replication log by filtering using the following fields:
  5518. ^branch branch spec. Use 'cm ^help ^objectspec' to learn how to
  5519. specify this object.
  5520. ^repositoryname string.
  5521. ^owner user. Admits special user '^me'.
  5522. ^date date. Check "date constants" for more info in this guide.
  5523. ^server string.
  5524. ^package boolean.
  5525. ^ID integer.
  5526. Examples:
  5527. cm ^find ^replicationlog "^where ^branch = '/main/gm22358'"
  5528. (Finds the replication logs of branch 'gm22358'.)
  5529. cm ^find ^replicationlog "^where ^package = 'T' ^and ^server ^like '%cloud%'"
  5530. (Finds the replication logs created from package which
  5531. server name contains 'cloud'.)
  5532. ^review:
  5533. You can find code reviews by filtering using the following fields:
  5534. ^status string.
  5535. ^assignee string.
  5536. ^title string.
  5537. ^target object spec: branch or changeset.
  5538. Use 'cm ^help ^objectspec' to learn how to specify this object.
  5539. ^targetid integer.
  5540. ^targettype string. Check "target types" for more info.
  5541. ^date date. Check "date constants" for more info in this guide.
  5542. ^owner user. Admits special user '^me'.
  5543. ^GUID Global Unique Identifier.
  5544. Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
  5545. ^ID integer.
  5546. ^order ^by field to use for sorting. Check "sorting fields" for more info.
  5547. Target types:
  5548. - ^branch
  5549. - ^changeset
  5550. Sorting fields:
  5551. - ^date
  5552. - ^modifieddate
  5553. - ^status
  5554. Examples:
  5555. cm ^find ^review "^where ^status = 'pending' ^and ^assignee = '^me'"
  5556. (Finds all my pending reviews.)
  5557. cm ^find ^review "^where ^target = '^br:/main/scm17932'"
  5558. (Finds the reviews related to branch 'scm17932'.)
  5559. cm ^find ^review "^where ^targettype = '^changeset'"
  5560. (Finds the reviews which target type is changeset.)
  5561. ^revision:
  5562. You can find revisions by filtering using the following fields:
  5563. ^branch branch spec. Use 'cm ^help ^objectspec' to learn how to
  5564. specify this object.
  5565. ^changeset changeset id (integer).
  5566. ^item string or integer.
  5567. ^itemid integer.
  5568. ^attribute string.
  5569. ^attrvalue string.
  5570. ^archived boolean.
  5571. ^comment string.
  5572. ^date date. Check "date constants" for more info in this guide.
  5573. ^GUID Global Unique Identifier.
  5574. Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
  5575. ^owner user. Admits special user '^me'.
  5576. ^parent revision id (integer).
  5577. ^returnparent boolean.
  5578. ^shelve shelve id (integer).
  5579. ^size integer (in bytes).
  5580. ^type string. Check "type values" for more info.
  5581. ^workspacecheckoutid integer.
  5582. ^ID integer.
  5583. Replication field Check "replication related fields" below.
  5584. ^type values:
  5585. - ^dir
  5586. - ^bin
  5587. - ^txt
  5588. Replication related fields:
  5589. - ^ReplLogId
  5590. - ^ReplSrcDate
  5591. - ^ReplSrcId
  5592. - ^ReplSrcRepository
  5593. - ^ReplSrcServer
  5594. Examples:
  5595. cm ^find ^revision "^where ^changeset >= 111756"
  5596. (Finds the revisions created in changeset 111756
  5597. and later.)
  5598. cm ^find ^revision "^where ^item = 'readme.txt' ^or ^itemid = 2250"
  5599. (Finds the revisions of item 'readme.txt' plus
  5600. item id 2250.)
  5601. cm ^find ^revision "^where ^item = 'readme.txt' ^or ^item = 2250"
  5602. (Gets the same revisions as the previous example.)
  5603. cm ^find ^revision "^where ^attribute = 'status' ^and ^attrvalue != 'open'"
  5604. (Finds the revisions with attribute 'status' which
  5605. value is other than 'open'.)
  5606. cm ^find ^revision "^where ^archived = 'true'"
  5607. (Finds the revisions that are archived in an
  5608. external storage.)
  5609. cm ^find ^revision "^where ^type = '^txt' and \
  5610. ^size > 300000 ^and ^owner = '^me' and ^date >= '2 ^months ^ago'"
  5611. (Finds the text revisions created by me two months
  5612. ago and with size greater than about 3MB.)
  5613. ^shelve:
  5614. You can find shelves by filtering using the following fields:
  5615. ^owner user. Admits special user '^me'.
  5616. ^date date. Check "date constants" for more info in this guide.
  5617. ^attribute string.
  5618. ^attrvalue string.
  5619. ^comment string.
  5620. ^GUID Global Unique Identifier.
  5621. Hexadecimal id in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
  5622. ^parent integer.
  5623. ^shelveid integer.
  5624. ^ID integer.
  5625. Replication field Check "replication related fields" below.
  5626. Replication related fields:
  5627. - ^ReplLogId
  5628. - ^ReplSrcDate
  5629. - ^ReplSrcId
  5630. - ^ReplSrcRepository
  5631. - ^ReplSrcServer
  5632. Examples:
  5633. cm ^find ^shelve "^where ^owner != '^me' ^and ^date >= '^1 ^years ^ago'"
  5634. (Finds the shelves created by others than me during the last
  5635. year.)
  5636. cm ^find ^shelve "^where ^shelveid = 2"
  5637. (Finds the shelve with name 2.)
  5638. cm ^find ^shelve "^where ^id >= 3848"
  5639. (Finds the shelves which object id is greater than 3848.)
  5640. Replication related fields:
  5641. Many objects track replication data, meaning Unity VCS tracks where they were
  5642. originally created.
  5643. The fields you can use are:
  5644. ^ReplSrcServer repspec. Stands for "replication source server".
  5645. Server where the object was replicated from.
  5646. ^ReplSrcRepository string. Stands for "replication source repo". It is
  5647. the repository where the object was replicated from.
  5648. ^ReplLogId integer. ID of the replication operation. In Unity VCS,
  5649. each time new objects are created from a replica,
  5650. a new 'replicationlog' is created.
  5651. ^ReplSrcDate date. It is the date when the replica actually took
  5652. place.
  5653. Replicated objects will retain its original creation
  5654. date, o this field is useful if you want to find
  5655. objects that where replicated within a specific
  5656. timeframe.
  5657. ^ReplSrcId integer. It is the ID of the replication source server.
  5658. You can discover this ID searching for
  5659. '^replicationsource' objects with the 'cm ^find' command.
  5660. Examples:
  5661. cm ^find ^branch "^where ^replsrcserver='skull.codicefactory.com:9095'"
  5662. (Finds the branches replicated from server 'skull'.)
  5663. cm ^find ^branch "^where ^replsrcserver = 'skull.codicefactory.com:9095' \
  5664. ^and ^replsrcrepository = 'codice'"
  5665. (Finds the branches replicated from server 'skull'
  5666. and from repository 'codice'.)
  5667. cm ^find ^revision "^where ^repllogid = 2019974"
  5668. (Finds the revisions replicated from replica 2019974.)
  5669. cm ^find ^label "^where ^replsrcdate >= '^one ^month ^ago' \
  5670. ^and ^date >= '15 ^days ^ago'"
  5671. (Finds the labels created 15 days ago and were
  5672. replicated one month ago.)
  5673. cm ^find ^replicationlog "^where ^date > '^one ^week ^ago'"
  5674. (returns the following line:)
  5675. - 8780433 27/09/2018 8:49:38 codice@BACKYARD:8087 F mbarriosc
  5676. (Finds the replication logs created one week ago. Now, you can
  5677. check that the replicated branch was created before it was
  5678. replicated over:)
  5679. cm ^find ^branch "^where ^repllogid = 8780433"
  5680. (returns the following line:)
  5681. - 8780443 26/09/2018 12:20:55 /main/scm23078 maria codice T
  5682. cm ^find ^replicationsource
  5683. (returns the following two lines:)
  5684. - 7860739 codice@AFRODITA:8087 d9c4372a-dc55-4fdc-ad3d-baeb2e975f27
  5685. - 8175854 codice@BACKYARD:8087 66700d3a-036b-4b9a-a26f-adfc336b14f9
  5686. (Now, you can find the changesets replicated from codice@AFRODITA:8087:)
  5687. cm ^find ^changesets "^where ^replsrcid = 7860739"
  5688. Date constants:
  5689. You can use date formats that follow your machine localization settings.
  5690. For example, if your computer displays dates in the format 'MM-dd-yyyy',
  5691. you can use dates such as '12-31-2019' in your queries.
  5692. You can also use the following constants to simplify your queries:
  5693. '^today' today's date.
  5694. '^yesterday' yesterday's date.
  5695. '^this ^week' current week's Monday date.
  5696. '^this ^month' current month's 1st day date.
  5697. '^this ^year' current year's January 1st date.
  5698. '^one ^day ^ago' one day before the current date.
  5699. '^one ^week ^ago' seven days before the current date.
  5700. '^one ^month ^ago' one month before the current date.
  5701. 'n ^days ^ago' 'n' days before the current date.
  5702. 'n ^months ^ago' 'n' months before the current date.
  5703. 'n ^years ^ago' 'n' years before the current date.
  5704. The following '^where' clauses are valid for fields of type '^date':
  5705. - '(...) ^where ^date > '^today' (...)'
  5706. - '(...) ^where ^date < '^yesterday' (...)'
  5707. - '(...) ^where ^date > '^this ^week' (...)'
  5708. - '(...) ^where ^date > '^this ^month' (...)'
  5709. - '(...) ^where ^date < '^one ^day ^ago' ^and ^date > '3 ^days ^ago' (...)'
  5710. - '(...) ^where ^date < '^one ^week ^ago' ^and ^date > '3 ^weeks ^ago' (...)'
  5711. - '(...) ^where ^date < '^one ^month ^ago' ^and ^date > '3 ^months ^ago' (...)'
  5712. - '(...) ^where ^date > '1 ^year ^ago' (...)'
  5713. You can also force a specific date format on the 'cm ^find' command using the
  5714. --^dateformat flag. Check 'cm ^find --^help' for further details.
  5715. == CMD_DESCRIPTION_TRIGGER_SHOWTYPES ==
  5716. Displays available trigger types.
  5717. == CMD_USAGE_TRIGGER_SHOWTYPES ==
  5718. Usage:
  5719. cm ^trigger ^showtypes
  5720. == CMD_HELP_TRIGGER_SHOWTYPES ==
  5721. Displays the list of available trigger types.
  5722. Examples:
  5723. cm ^trigger ^showtypes
  5724. == CMD_DESCRIPTION_SHOWACL ==
  5725. Shows the ACL of an object.
  5726. == CMD_USAGE_SHOWACL ==
  5727. Usage:
  5728. cm ^showacl | ^sa <object_spec> [--^extended] [--^xml[=<output_file>]]
  5729. [--^encoding=<name>]
  5730. Options:
  5731. --^extended Shows ACL hierarchy tree.
  5732. --^xml Prints the output in XML format to the standard output.
  5733. It is possible to specify an output file.
  5734. --^encoding Used with the '--^xml' option, specifies the encoding to
  5735. use in the XML output, i.e.: utf-8.
  5736. See the MSDN documentation at
  5737. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  5738. to get the table of supported encodings and its format,
  5739. (at the end of the page, in the "Name" column).
  5740. object_spec Specification of the object to show the ACL of.
  5741. The valid objects for this command are:
  5742. repserver, repository, branch, changeset, label, item,
  5743. and attribute.
  5744. (Use 'cm ^help ^objectspec' to learn more about specs.)
  5745. == CMD_HELP_SHOWACL ==
  5746. Examples:
  5747. cm ^showacl ^repserver:PlasticServer:8084
  5748. (Shows the ACL of the selected server.)
  5749. cm ^sa ^br:/main --^extended
  5750. (Shows the ACL hierarchy tree of the selected branch specification.)
  5751. == CMD_DESCRIPTION_SHOWCOMMANDS ==
  5752. Shows all the available commands.
  5753. == CMD_USAGE_SHOWCOMMANDS ==
  5754. Usage:
  5755. cm ^showcommands
  5756. == CMD_HELP_SHOWCOMMANDS ==
  5757. Bear in mind that there might be deprecated commands not displayed here
  5758. but which functionallity remains due to retrocompatibility reasons.
  5759. == CMD_DESCRIPTION_SHOWOWNER ==
  5760. Shows the owner of an object.
  5761. == CMD_USAGE_SHOWOWNER ==
  5762. Usage:
  5763. cm ^showowner | ^so <object_spec>
  5764. Options:
  5765. object_spec Specification of the object to show the owner of.
  5766. The object must be one of the following:
  5767. repository server, repository, branch, changeset,
  5768. label, attribute, revision, and item.
  5769. (Use 'cm ^help ^objectspec' to learn more about specs.)
  5770. == CMD_HELP_SHOWOWNER ==
  5771. Remarks:
  5772. This command displays the owner of an object. The owner can be a user or
  5773. a group. The owner can be modified with 'cm ^setowner' command.
  5774. Examples:
  5775. cm ^showowner ^repserver:PlasticServer:8084
  5776. (Shows the owner of the selected server.)
  5777. cm ^so ^item:samples\
  5778. (Shows the owner of the selected item specification.)
  5779. == CMD_DESCRIPTION_SHOWPERMISSIONS ==
  5780. Lists the available permissions.
  5781. == CMD_USAGE_SHOWPERMISSIONS ==
  5782. Usage:
  5783. cm ^showpermissions | ^sp
  5784. == CMD_HELP_SHOWPERMISSIONS ==
  5785. Examples:
  5786. cm ^showpermissions
  5787. == CMD_DESCRIPTION_SHOWSELECTOR ==
  5788. > **This command is deprecated.**
  5789. Shows the workspace selector.
  5790. == CMD_USAGE_SHOWSELECTOR ==
  5791. Selectors are discontinued and its use is not recommended.
  5792. Usage:
  5793. cm ^showselector | ^ss [<wk_path> | <wk_spec>]
  5794. Options:
  5795. wk_path Path of the workspace to show the selector.
  5796. wk_spec Workspace specification. (Use 'cm ^help ^objectspec' to
  5797. learn more about workspace specs.)
  5798. == CMD_HELP_SHOWSELECTOR ==
  5799. Remarks:
  5800. If neither path nor workspace spec is specified, the command will take the
  5801. current directory as the workspace path.
  5802. Examples:
  5803. cm ^showselector c:\workspace
  5804. (Shows the selector for the selected workspace path.)
  5805. cm ^ss
  5806. (Shows the selector for current workspace.)
  5807. cm ^showselector > mySelector.txt
  5808. (Writes into a file the selector for the current workspace.)
  5809. cm ^showselector ^wk:mywk@reptest
  5810. (Shows the selector for the workspace 'mywk' in the repository 'reptest'.)
  5811. == CMD_DESCRIPTION_SUPPORT ==
  5812. Allows the user to perform support related operations.
  5813. == CMD_USAGE_SUPPORT ==
  5814. Usage:
  5815. cm ^support <command> [options]
  5816. Commands:
  5817. - ^bundle
  5818. To get more information about each command run:
  5819. cm ^support <command> --^usage
  5820. cm ^support <command> --^help
  5821. == CMD_HELP_SUPPORT ==
  5822. Examples:
  5823. cm ^support
  5824. cm ^support ^bundle
  5825. cm ^support ^bundle c:\outputfile.zip
  5826. == CMD_DESCRIPTION_SUPPORT_BUNDLE ==
  5827. Creates a "support bundle" package with relevant logs.
  5828. You can attach the file while requesting help, asking for extra info, or
  5829. submitting a bug.
  5830. == CMD_USAGE_SUPPORT_BUNDLE ==
  5831. Usage:
  5832. cm ^support ^bundle [<outputfile>]
  5833. Options:
  5834. outputfile Creates the "support bundle" package at the specified
  5835. location.
  5836. == CMD_HELP_SUPPORT_BUNDLE ==
  5837. Remarks:
  5838. This command allows users to create a "support bundle" package which can be
  5839. attached when requesting help, asking for extra info, or submitting a bug.
  5840. The user can optionally specify a location for the output file; otherwise, the
  5841. output file will be written to the temp directory.
  5842. Examples:
  5843. cm ^support ^bundle
  5844. (Creates "support bundle" in temp directory.)
  5845. cm ^support ^bundle c:\outputfile.zip
  5846. (Creates "support bundle" at the specified location.)
  5847. == CMD_DESCRIPTION_SWITCH ==
  5848. Switches the workspace to a branch, changeset, label, or shelveset.
  5849. == CMD_USAGE_SWITCH ==
  5850. Usage:
  5851. cm ^switch (<brspec> | <csetspec> | <lbspec> | <shspec>)
  5852. [--^workspace=<path>] [--^repository=<name>]
  5853. [--^forcedetailedprogress]
  5854. [--^silent] [--^verbose] [--^xml[=<output_file>]] [--^encoding=<name>]
  5855. [--^forcedetailedprogress] [--^noinput]
  5856. Options:
  5857. --^workspace Path where the workspace is located.
  5858. --^repository Switches to the specified repository.
  5859. --^forcedetailedprogress Forces detailed progress even when standard
  5860. output is redirected.
  5861. --^noinput Skips the interactive questions to continue the
  5862. operation with pending changes or to shelve them.
  5863. --^silent No output is shown unless an error happens.
  5864. --^verbose Shows additional information.
  5865. --^xml Prints the output in XML format to the standard output.
  5866. It is possible to specify an output file.
  5867. --^encoding Used with the --^xml option, specifies the encoding to
  5868. use in the XML output, i.e.: utf-8.
  5869. See the MSDN documentation at
  5870. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  5871. to get the table of supported encodings and its format,
  5872. (at the end of the page, in the "Name" column).
  5873. brspec Target branch.
  5874. (Use 'cm ^help ^objectspec' to learn more about branch specs.)
  5875. csetspec Target changeset.
  5876. (Use 'cm ^help ^objectspec' to learn more about changeset specs.)
  5877. lbspec Target label.
  5878. (Use 'cm ^help ^objectspec' to learn more about label specs.)
  5879. shspec Target shelveset.
  5880. (Use 'cm ^help ^objectspec' to learn more about shelveset specs.)
  5881. == CMD_HELP_SWITCH ==
  5882. Remarks:
  5883. This command allows users to update the workspace tree to the contents
  5884. of the specified object (branch, label, shelveset, or changeset).
  5885. Examples:
  5886. cm ^switch ^br:/main
  5887. cm ^switch ^lb:Rel1.1
  5888. cm ^switch ^br:/main/scm002 --^repository=rep2
  5889. cm ^switch ^cs:4375
  5890. cm ^switch ^sh:2
  5891. == CMD_DESCRIPTION_SWITCH_TO_BRANCH ==
  5892. > **This command is deprecated.** Use cm ^switch instead.
  5893. Sets a branch as the working branch.
  5894. == CMD_USAGE_SWITCH_TO_BRANCH ==
  5895. Usage:
  5896. cm ^switchtobranch [options] [branch_spec]
  5897. Options:
  5898. --^label=name | --^changeset=number load revisions from the specified
  5899. label or changeset. One of these options
  5900. is required if no branch_spec is given.
  5901. --^changeset=cset Switch to the specified changeset.
  5902. --^repository=rep Switch to the specified repository.
  5903. --^workspace | -wk=path path where the workspace is located.
  5904. branch_spec Branch specification.
  5905. == CMD_HELP_SWITCH_TO_BRANCH ==
  5906. Remarks:
  5907. This command allows users to work in a branch.
  5908. If no branch_spec specified, a label or a changeset must be specified.
  5909. If no repository is specified, the branch is set to the current repository.
  5910. Examples:
  5911. cm ^switchtobranch ^br:/main
  5912. cm ^switchtobranch ^br:/main/task001
  5913. cm ^switchtobranch --^label=BL050
  5914. (Read-only configuration. The command loads the contents of the labeled
  5915. changeset.)
  5916. == CMD_DESCRIPTION_SYNC ==
  5917. Synchronize with Git.
  5918. == CMD_USAGE_SYNC ==
  5919. Usage:
  5920. cm ^synchronize | ^sync <repspec> ^git [<url> [--^user=<usr_name> --^pwd=<pwd>]]
  5921. [(--^txtsimilaritypercent | --^binsimilaritypercent | \
  5922. --^dirsimilaritypercent)=<value>]
  5923. [--^author] [--^skipgitlfs] [--^gitpushchunk=<value>]
  5924. Options:
  5925. --^user User name for the specified URL.
  5926. --^pwd Password for the specified URL.
  5927. --^txtsimilaritypercent Similarity percentage to consider two text files
  5928. are the same (moved item)
  5929. --^binsimilaritypercent Similarity percentage to consider two binary files
  5930. are the same (moved item)
  5931. --^dirsimilaritypercent Similarity percentage to consider two directories
  5932. are the same (moved item)
  5933. --^author Uses name and timestamp values from the git author.
  5934. (git committer by default)
  5935. --^skipgitlfs Ignores the Git LFS configuration in the
  5936. .gitattributes file. It acts like without Git LFS
  5937. support.
  5938. --^gitpushchunk Process the push operation (exporting changes from
  5939. Unity VCS to Git) in chunks of a certain number of
  5940. changesets. This is only useful for huge repos to
  5941. avoid network or package size related issues or
  5942. just for debugging purposes. It uses chunks of
  5943. 1000 changesets if no value is specified.
  5944. url Remote repository URL (http(s):// or git:// or a
  5945. SSH URL).
  5946. repspec Repository specification. (Use 'cm ^help ^objectspec' t
  5947. learn more about repository specs.)
  5948. git (Default).
  5949. == CMD_HELP_SYNC ==
  5950. Remarks:
  5951. - If the git repository requires user and password, then use '^url', '--^user',
  5952. and '--^pwd' options.
  5953. - If the git repository doesn't require user and password, then use '^url'
  5954. option with the first sync operation. With next sync operations, '^url'
  5955. option is optional.
  5956. - To use the SSH protocol to perform the sync, you must have the 'ssh' client
  5957. added to the PATH environment variable and properly configured to connect
  5958. to the remote host (i.e. private/public keys configured).
  5959. - Similarity works the same way as the Unity VCS GUI does.
  5960. Examples:
  5961. cm ^sync default@localhost:8087 ^git git://localhost/repository
  5962. == CMD_DESCRIPTION_TRIGGER ==
  5963. Allows the user to manage triggers.
  5964. == CMD_USAGE_TRIGGER ==
  5965. Usage:
  5966. cm ^trigger | ^tr <command> [options]
  5967. Commands:
  5968. - ^create | ^mk
  5969. - ^delete | ^rm
  5970. - ^edit
  5971. - ^list | ^ls
  5972. - ^showtypes
  5973. To get more information about each command run:
  5974. cm ^trigger <command> --^usage
  5975. cm ^trigger <command> --^help
  5976. == CMD_HELP_TRIGGER ==
  5977. Examples:
  5978. cm ^tr ^mk ^before-mklabel new "/path/to/script" --^server=myserver:8084
  5979. cm ^tr ^edit ^before-mklabel 7 --^position=4 --^server=myserver:8084
  5980. cm ^tr ^ls ^before-mkbranch --^server=myserver:8084
  5981. cm ^tr ^rm ^after-setselector 4
  5982. cm ^tr ^showtypes
  5983. == CMD_DESCRIPTION_TUBE ==
  5984. Runs commands related to Plastic Tube.
  5985. == CMD_USAGE_TUBE ==
  5986. Usage:
  5987. cm ^tube ^config -^u=<user> -^p=<password>
  5988. (Configures Unity VCS to use Plastic Tube with the specified user and
  5989. password.)
  5990. cm ^tube ^create <remoteuser>
  5991. (Creates the tube "remoteuser -> myuser". The user "myuser" allows to
  5992. "remoteuser" to connect to "myuser" server. Connections can be established
  5993. from "remoteuser" to "myuser". Only tubes from other users to the current
  5994. tube user can be created.)
  5995. cm ^tube ^remove <remoteuser>
  5996. (Removes the tube "remoteuser -> myuser".)
  5997. cm ^tube ^local
  5998. (Lists the local repositories shared in the local server and the users
  5999. that it is shared with.)
  6000. cm ^tube ^remote
  6001. (Lists the shared remote repositories that are shared with the current
  6002. tube user.)
  6003. cm ^tube ^share <rep_spec>[ ...] -^u=<remoteuser> -^a=(^pull | ^push | ^pull,^push)
  6004. (Shares the local repository(s) with the remote user and sets the specified
  6005. access mode. Use a whitespace to separate repository specs.)
  6006. cm ^tube ^unshare <rep_spec>[ ...] -^u=<remoteuser>
  6007. (Unshares the local repository(s) with the remote user. Use a whitespace to
  6008. separate repository specs.)
  6009. cm ^tube ^connect
  6010. (Connects the Unity VCS server to Plastic Tube.)
  6011. cm ^tube ^disconnect
  6012. (Disconnects the Unity VCS server from Plastic Tube.)
  6013. cm ^tube ^status
  6014. (Shows if the Unity VCS server is connected to Plastic Tube.)
  6015. Options:
  6016. -^u Tube user (the plasticscm.com user).
  6017. -^p User password.
  6018. -^a Sets the access mode.
  6019. rep_spec Repository specification. (Use 'cm ^help ^objectspec' to
  6020. learn more about repository specs.)
  6021. == CMD_HELP_TUBE ==
  6022. Remarks:
  6023. Use the 'cm ^tube' command to manage Plastic Tube.
  6024. Examples:
  6025. cm ^tube ^config -^u=ruben@codicesoftware.com -^p=rubenpassword
  6026. cm ^tube ^create pablo@codicesoftware.com
  6027. ('pablo@codicesoftware.com' can connect to the current Plastic Tube user)
  6028. cm ^tube ^remove pablo@codicesoftware.com
  6029. cm ^tube ^local
  6030. cm ^tube ^remote
  6031. cm ^tube ^share repo@server:8087 -^u=pablo@codicesoftware.com -^a=^pull,^push
  6032. cm ^tube ^share repo@server:8087 doc@server:8087 -^u=pablo@codicesoftware.com -^a=^push
  6033. cm ^tube ^unshare repo@server:8087 -^u=pablo@codicesoftware.com
  6034. cm ^tube ^connect
  6035. cm ^tube ^disconnect
  6036. cm ^tube ^status
  6037. == CMD_DESCRIPTION_UNDOCHECKOUT ==
  6038. Undoes the checkout of an item.
  6039. == CMD_USAGE_UNDOCHECKOUT ==
  6040. Usage:
  6041. cm ^undocheckout | ^unco <item_path>[ ...] [-^a | --^all] [--^symlink] [--^silent]
  6042. [--^keepchanges | -^k]
  6043. [--^machinereadable [--^startlineseparator=<sep>]
  6044. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  6045. Options:
  6046. -^a | --^all Undoes all of the changes in the specified items. If
  6047. the item(s) were checked out, the checkout will be
  6048. reverted. If the item(s) were locally modified, the
  6049. modifications will be reverted.
  6050. --^symlink Applies the undocheckout operation to the link and not
  6051. to the target.
  6052. --^silent Does not show any output.
  6053. --^machinereadable Outputs the result in an easy-to-parse format.
  6054. --^startlineseparator Used with the '--^machinereadable' flag,
  6055. specifies how the lines should start.
  6056. --^endlineseparator Used with the '--^machinereadable' flag,
  6057. specifies how the lines should end.
  6058. --^fieldseparator Used with the '--^machinereadable' flag,
  6059. specifies how the fields should be separated.
  6060. --^keepchanges | -^k Undoes the checkout and preserves the local changes.
  6061. Sample: undo the checkout of a file leave it as locally
  6062. changed with the same content on disk that it was.
  6063. This option cannot be used with dynamic workspaces.
  6064. item_path Items to apply the operation. Use a whitespace to separate
  6065. paths. Use double quotes (" ") to specify paths
  6066. containing spaces. Use . to apply the operation to
  6067. the current directory.
  6068. == CMD_HELP_UNDOCHECKOUT ==
  6069. Remarks:
  6070. If an item is checked out and you do not want to checkin it, you can undo
  6071. the checkout using this command. Both files and folders can be unchecked
  6072. out. The item will be updated to the state it had before checking it out.
  6073. Requirements:
  6074. - The item must be under source code control.
  6075. - The item must be checked out.
  6076. Reading input from stdin:
  6077. The '^undocheckout' command can read paths from stdin. To do this, pass a
  6078. single dash "-".
  6079. Example:
  6080. cm ^undocheckout ^checkin -
  6081. Paths will be read until an empty line is entered.
  6082. This allows you to use pipe to specify for which files to undo the checkout.
  6083. Example:
  6084. dir /S /B *.c | cm ^undocheckout --^all -
  6085. (In Windows, undoes the checkout of all .c files in the workspace.)
  6086. Examples:
  6087. cm ^undocheckout .
  6088. (Undoes checkouts in the current directory.)
  6089. cm ^undocheckout file1.txt file2.txt
  6090. cm ^unco c:\workspace\file.txt
  6091. (Undoes checkouts of the selected files.)
  6092. cm ^unco -^a file1.txt
  6093. (Undoes checkouts or local modifications of 'file1.txt')
  6094. cm ^unco link --^symlink
  6095. (Applies the undocheckout operation to the symlink file and not to the target.)
  6096. cm ^status --^short --^changelist=pending_to_review | cm ^undocheckout -
  6097. (Undoes client changelist. The command above will list the paths in the
  6098. changelist named 'pending_to_review' and the path list will be redirected
  6099. to the input of the undocheckout command).
  6100. cm ^unco . --^machinereadable
  6101. (Undoes checkouts in the current directory, and prints the result in a
  6102. simplified, easier-to-parse format.)
  6103. cm ^unco . --^machinereadable --^startlineseparator=">" --^endlineseparator="<" \
  6104. --^fieldseparator=","
  6105. (Undoes checkouts in the current directory, and prints the result in a
  6106. simplified, easier to parse format, starting and ending the lines, and
  6107. separating the fields, with the specified strings.)
  6108. == CMD_DESCRIPTION_UNDOCHECKOUTUNCHANGED ==
  6109. Undoes non-changed checked out items.
  6110. == CMD_USAGE_UNDOCHECKOUTUNCHANGED ==
  6111. Usage:
  6112. cm ^uncounchanged | ^unuc <item_path>[ ...] [-^R | -^r | --^recursive]
  6113. [--^symlink] [--^silent]
  6114. Options:
  6115. -^R | -^r | --^recursive Undoes unchanged items recursively in the specified paths.
  6116. --^symlink Applies the uncounchanged operation to the link and not
  6117. to the target.
  6118. --^silent Does not show any output.
  6119. item_path Items to apply the operation. Use a whitespace to separate
  6120. paths. Use double quotes (" ") to specify paths
  6121. containing spaces. Use . to apply the operation to current
  6122. directory.
  6123. == CMD_HELP_UNDOCHECKOUTUNCHANGED ==
  6124. Remarks:
  6125. This command is applied from the root of the workspace recursively.
  6126. Reading input from stdin:
  6127. The '^uncounchanged' command can read paths from stdin. To do this, pass a
  6128. single dash "-".
  6129. Example: cm ^uncounchanged -
  6130. Paths will be read until an empty line is entered.
  6131. This allows you to use pipe to specify for which unchanged files to undo
  6132. the checkout.
  6133. Example:
  6134. dir /S /B *.c | cm ^uncounchanged -
  6135. (In Windows, undoes the checkout on all unchanged .c files in the
  6136. workspace.)
  6137. Examples:
  6138. cm ^uncounchanged . -^R
  6139. (Undoes checkouts of not changed files recursively on the current directory.)
  6140. cm ^unuc /home/myuser/mywk/project/templates -^R
  6141. (Undoes checkouts of not changed files recursively on the selected directory.)
  6142. == CMD_DESCRIPTION_UNDELETE ==
  6143. Undeletes an item using a specific revision.
  6144. == CMD_USAGE_UNDELETE ==
  6145. Usage:
  6146. cm ^undelete <revspec> <path>
  6147. Options:
  6148. revspec Specification of the revision whose contents will
  6149. be loaded in the workspace. (Use 'cm ^help ^objectspec' to
  6150. learn more about revision specs.)
  6151. path Restore path.
  6152. == CMD_HELP_UNDELETE ==
  6153. Remarks:
  6154. The item to undelete should not be already loaded in the workspace.
  6155. The '^undelete' operation is not supported for xlinks.
  6156. Example:
  6157. cm ^undelete ^revid:756 C:\mywks\src\foo.c
  6158. cm ^undelete ^itemid:68#^cs:2 C:\mywks\dir\myfile.pdf
  6159. cm ^undelete ^serverpath:/src#^br:/main C:\mywks\Dir
  6160. == CMD_DESCRIPTION_UNDOCHANGE ==
  6161. Undoes the changes on a path.
  6162. == CMD_USAGE_UNDOCHANGE ==
  6163. Usage:
  6164. cm ^undochange | ^unc <item_path>[ ...] [-^R | -^r | --^recursive]
  6165. Options:
  6166. -^R | -^r | --^recursive Applies the operation recursively.
  6167. item_path Items to apply the operation. Use a whitespace to separate
  6168. paths. Use double quotes (" ") to specify paths
  6169. containing spaces. Use . to apply the operation to
  6170. the current directory.
  6171. == CMD_HELP_UNDOCHANGE ==
  6172. Remarks:
  6173. If an item is checked out or modified but not checked in and you do not
  6174. want to check it in, you can undo the changes using this command. The item
  6175. will be updated to the contents it had before.
  6176. Reading input from stdin:
  6177. The '^undochange' command can read paths from stdin. To do this, pass a
  6178. single dash "-".
  6179. Example:
  6180. cm ^undochange -
  6181. Paths will be read until an empty line is entered.
  6182. This allows you to use pipe to specify for which files to undo changes.
  6183. Example:
  6184. dir /S /B *.c | cm ^undochange -
  6185. (In Windows, undoes the changes of all .c files in the workspace.)
  6186. Examples:
  6187. cm ^unc .
  6188. (Undoes changes of the files on the current directory.)
  6189. cm ^undochange . -^R
  6190. (Undoes changes of the files recursively on the current directory.)
  6191. cm ^unc file1.txt "file 2.txt"
  6192. (Undoes changes of the selected files.)
  6193. cm ^unc c:\workspace\file.txt
  6194. (Undoes changes of the selected file.)
  6195. == CMD_DESCRIPTION_UNDO ==
  6196. Undoes changes in a workspace.
  6197. == CMD_USAGE_UNDO ==
  6198. Usage:
  6199. cm ^undo [<path> [...]] [--^symlink] [-^r | --^recursive] [<filter> [...]]
  6200. [--^silent | [--^machinereadable [--^startlineseparator=<sep>]
  6201. [--^endlineseparator=<sep>]
  6202. [--^fieldseparator=<sep>]]
  6203. Options:
  6204. --^symlink Applies the undo operation to the symlink and not
  6205. to the target.
  6206. -^r Executes the undo recursively.
  6207. --^silent Does not show any output.
  6208. --^machinereadable Outputs the result in an easy-to-parse format.
  6209. --^startlineseparator Used with the '--^machinereadable' flag, specifies
  6210. how the lines should start.
  6211. --^endlineseparator Used with the '--^machinereadable' flag, specifies
  6212. how the lines should end.
  6213. --^fieldseparator Used with the '--^machinereadable' flag, specifies
  6214. how the fields should be separated.
  6215. path Path of the files or directories to apply the operation to.
  6216. Use double quotes (" ") to specify paths containing spaces.
  6217. Use a whitespace to separate paths.
  6218. If no path is specified, by default the undo operation will take
  6219. all of the files in the current directory.
  6220. filter Applies the specified filter or filters to the given paths. Use
  6221. a whitespace to separate filters. See the Filters section for
  6222. more information.
  6223. == CMD_HELP_UNDO ==
  6224. Remarks:
  6225. - If no path is specified, it will undo every change in the current
  6226. directory but not recursively.
  6227. - If one or more paths are specified, it will undo every change in the
  6228. specified paths but not recursively.
  6229. - If you want the operation to be recursive, you must specify the '-^r' flag.
  6230. To undo all of the changes below a directory including changes affecting
  6231. the directory itself, run the following command:
  6232. cm ^undo dirpath -^r
  6233. If dirpath is a workspace path, every change in the workspace will be
  6234. undone.
  6235. - The '^undo' command is dangerous because it undoes work irreversibly.
  6236. Once the ^undo has finished, it is not possible to recover the previous
  6237. state of the files and directories affected by it.
  6238. - Consider the following scenario:
  6239. - /src
  6240. - file.txt
  6241. - code.cs
  6242. - /test
  6243. - test_a.py
  6244. - test_b.py
  6245. These commands are equivalent when executed from the /src directory:
  6246. cm ^undo
  6247. cm ^undo *
  6248. cm ^undo file.txt code.cs /test
  6249. These commands are also equivalent when executed from the /src directory:
  6250. cm ^undo .
  6251. cm ^undo /src file.txt code.cs
  6252. Filters:
  6253. The paths can be filtered using one or more of the filters below. Each of
  6254. those filters refers to a type of change:
  6255. --^checkedout Selects checked-out files and directories.
  6256. --^unchanged Selects files whose content is unchanged.
  6257. --^changed Selects locally changed or checked-out files and directories.
  6258. --^deleted Selects deleted files and directories.
  6259. --^moved Selects moved files and directories.
  6260. --^added Selects added files and directories.
  6261. If the path matches one or more of the specified kinds of changes, those
  6262. types of changes will be undone on that said path.
  6263. For example, if you specify both '--^checkedout' and '--^moved', if a file
  6264. is both checkedout and moved, both changes will be undone.
  6265. If no filter is specified, all kinds of changes are undone.
  6266. Examples:
  6267. cm ^undo .
  6268. (Undoes all changes in the current directory.
  6269. It won't undo changes within its subdirectories.)
  6270. cm ^undo . -^r
  6271. (Undoes all changes in the current directory recursively. If executed
  6272. from the workspace's root, undoes all changes in the entire workspace.)
  6273. cm ^co file.txt
  6274. cm ^undo file.txt
  6275. (Undoes the checkout on 'file.txt'.)
  6276. cm ^undo c:\otherworkspace\file.txt
  6277. (Undoes changes in file 'file.txt' located in a workspace other than the
  6278. current one.)
  6279. ^echo ^content >> file.txt
  6280. cm ^undo file.txt
  6281. (Undoes the local change to 'file.txt'.)
  6282. cm ^undo src
  6283. (Undoes changes to the src directory and its files.)
  6284. cm ^undo src/*
  6285. (Undoes changes in every file and directory contained in src, without
  6286. affecting src.)
  6287. cm ^undo *.cs
  6288. (Undoes changes to every file or directory that matches *.cs in the current
  6289. directory.)
  6290. cm ^undo *.cs -^r
  6291. (Undoes changes on every file or directory that matches *.cs in the current
  6292. directory and every directory below it.)
  6293. cm ^co file1.txt file2.txt
  6294. ^echo ^content >> file1.txt
  6295. cm ^undo --^unchanged
  6296. (Undoes the checkout of unchanged 'file2.txt', ignoring locally changed
  6297. 'file1.txt'.)
  6298. ^echo ^content >> file1.txt
  6299. ^echo ^content >> file2.txt
  6300. cm ^co file1.txt
  6301. cm ^undo --^checkedout
  6302. (Undoes the changes in checked-out file 'file1.txt', ignoring 'file2.txt' as
  6303. it is not checked-out.)
  6304. cm ^add file.txt
  6305. cm ^undo file.txt
  6306. (Undo the add of 'file.txt' making it once again a private file.)
  6307. ^rm file1.txt
  6308. ^echo ^content >> file2.txt
  6309. cm ^add file3.txt
  6310. cm ^undo --^deleted --^added *
  6311. (Undoes the 'file1.txt' delete and 'file3.txt' add, ignoring the 'file2.txt'
  6312. change.)
  6313. == CMD_DESCRIPTION_LOCK_UNLOCK ==
  6314. Undoes item locks on a server.
  6315. == CMD_USAGE_LOCK_UNLOCK ==
  6316. Usage:
  6317. cm ^lock ^unlock <itemspec>[ ...] [--^remove]
  6318. Options:
  6319. --^remove Removes the locks completely for the specified items.
  6320. If this option is not specified, it only releases the
  6321. Locked status.
  6322. itemspec One or more item specs. (Use 'cm ^help ^objectspec'
  6323. to learn more about itemspecs.)
  6324. == CMD_HELP_LOCK_UNLOCK ==
  6325. Remarks:
  6326. - Only the administrator of the server can run the 'cm ^unlock --^remove'
  6327. command to delete locks.
  6328. - Only the administrator can release locks that belong to other users.
  6329. Users can release their own locks.
  6330. Examples:
  6331. cm ^lock ^unlock ^itemid:56@myrep@DIGITALIS:8084
  6332. (Releases the lock for the item id 56 in the repo 'myrep@DIGITALIS'.)
  6333. cm ^lock ^unlock ^item:/home/user/workspace/foo.psd ^item:/home/user/workspace/bar.psd
  6334. (Releases the selected item locks.)
  6335. cm ^lock ^unlock ^itemid:56@myrep ^itemid:89@myrep --^remove
  6336. (Removes the selected items locks.)
  6337. == CMD_DESCRIPTION_LOCK_CREATE ==
  6338. Create item locks on a server.
  6339. == CMD_USAGE_LOCK_CREATE ==
  6340. Usage:
  6341. cm ^lock ^create | ^mk <branchspec> <itemspec>[ ...]
  6342. branchspec The branch where the locks will be created.
  6343. (Use 'cm ^help ^objectspec' to learn more about branchspecs.)
  6344. itemspec One or more item specs. (Use 'cm ^help ^objectspec'
  6345. to learn more about itemspecs.)
  6346. == CMD_HELP_LOCK_CREATE ==
  6347. Remarks:
  6348. - Only the administrator can create locks.
  6349. - All locks created with this command are created in Retained status.
  6350. - If the revision loaded in the specified branch (for each item) is the
  6351. same loaded in the lock destination branch (/main by default),
  6352. then no lock is created.
  6353. - The repspec or the branchspec must be the same of all the itemspecs
  6354. specified.
  6355. Examples:
  6356. cm ^lock ^create /main/task@myrep ^itemid:56@myrep
  6357. (Creates a lock for the item id 56 in the branch /main/task@myrep.)
  6358. cm ^lock ^create br:/main/task item:/workspace/foo.psd ^item:/workspace/bar.psd
  6359. (Creates a lock for the selected item in the branch /main/task.)
  6360. == CMD_DESCRIPTION_UPDATE ==
  6361. Updates the workspace and downloads latest changes.
  6362. == CMD_USAGE_UPDATE ==
  6363. Usage:
  6364. cm ^update [<item_path> | --^last]
  6365. [--^changeset=<csetspec>] [--^cloaked] [--^dontmerge] [--^forced]
  6366. [--^ignorechanges] [--^override] [--^recursewk] [--^skipchangedcheck]
  6367. [--^silent] [--^verbose] [--^xml[=<output_file>]] [--^encoding=<name>]
  6368. [--^machinereadable [--^startlineseparator=<sep>]
  6369. [--^endlineseparator=<sep>] [--^fieldseparator=<sep>]]
  6370. [--^forcedetailedprogress] [--^noinput]
  6371. Options:
  6372. --^changeset Updates the workspace to a specific changeset.
  6373. (Use 'cm ^help ^objectspec' to learn more about
  6374. changeset specs.)
  6375. --^cloaked Includes the cloaked items in the update operation.
  6376. If this option is not specified, those items that are
  6377. cloaked will be ignored in the operation.
  6378. --^dontmerge In case an update merge is required during the update
  6379. operation, does not perform it.
  6380. --^forced Forces updating items to the revision specified in
  6381. the selector.
  6382. --^ignorechanges Ignores the pending changes warning message that is
  6383. shown if there are pending changes detected when
  6384. updating the workspace.
  6385. --^noinput Skips the interactive questions to continue the
  6386. operation with pending changes or to shelve them.
  6387. --^override Overrides changed files outside Unity VCS control.
  6388. Their content will be overwritten with the server
  6389. content.
  6390. --^recursewk Updates all the workspaces found within the current
  6391. path. Useful to update all the workspaces contained
  6392. in a specific path.
  6393. --^skipchangedcheck Checks if there are local changes in your workspace
  6394. before starting. If you always checkout before
  6395. modifying a file, you can use this check and speed
  6396. up the operation.
  6397. --^silent No output is shown unless an error happens.
  6398. --^verbose Shows additional information.
  6399. --^xml Prints the output in XML format to the standard output.
  6400. It is possible to specify an output file.
  6401. --^encoding Used with the --^xml option, specifies the encoding to
  6402. use in the XML output, i.e.: utf-8.
  6403. See the MSDN documentation at
  6404. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  6405. to get the table of supported encodings and its format,
  6406. (at the end of the page, in the "Name" column).
  6407. --^machinereadable Outputs the result in an easy-to-parse format.
  6408. --^startlineseparator Used with the '--^machinereadable' flag,
  6409. specifies how the lines should start.
  6410. --^endlineseparator Used with the '--^machinereadable' flag,
  6411. specifies how the lines should end.
  6412. --^fieldseparator Used with the '--^machinereadable' flag,
  6413. specifies how the fields should be separated.
  6414. --^forcedetailedprogress Forces detailed progress even when standard output
  6415. is redirected.
  6416. --^last Changes the workspace selector from a changeset
  6417. configuration or a label configuration to a branch
  6418. configuration before updating. The selector is changed
  6419. to the branch the changeset or label belongs to.
  6420. item_path Path to update. Use . to apply update to current directory.
  6421. If no path is specified, then the current workspace is
  6422. fully updated.
  6423. == CMD_HELP_UPDATE ==
  6424. Remarks:
  6425. The '^update' command only downloads needed files.
  6426. The command assumes recursive operation.
  6427. When the '--^last' option is used, it is not necessary to specify a path.
  6428. In this case, the workspace the current working directory belongs to will
  6429. be updated. (Remember that specifying this flag could cause the workspace
  6430. selector to be changed to a branch configuration if the selector was
  6431. previously pointing to a changeset or a label.)
  6432. Examples:
  6433. cm ^update
  6434. (Updates all in the current workspace.)
  6435. cm ^update .
  6436. (Updates current directory, and all children items.)
  6437. cm ^update . --^forced --^verbose
  6438. (Forces retrieval of all revisions.)
  6439. cm ^update --^last
  6440. cm ^update . --^machinereadable --^startlineseparator=">"
  6441. (Updates current directory and prints the result in a simplified
  6442. easier-to-parse format, starting the lines with the specified
  6443. strings.)
  6444. == CMD_DESCRIPTION_VERSION ==
  6445. Shows the current client version number.
  6446. == CMD_USAGE_VERSION ==
  6447. Usage:
  6448. cm ^version
  6449. == CMD_HELP_VERSION ==
  6450. Shows the current client version number.
  6451. == CMD_DESCRIPTION_WHOAMI ==
  6452. Shows the current Unity VCS user.
  6453. == CMD_USAGE_WHOAMI ==
  6454. Usage:
  6455. cm ^whoami
  6456. == CMD_HELP_WHOAMI ==
  6457. Shows the current Unity VCS user.
  6458. == CMD_DESCRIPTION_WORKSPACE ==
  6459. Allows the user to manage workspaces.
  6460. == CMD_USAGE_WORKSPACE ==
  6461. Usage:
  6462. cm ^workspace | ^wk <command> [options]
  6463. Commands:
  6464. - ^list | ^ls
  6465. - ^create | ^mk
  6466. - ^delete | ^rm
  6467. - ^move | ^mv
  6468. - ^rename
  6469. To get more information about each command run:
  6470. cm ^workspace <command> --^usage
  6471. cm ^workspace <command> --^help
  6472. == CMD_HELP_WORKSPACE ==
  6473. Examples:
  6474. cm ^workspace ^create myWorkspace wk_path
  6475. cm ^workspace ^list
  6476. cm ^workspace ^delete myWorkspace
  6477. == CMD_DESCRIPTION_WORKSPACE_CREATE ==
  6478. Creates a new workspace.
  6479. == CMD_USAGE_WORKSPACE_CREATE ==
  6480. Usage:
  6481. cm ^workspace | ^wk [^create | ^mk] <rep_spec>
  6482. [^create | ^mk] <wk_name> <wk_path> [<rep_spec>]
  6483. [^create | ^mk] <wk_name> <wk_path> [--^selector[=<selector_file>]
  6484. (Creates a new workspace.)
  6485. cm ^workspace | ^wk [^create | ^mk] <wk_name> <wk_path> --^dynamic --^tree=[<tree>]
  6486. (Creates a dynamic workspace. This feature is still experimental, and it's
  6487. only available for Windows.)
  6488. Options:
  6489. --^selector Edits a selector for the new workspace.
  6490. If a selector file is specified, then sets the selector
  6491. for the new workspace from the specified file.
  6492. --^dynamic Creates a dynamic workspace. This feature is still
  6493. experimental, and it's only available for Windows.
  6494. Specifying this flag requires using the --^tree parameter.
  6495. --^tree Used with the '--^dynamic' flag, specifies the initial
  6496. point the dynamic workspace is going to load. It can
  6497. either be a branch, changeset, or label specification.
  6498. The workspace will later on use the repository in the
  6499. spec. (Use 'cm ^help ^objectspec' to learn more about specs.)
  6500. wk_name The new workspace name.
  6501. wk_path Path of the new workspace.
  6502. rep_spec Creates the new workspace with the specified repository.
  6503. Repository specification: check 'cm ^help ^objectspec'.
  6504. == CMD_HELP_WORKSPACE_CREATE ==
  6505. Remarks:
  6506. - A workspace is a view of the repository mapped to the local filesystem.
  6507. The workspace selector defines the rules that specify workspace content.
  6508. Use 'cm ^showselector' to display a workspace selector or 'cm ^setselector'
  6509. to modify it.
  6510. - If neither rep_spec nor '--^selector' is specified, then the workspace
  6511. will automatically be configured to use the first repository
  6512. (alphabetically) of the server configured in the client.conf file.
  6513. - The dynamic workspaces is a experimental feature (Windows only), and it
  6514. requires the plasticfs.exe program running.
  6515. Examples:
  6516. cm ^workspace ^create mycode
  6517. cm ^wk ^mk mycode
  6518. (Creates a 'mycode' workspace pointing to the repository with the same name.
  6519. The workspace directory will be created under the current directory.)
  6520. cm ^wk ^mk mycode@localhost:8084
  6521. cm ^wk ^mk mycode@myorganization@cloud
  6522. (Creates a 'mycode' workspace as before, but you can specify different repository server.)
  6523. cm ^workspace ^create myworkspace c:\workspace
  6524. cm ^wk ^mk myworkspace /home/john/plastic_view
  6525. (Creates 'myworkspace' workspace in Windows and in Linux respectively.)
  6526. cm ^wk mywktest c:\wks\wktest --^selector=myselector.txt
  6527. (Creates 'mywktest' workspace using the selector in 'myselector.txt' file.)
  6528. cm ^wk mywkprj c:\wks\wkprj myrep@^repserver:localhost:8084
  6529. (Creates 'mywkprj' workspace with the selected repository.)
  6530. cm ^wk mywkprj c:\dynwks\mywkprj --^dynamic --^tree=^br:/main@myrep@localhost:8084
  6531. (Creates dynamic 'mywkprj' workspace with the 'myrep@localhost:8084'
  6532. repository, pointing to '^br:/main' the first time it gets mounted.)
  6533. == CMD_DESCRIPTION_WORKSPACE_DELETE ==
  6534. Deletes a workspace.
  6535. == CMD_USAGE_WORKSPACE_DELETE ==
  6536. Usage:
  6537. cm ^workspace | ^wk ^delete | ^rm [<wk_path> | <wkspec>] [--^keepmetadata]
  6538. Options:
  6539. --^keepmetadata Does not delete the metadata files in the .plastic
  6540. folder.
  6541. wk_path Path of the workspace to be deleted.
  6542. wkspec Specification of the workspace to delete. (Use
  6543. 'cm ^help ^objectspec' to learn more about specs.)
  6544. == CMD_HELP_WORKSPACE_DELETE ==
  6545. Remarks:
  6546. This command deletes a workspace, specified by path or spec.
  6547. If no arguments are specified, current workspace will be assumed.
  6548. Examples:
  6549. cm ^workspace ^delete
  6550. (Removes current workspace.)
  6551. cm ^wk ^delete c:\workspace
  6552. cm ^workspace rm /home/danipen/wks
  6553. cm ^wk ^rm ^wk:MiWorkspace
  6554. cm ^wk ^rm ^wk:MiWorkspace@DIGITALIS
  6555. == CMD_DESCRIPTION_WORKSPACE_LIST ==
  6556. Lists workspaces.
  6557. == CMD_USAGE_WORKSPACE_LIST ==
  6558. Usage:
  6559. cm ^workspace | ^wk [^list | ^ls] [--^format=<str_format>]
  6560. Options:
  6561. --^format Retrieves the output message in a specific format. See
  6562. Remarks for more info.
  6563. == CMD_HELP_WORKSPACE_LIST ==
  6564. Remarks:
  6565. Output format parameters (--^format option):
  6566. This command accepts a format string to show the output.
  6567. The output parameters of this command are the following:
  6568. {0} | {^wkname} Workspace name.
  6569. {1} | {^machine} Client machine name.
  6570. {2} | {^path} Workspace path.
  6571. {3} | {^wkid} Workspace unique identifier.
  6572. {4} | {^wkspec} Workspace specification using the format:
  6573. 'wkname@machine'.
  6574. {^tab} Inserts a tab space.
  6575. {^newline} Inserts a new line.
  6576. Examples:
  6577. cm ^wk
  6578. (Lists all workspaces.)
  6579. cm ^workspace ^list --^format={0}#{3,40}
  6580. cm ^workspace ^list --^format={^wkname}#{^wkid,40}
  6581. (Lists all workspaces and shows the workspace name, a # symbol and the
  6582. workspace GUID field in 40 spaces, aligned to left.)
  6583. cm ^wk --^format="Workspace {0} in path {2}"
  6584. cm ^wk --^format="Workspace {^wkname} in path {^path}"
  6585. (Lists all workspaces and shows result as formatted strings.)
  6586. == CMD_DESCRIPTION_WORKSPACE_MOVE ==
  6587. Moves a workspace.
  6588. == CMD_USAGE_WORKSPACE_MOVE ==
  6589. Usage:
  6590. cm ^workspace | ^wk ^move | ^mv [<wkspec>] <new_path>
  6591. Options:
  6592. wkspec Specification of the workspace to move. (Use
  6593. 'cm ^help ^objectspec' to learn more about specs.)
  6594. new_path Workspace will be moved to here.
  6595. == CMD_HELP_WORKSPACE_MOVE ==
  6596. Remarks:
  6597. This command allows users to move a workspace to another location on disk.
  6598. Examples:
  6599. cm ^workspace ^move myWorkspace \new\workspaceDirectory
  6600. (Moves 'myWorkspace' to the specified location.)
  6601. cm ^wk ^mv c:\users\maria\wkspaces\newlocation
  6602. (Moves the current workspace to the new location.)
  6603. == CMD_DESCRIPTION_WORKSPACE_RENAME ==
  6604. Renames a workspace.
  6605. == CMD_USAGE_WORKSPACE_RENAME ==
  6606. Usage:
  6607. cm ^workspace | ^wk ^rename [<wk_name>] <new_name>
  6608. Options:
  6609. wk_name Workspace to rename.
  6610. new_name New name for the workspace.
  6611. == CMD_HELP_WORKSPACE_RENAME ==
  6612. Remarks:
  6613. This command renames a workspace.
  6614. If no workspace name is supplied, the current workspace will be used.
  6615. Examples:
  6616. cm ^workspace ^rename mywk1 wk2
  6617. (Renames the workspace 'mywk1' to 'wk2'.)
  6618. cm ^wk ^rename newname
  6619. (Renames the current workspace to 'newname'.)
  6620. == CMD_DESCRIPTION_WORKSPACESTATUS ==
  6621. Shows changes in the workspace.
  6622. == CMD_USAGE_WORKSPACESTATUS ==
  6623. Usage:
  6624. cm ^status [<wk_path>] [--^changelist[=<name>] | --^changelists] [--^cutignored]
  6625. [ --^header] [ --^noheader] [ --^nomergesinfo] [ --^head]
  6626. [--^short] [--^symlink] [ --^dirwithchanges] [--^xml[=<output_file>]]
  6627. [--^encoding=<name>] [ --^wrp | --^wkrootrelativepaths]
  6628. [--^fullpaths | --^fp] [<legacy_options>] [<search_types>[ ...]]
  6629. [--^pretty]
  6630. [--^machinereadable [--^startlineseparator=sep]
  6631. [--^endlineseparator=sep] [--^fieldseparator=sep]]
  6632. Options:
  6633. --^changelist Shows changes in the selected changelist.
  6634. --^changelists Shows changes grouped in client changelists.
  6635. --^cutignored Skips the contents of ignored directories.
  6636. Requires the '--^ignored' search type. See the Search
  6637. types section for more information.
  6638. --^header Only prints the workspace status.
  6639. --^noheader Only prints the modified item search result.
  6640. --^nomergesinfo Doesn't print the merge info for changes.
  6641. --^head Prints the status of the last changeset on the branch.
  6642. --^short Lists only paths that contains changes.
  6643. --^symlink Applies the operation to the symlink and not to the
  6644. target.
  6645. --^dirwithchanges Shows directories that contain changes inside them
  6646. (added, moved, removed items inside).
  6647. --^xml Prints the output in XML format to the standard output.
  6648. It is possible to specify an output file.
  6649. --^pretty Prints workspace changes in a nice table format.
  6650. --^encoding Used with the --^xml option, specifies the encoding to
  6651. use in the XML output, i.e.: utf-8.
  6652. See the MSDN documentation at
  6653. http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
  6654. to get the table of supported encodings and its format
  6655. (at the end of the page, in the "Name" column).
  6656. --^wrp Print workspace root relative paths instead of
  6657. current directory relative paths.
  6658. --^fullpaths, --^fp Force printing absolute paths, overriding any other
  6659. path printing setting.
  6660. --^machinereadable Outputs the result in an easy-to-parse format.
  6661. --^startlineseparator Used with the '--^machinereadable' flag,
  6662. specifies how the lines should start.
  6663. --^endlineseparator Used with the '--^machinereadable' flag,
  6664. specifies how the lines should end.
  6665. --^fieldseparator Used with the '--^machinereadable' flag,
  6666. specifies how the fields should be separated.
  6667. --^iscochanged Shows whether contents of a checked-out file have
  6668. changed or not. This flag is only available with
  6669. "--^compact", "--^xml" and "--^machinereadable" options.
  6670. If this flag is not set, the "--^compact", "--^xml" or
  6671. "--^machinereadable" options will show just "^CO"
  6672. status for a checked-out file with its contents
  6673. changed.
  6674. If this flag is set, the "--^compact", "--^xml" or
  6675. "--^machinereadable" options will show "^CO+CH" status
  6676. for a checked-out file with its contents changed.
  6677. wk_path Path of the workspace where the search will be
  6678. performed.
  6679. Legacy options:
  6680. --^cset Prints the workspace status in the legacy format.
  6681. --^compact Prints the workspace status and changelists in the
  6682. legacy format.
  6683. --^noheaders When used in conjunction with the '--^compact' flag, the
  6684. changelist headers will not be printed. (Does not apply
  6685. to the new changelists format.)
  6686. Search types:
  6687. --^added Prints added items.
  6688. --^checkout Prints checkedout items.
  6689. --^changed Prints changed items.
  6690. --^copied Prints copied items.
  6691. --^replaced Prints replaced items.
  6692. --^deleted Prints deleted items.
  6693. --^localdeleted Prints locally deleted items.
  6694. --^moved Prints moved items.
  6695. --^localmoved Prints locally moved items.
  6696. --^percentofsimilarity=<value> Percent of similarity between two files in
  6697. order to consider them the same item. Used
  6698. in the locally moved search. Its default
  6699. value is 20%.
  6700. --^txtsameext Only those text files that have the same
  6701. extension will be taken into account by the
  6702. similarity content matching process during
  6703. the moved items search. By default, any
  6704. text file will be processed.
  6705. --^binanyext Any binary file will be taken into account
  6706. by the similarity content matching process
  6707. during the moved items search. By default,
  6708. only those binary files that have the same
  6709. extension will be processed.
  6710. --^private Prints non controlled items.
  6711. --^ignored Prints ignored items.
  6712. --^hiddenchanged Prints hidden changed items. (Includes
  6713. '--^changed')
  6714. --^cloaked Prints cloaked items.
  6715. --^controlledchanged This flag substitutes the following options:
  6716. '--^added', '--^checkout', '--^copied',
  6717. '--^replaced', '--^deleted', '--^moved'.
  6718. --^all This flag replaces the following parameters:
  6719. '--^controlledchanged', '--^changed',
  6720. '--^localdeleted', '--^localmoved', '--^private'.
  6721. == CMD_HELP_WORKSPACESTATUS ==
  6722. Remarks:
  6723. The '^status' command prints the loaded changeset on a workspace and gets
  6724. the changed elements inside the workspace.
  6725. This command can be used to show the pending changes in a workspace; the
  6726. type of changes that can be searched can be modified by using the command
  6727. parameters. By default, all changes are displayed, be they controlled
  6728. or local.
  6729. The percent of similarity parameter '--^percentofsimilarity' (-^p) is used
  6730. by the locally moved search to decide if two elements are the same item.
  6731. The default value is 20% but it can be adjusted.
  6732. It is possible to show workspace changes grouped by client changelists.
  6733. The '^default' changelist includes the changes that are not included in
  6734. other changelists. That being said, the changes the default changelist
  6735. will show depends on the search types flags specified.
  6736. Showing changes grouped by changelists requires showing controlled
  6737. changes too (items with status equal to '^added', '^checkout', '^copied',
  6738. '^replaced', '^deleted', or '^moved'). So, the '--^controlledchanged' option
  6739. will be automatically enabled when changelists are shown.
  6740. The default encoding for XML output is utf-8.
  6741. By default, this command will print current directory relative paths,
  6742. unless the '--^machinereadable' or '--^short' flags are specified. If
  6743. any of them are specified, the command will print absolute paths.
  6744. If '--^xml' flag is specified, workspace root relative paths will
  6745. be printed (unless the '--^fp' flag is also specified, printing
  6746. absolute paths instead).
  6747. Examples:
  6748. cm ^status
  6749. (Prints the working changeset and also all item types changed in the
  6750. workspace, except the ignored ones.)
  6751. cm ^status --^controlledchanged
  6752. (Prints the working changeset and also the items that are checkedout, added,
  6753. copied, replaced, deleted, and moved.)
  6754. cm ^status --^added
  6755. (Prints only the working changeset and the added items inside the workspace.)
  6756. cm ^status c:\workspaceLocation\code\client --^added
  6757. (Prints the working changeset and the added items under the specified path
  6758. recursively.)
  6759. cm ^status --^changelists
  6760. cm ^status --^changelist
  6761. (Shows all the workspace changes grouped by client changelists.)
  6762. cm ^status --^changelist=pending_to_review
  6763. (Shows the changes on the changelist named 'pending_to_review'.)
  6764. cm ^status --^changelist=default --^private
  6765. (Shows the changes in the 'default' changelist, showing private items, along
  6766. with items with controlled changes, if any.)
  6767. cm ^status --^short --^changelist=pending_to_review | cm ^checkin -
  6768. (Checkins the changes in the changelist 'pending_to_review'.)
  6769. cm ^status C:\workspaceLocation --^xml=output.xml
  6770. (Gets the status information in XML format and using utf-8 in the file
  6771. output.xml.)
  6772. cm ^status --^ignored
  6773. (Shows all ignored items.)
  6774. cm ^status --^ignored --^cutignored
  6775. (Shows ignored files whose parent directory is not ignored and ignored
  6776. directories but not their contents.)
  6777. == CMD_DESCRIPTION_XLINK ==
  6778. Creates, edits, or displays details of an Xlink.
  6779. == CMD_USAGE_XLINK ==
  6780. Usage:
  6781. cm ^xlink [-^w] [-^rs] <xlink_path> / (<csetspec> | <lbspec> | <brspec)>
  6782. [<expansion_rules>[ ...]]
  6783. (Creates an Xlink.)
  6784. cm ^xlink [-^rs] <xlink_path> /<relative_path> (<csetspec> | <lbspec> | <brspec>)
  6785. [<expansion_rules>[ ...]]
  6786. (Creates a readonly partial Xlink pointing to /<relative_path> instead of
  6787. the default root / .)
  6788. cm ^xlink -^e <xlink_path> (<csetspec> | <lbspec> | <brspec>)
  6789. (Edits an Xlink to change the target specification.)
  6790. cm ^xlink -^s|--^show <xlink_path>
  6791. (Shows the Xlink information including the expansion rules.)
  6792. cm ^xlink -^ar|--^addrules <xlink_path> <expansion_rules>[ ...]
  6793. (Adds the given expansion rules to the Xlink.)
  6794. cm ^xlink -^dr|--^deleterules <xlink_path> <expansion_rules>[ ...]
  6795. (Removes the given expansion rules from the Xlink.)
  6796. Options:
  6797. -^e Edits an existing Xlink to change the target changeset
  6798. specification.
  6799. -^s | --^show Shows information about the selected Xlink.
  6800. -^ar | --^addrules Adds one or more expansion rules to the selected Xlink.
  6801. -^dr | --^deleterules Deletes one or more expansion rules from the selected
  6802. Xlink.
  6803. -^w Indicates that the Xlink is writable. This means that
  6804. the contents of the target repository can be modified
  6805. through branch autoexpansion.
  6806. -^rs Relative server. This option allows creating a relative
  6807. Xlink that is independent of the repository server. This
  6808. way, Xlinks created in replicated repositories in
  6809. different servers will be automatically identified.
  6810. expansion_rules To specify one or more expansion rule. Each expansion
  6811. rule is a pair branch-target branch:
  6812. ^br:/main/fix-^br:/main/develop/fix
  6813. xlink_path This is the directory in the current workspace where
  6814. the linked repository will be mounted (when creating an
  6815. Xlink) or is mounted (when editing an Xlink).
  6816. csetspec The full target changeset specification in the remote
  6817. repository.
  6818. This determines what version and branch is loaded in the
  6819. workspace for the linked repository.
  6820. (Use 'cm ^help ^objectspec' to learn more about changeset
  6821. specs.)
  6822. lbspec The full label specification in the remote repository.
  6823. (Use 'cm ^help ^objectspec' to learn more about label
  6824. specs.)
  6825. brspec The full branch specification in the remote repository.
  6826. This uses the current changeset where the specified
  6827. branch is pointing to. (Use 'cm ^help ^objectspec' to
  6828. learn more about branch specs.)
  6829. == CMD_HELP_XLINK ==
  6830. Remarks:
  6831. This command creates an Xlink to a given changeset. By default, a read-only
  6832. Xlink is created. This means that the contents loaded in the workspace
  6833. inside the Xlink cannot be modified. To be able to make changes in the
  6834. Xlinked content, create a writable Xlink instead (using the '-^w' option).
  6835. It is possible to use a simplified syntax of the command when editing the
  6836. target changeset of an Xlink. This way, the only required parameter is the
  6837. new target changeset. The rest of parameters of the Xlink will not be
  6838. modified.
  6839. Branch auto-expansion:
  6840. When a change is made in any writable-xlinked repositories ('-^w' option), a
  6841. new branch needs to be created in the target repository. The name of the
  6842. new branch is based on the checkout branch defined in the top-level
  6843. repository. To determine the name of the branch to use, these rules apply:
  6844. 1) A check is made to see if a branch with the same full name exists
  6845. in the target repository:
  6846. - If it exists, this is used as the checkout branch.
  6847. - If it does not exist, the branch name is built this way:
  6848. - Name of the branch of the target Xlinked changeset + short name of
  6849. the checkout branch (last part).
  6850. - If this branch exists, it is used as the checkout branch.
  6851. - Otherwise, the branch is created and the branch base is set to the
  6852. Xlinked changeset.
  6853. 2) A new version of the Xlink is created in the branch on the parent
  6854. repository pointing to the new changeset in the Xlinked repository.
  6855. Finally, the complete Xlink structure is kept up to date with the latest
  6856. changes in the right versions.
  6857. Examples:
  6858. cm ^xlink code\firstrepo / 1@first@localhost:8084
  6859. (Creates an Xlink in folder 'firstrepo' in the current workspace where the
  6860. changeset '1' in the repository 'first' will be mounted.)
  6861. cm ^xlink opengl\include /includes/opengl 1627@includes@localhost:8087
  6862. (Creates a readonly partial Xlink in directory 'opengl\include' in the
  6863. current workspace where the path '/includes/opengl' in changeset '1627' in
  6864. the repository 'includes' will be mounted as root. It means that whatever
  6865. is inside '/includes/opengl' will be mounted in 'opengl\include' while the
  6866. rest of the repository will be ignored.)
  6867. cm ^xlink -^w -^rs code\secondrepo / ^lb:LB001@second@localhost:8084
  6868. (Creates a writable and relative Xlink in folder 'secondrepo' in the
  6869. current workspace where the label 'LB001' in the repository 'second' will
  6870. be mounted.)
  6871. cm ^xlink code\thirdrepo / 3@third@localhost:8087 ^br:/main-^br:/main/scm003
  6872. (Creates an Xlink in folder 'thirdrepo' in the current workspace where the
  6873. changeset '3' in the repository 'third' will be mounted.)
  6874. cm ^xlink -^e code\secondrepo ^br:/main/task1234@second@localhost:8084
  6875. (Edits the Xlink 'code\secondrepo' to change the target repository by
  6876. linking the branch 'main/task1234' in the repository 'second'.)
  6877. cm ^xlink --^show code\thirdrepo
  6878. (Shows information of the Xlink 'code\thirdrepo' including its expansion
  6879. rules if exist).
  6880. cm ^xlink -^ar code\secondrepo ^br:/main-^br:/main/develop ^br:/main/fix-^br:/main/develop/fix
  6881. (Adds two expansion rules to the xlink 'code\secondrepo'.)
  6882. cm ^xlink -^dr code\secondrepo ^br:/main/fix-^br:/main/develop/fix
  6883. (Deletes the expansion rule from the xlink 'code\secondrepo').
  6884. == CMD_DESCRIPTION_AUTOCOMPLETE ==
  6885. Allows to implement autocomplete suggestions in a line at the cursor position.
  6886. == CMD_USAGE_AUTOCOMPLETE ==
  6887. Usage:
  6888. cm ^autocomplete ^install
  6889. (Installs 'cm' command completion in the shell.)
  6890. cm ^autocomplete ^uninstall
  6891. (Uninstalls 'cm' command completion from the shell.)
  6892. cm ^autocomplete --^line <shell_line> --^position <cursor_position>
  6893. (Returns autocomplete suggestions for 'shell_line' to be inserted at
  6894. 'cursor_position'.)
  6895. Options:
  6896. shell_line The line the user has written into the shell when the
  6897. autocompletion was requested.
  6898. In Bash, it is at the COMP_LINE environment variable.
  6899. In PowerShell, it is at the $wordToComplete variable.
  6900. cursor_position The position of the cursor when the autocompletion was
  6901. requested.
  6902. In Bash, it is at the COMP_POINT environment variable.
  6903. In PowerShell, it is at the $cursorPosition variable.
  6904. == CMD_HELP_AUTOCOMPLETE ==
  6905. Remarks:
  6906. This command is not intended to be used by the final user,
  6907. but it is documented in case it is needed to extend autocompletion
  6908. support for the shell of choice.
  6909. Examples:
  6910. cm ^autocomplete --^line "cm ^show" --^position 7
  6911. (Shows a list of commands starting with "show". In this case:
  6912. showcommands, showfindobjects, showacl, showowner, showpermissions,
  6913. showselector.)
  6914. == CMD_DESCRIPTION_API ==
  6915. Starts a local HTTP server that listens for REST API requests.
  6916. == CMD_USAGE_API ==
  6917. Usage:
  6918. cm ^api [(-^p|--^port)=<portnumber>] [(-^r|--^remote)]
  6919. Options:
  6920. -^p | --^port Tells the server to listen on port <portnumber>
  6921. instead of 9090.
  6922. -^r | --^remote Allows incoming remote connections. This means
  6923. connections that come from other hosts instead of the
  6924. local one.
  6925. == CMD_HELP_API ==
  6926. Remarks:
  6927. The cm ^api command allows programmers to perform Unity VCS client operations
  6928. in their machines.
  6929. Read the Unity VCS API Guide for more information:
  6930. https://www.plasticscm.com/documentation/restapi/plastic-scm-version-control-rest-api-guide
  6931. By default, the API listens for local connections only, on port 9090.
  6932. Press the Enter key to stop the server.
  6933. Examples:
  6934. cm ^api
  6935. (Starts the API listening on port 9090, local connections only.)
  6936. cm ^api -^r
  6937. (Starts the API listening on port 9090, allowing any incoming connection.)
  6938. cm ^api --^port=15000 -^r
  6939. (Starts the API listening on port 15000, allowing any incoming connection.)
  6940. == CMD_DESCRIPTION_CONFIGURECLIENT ==
  6941. Configures the Unity VCS client for the current machine user to work with a default server.
  6942. == CMD_USAGE_CONFIGURECLIENT ==
  6943. Usage:
  6944. cm ^configure [--^language=<language> --^workingmode=<mode> [AuthParameters]
  6945. --^server=<server> [--^port=<port>]] [--^clientconf=<clientconfpath>]
  6946. Options:
  6947. --^language Available languages. See remarks for more info.
  6948. --^workingmode Available users/security working modes. See remarks for more info.
  6949. --^server Unity VCS server IP / address.
  6950. --^port Unity VCS server port (optional for Cloud servers).
  6951. --^clientconf File path used to create the configuration file (optional).
  6952. AuthParameters Authentication parameters. See Remarks for more info.
  6953. == CMD_HELP_CONFIGURECLIENT ==
  6954. Remarks:
  6955. The cm ^configure command cannot be used on Cloud Edition or DVCS Edition of Unity VCS.
  6956. Use 'plastic --configure' instead.
  6957. Languages:
  6958. - en (English)
  6959. - es (Spanish)
  6960. Working modes:
  6961. - NameWorkingMode (Name)
  6962. - NameIDWorkingMode (Name + ID)
  6963. - LDAPWorkingMode (LDAP)
  6964. - ADWorkingMode (Active Directory)
  6965. - UPWorkingMode (User and password)
  6966. - SSOWorkingMode (Single Sign On)
  6967. Client configuration:
  6968. If this parameter is not specified, the default directory for
  6969. 'client.conf' file would be '%LocalAppData%\plastic4'
  6970. on Windows or '$HOME/.plastic4' on linux/macOS.
  6971. AuthParameters:
  6972. - ^LDAPWorkingMode and ^UPWorkingMode
  6973. - --^user=<user>
  6974. - --^password=<password>
  6975. - ^SSOWorkingMode
  6976. - --^user=<user>
  6977. - --^token=<token>
  6978. Examples:
  6979. cm ^configure
  6980. (runs the interactive Unity VCS client configuration command)
  6981. cm ^configure --^language=^en --^workingmode=^LDAPWorkingMode --^user=^jack --^password=^01234 \
  6982. --^server=^plastic.mymachine.com --^port=^8084
  6983. (configures the Unity VCS client with the specified parameters and creates the 'client.conf'
  6984. configuration file in the default directory)
  6985. cm ^configure --^language=^en --^workingmode=^NameWorkingMode --^server=^plastic.mymachine.com \
  6986. --^port=^8084 --^clientconf=^clientconf_exp.conf
  6987. (configures the Unity VCS client with the specified parameters and creates the 'client.conf'
  6988. configuration file in the specified path)
  6989. cm ^configure --^clientconf=c:/path/to/myclient.conf
  6990. (Specified path will be used to create the client configuration file)
  6991. cm ^configure --^clientconf=myclient.conf
  6992. (File myclient.conf inside default config directory will be used)
  6993. cm ^configure --^clientconf=c:/exisitingDirectory
  6994. (Default filename, client.conf, in specified directory will be used)
  6995. configuration file in the specified path)
  6996. == CMD_DESCRIPTION_PURGE ==
  6997. Allows the user to inspect, register and execute repository purges. Purged revisions are no longer accessible for that repository, thus helping to free space.
  6998. Warning: Purge actions are irreversible. Once they are executed, you will not be able to load purged revisions anymore—either by switching a workspace or when showing branch or changeset differences. Use this under your own responsibility.
  6999. == CMD_USAGE_PURGE ==
  7000. Usage:
  7001. cm ^purge <command> [options]
  7002. Commands:
  7003. - ^register
  7004. - ^execute
  7005. - ^show
  7006. - ^history
  7007. - ^unregister
  7008. To get more information about each command run:
  7009. cm ^purge <command> --^usage
  7010. cm ^purge <command> --^help
  7011. == CMD_HELP_PURGE ==
  7012. Examples:
  7013. cm ^purge ^register ".mkv" "1955-Nov-05 6:00 AM" --^repository=timemachine
  7014. (registers a purge action for the 'timemachine' repository)
  7015. cm ^purge ^history
  7016. (lists the ID and status of all the purge actions ever registerd in the server)
  7017. cm ^purge ^show 545ec81b-23ea-462c-91f4-d7c62a6e8817 --^verbose
  7018. (shows in detail the purge action metadata for a given ID,
  7019. including items and revisions affected by the purge)
  7020. cm ^purge ^execute 545ec81b-23ea-462c-91f4-d7c62a6e8817
  7021. (starts a previously registered purge action)
  7022. cm ^purge ^unregister 545ec81b-23ea-462c-91f4-d7c62a6e8817
  7023. (purges that were not executed can be deleted from the registry)
  7024. == CMD_DESCRIPTION_PURGE_REGISTER ==
  7025. Computes and registers a purge action.
  7026. File revisions older than the selected date(s) would be considered for purging and, as a rule, we will keep at least a revision in every branch head and labeled revisions. You can use the "cm ^purge ^show" command to check the selected revisions prior to run it with the "cm ^purge ^execute" command.
  7027. == CMD_USAGE_PURGE_REGISTER ==
  7028. Usage:
  7029. cm ^purge ^register (<extension> <before_date>)... [--^repository=<rep_spec>]
  7030. Options:
  7031. --^repository Repository where the purge is intended to be applied.
  7032. It is not necessary within a workspace path but to pick a different one.
  7033. extension Extension of the file type to be purged. Note that revisions of renamed
  7034. items will also be considered for its removal.
  7035. before_date Only revisions older than this date will be considered for its removal.
  7036. == CMD_HELP_PURGE_REGISTER ==
  7037. Examples:
  7038. cm ^purge ^register ".mkv" "1955-Nov-05 6:00 AM"
  7039. (registers a purge action over revisions of Matroska files created before a certain date)
  7040. cm ^purge ^register ".mkv" "6:00 AM"
  7041. (you can specify just the date or just the time)
  7042. cm ^purge ^register ".mkv" "6:00Z"
  7043. (you can specify the time in UTC instead of local time)
  7044. cm ^purge ^register ".mkv" "1955-Nov-05 6:00 AM" --^repository=timemachine
  7045. (you can specify a different repository to register the purge)
  7046. == CMD_DESCRIPTION_PURGE_EXECUTE ==
  7047. Executes a purge action previously registered.
  7048. Warning: Purge actions are irreversible. Once they are executed, you will not be able to load purged revisions anymore—either by switching a workspace or when showing branch or changeset differences. Use this under your own responsibility.
  7049. Please ensure you check the file history to confirm which revisions/changesets are not relevant. Do not hesitate to use the cm ^purge ^show command prior to the purge execution in order to verify no unexpected revision is selected for its removal.
  7050. == CMD_USAGE_PURGE_EXECUTE ==
  7051. Usage:
  7052. cm ^purge ^execute <purge_guid> [--^server=<server>]
  7053. Options:
  7054. --^server Allows to specify the server where purge actions
  7055. will be executed.
  7056. purge_guid The GUID returned by the "cm ^purge ^register" command.
  7057. == CMD_HELP_PURGE_EXECUTE ==
  7058. Examples:
  7059. cm ^purge ^execute be5b9145-1bd9-4c43-bd90-f2ff727bbf13
  7060. (Executes a purge given its ID).
  7061. cm ^purge ^execute be5b9145-1bd9-4c43-bd90-f2ff727bbf13 --^server=myorg@cloud
  7062. (You can specify a precise server if you need it).
  7063. == CMD_DESCRIPTION_PURGE_SHOW ==
  7064. Provides a report of the purge status and contents.
  7065. == CMD_USAGE_PURGE_SHOW ==
  7066. Usage:
  7067. cm ^purge ^show <purge_guid> [--^verbose | --^server=<server>]
  7068. Options:
  7069. --^server Allows to specify the server where purge actions
  7070. will be queried.
  7071. --^verbose Extends the report to include the items and revisions
  7072. involved in the purge.
  7073. purge_guid The GUID returned by the "cm ^purge ^register" command.
  7074. == CMD_HELP_PURGE_SHOW ==
  7075. Examples:
  7076. cm ^purge ^show be5b9145-1bd9-4c43-bd90-f2ff727bbf13
  7077. (Provides a brief report of the purge status)
  7078. cm ^purge ^show be5b9145-1bd9-4c43-bd90-f2ff727bbf13 --^verbose
  7079. (Provides additional information per purged extension,
  7080. including items and revisions)
  7081. cm ^purge ^show be5b9145-1bd9-4c43-bd90-f2ff727bbf13 --^server=myorg@cloud
  7082. (You can specify a different server if you wish)
  7083. == CMD_DESCRIPTION_PURGE_HISTORY ==
  7084. Allows the user to check the state of all the purges registed in the server at some point.
  7085. Also, it is useful to get information about them that are preserved for query purposes, such as the author, the date of execution or the storage size and the types affected by the purge.
  7086. == CMD_USAGE_PURGE_HISTORY ==
  7087. Usage:
  7088. cm ^purge ^history [--^verbose | --^server=<server>]
  7089. [--^sort=(^desc|^asc)]
  7090. [--^skip=<skip> | --^limit=<limit>]
  7091. Options:
  7092. --^server Allows to specify the server where purge actions
  7093. will be queried.
  7094. --^verbose By default, only the ID and the status is shown per
  7095. purge. This option includes more detailed information.
  7096. --^sort Specifies an ordering for purges shown in the result.
  7097. It can be descending (^desc) or ascending (^asc).
  7098. --^skip Specifies a number of entries to skip so they are not
  7099. reflected in the result.
  7100. --^limit Specifies the maximum number of entries to show at once.
  7101. == CMD_HELP_PURGE_HISTORY ==
  7102. Examples:
  7103. cm ^purge ^history
  7104. (Shows the ID and status for all purges ever registered in the server).
  7105. cm ^purge ^history --^server=stoltz@cloud
  7106. (You can override the server to use different one if needed).
  7107. cm ^purge ^history --^verbose
  7108. (Includes more detailed data associated to the shown purges).
  7109. cm ^purge ^history --^sort=^asc
  7110. (Shows the history starting from the oldest purges).
  7111. cm ^purge ^history --^skip=0 --^limit=20
  7112. cm ^purge ^history --^skip=20 --^limit=20
  7113. cm ^purge ^history --^skip=40 --^limit=20
  7114. (Instead of showing everything at once, you can paginate results).
  7115. == CMD_DESCRIPTION_PURGE_UNREGISTER ==
  7116. Purge actions can be deleted from the registry if you decide to not run them.
  7117. Remember that it is not possible to unregister purges that were already executed.
  7118. == CMD_USAGE_PURGE_UNREGISTER ==
  7119. Usage:
  7120. cm ^purge ^unregister <purge_guid> [--^server=<server>]
  7121. Options:
  7122. --^server Allows to specify the server where purge actions
  7123. will be queried.
  7124. purge_guid The GUID returned by the "cm ^purge ^register" command.
  7125. == CMD_HELP_PURGE_UNREGISTER ==
  7126. Examples:
  7127. cm ^purge ^unregister 545ec81b-23ea-462c-91f4-d7c62a6e8817
  7128. (purges that were not executed can be deleted from the registry)
  7129. cm ^purge ^unregister 545ec81b-23ea-462c-91f4-d7c62a6e8817 --^server=myorg@cloud
  7130. (you can specify a different server to unregister the purge)