$Jc5@srddklZlZlZlZddklZddklZl Z ddk Z ddk Z ddk Z ddk Z ddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddk Z ddk!Z!ddk"Z"ddk#l$Z$ddk%Z&ddk'Z'dZ(dZ)dZ*d Z+ddd Z-ddddddddd Z.dd Z/e0e0d Z1ddZ2dZ3ddZ4dZ5dZ6dZ7ddZ8ddZ9ddZ:ddZ;dZ<dZ=ddZ>ddZ?ddZ@d ZAdd!ZBd"ZCd#ZDd$ZEd%ZFd&ZGd'ZHd(ZId)ZJd*ZKd+ZLde0d,ZMddddddd-ZNd.ZOd/d0ZPdd1ZQd2ZRd3ZSddd4ZTdd5Z%dd6ZUdd7ZVdd8ZWd9ZXd/d:ZYdd;ZZd<Z[d=Z\d>Z]d?Z^d@Z_dAZ`dBZadCZbdDZcdEZddFZedGZfdHZgdde0de0dIZhdJZidKZjdLdMdedNfddOdedPfdQdRdedSfdTdUdedVfdWdXdedYfddZged[fdd\ded]fdd^ded_fdd`eiedafddbeikedcfddddedefddfdedgfddhdedifddjdedkfdldmdednfgZldodpdedqfgZmdrdsdedtfddudedvfgZndwdxgedyfdzd{ged|fgZod}d~dedfdddedfgZpdddedfdddedfgZqdddedfdddedfgZrdddedfdddedfdddedfdddedfgerZsdddedfdddedfdddedfgZtdddedfdddedfdddedfdddedfdddedfgZudddedfgZvhe(eoemedfd<e)eveoemedfd<e*dddedfdddedfdddedfdddedfdddedfdoddedfdddedfdddedfgeoedfd<e+dddedfdddedfdddedfdddedfgeoedfd<e-dddedfdddedfdddedfgeoepeqedfd<e.dde0edfdde0edfdde0edfdde0edfdddedfdde0edfgedfd<e/dddedfdddedfgedfd<e1dde0edfdde0edfgedfd<e2dddedfddgedfddgedfdddedfdddedfgenedfd<e3dddedfdddedfdddedfgeoedfd<e4dddedfddgedfdddedfdddedfgenedfd<e5ddded fdd ded fgeoepeqedfd <e6dd dedfdddedfgeoemedfd<e7gedfd<e<gfd<e8gedfd<e9dddedfgedfd<eBdrddedfgedfd<eAgedfd <e:ged!fd"<eCged#fd$<eDged#fd%<eEgfd&<e;ddded'fged(fd)<eFddded*fged+fd,<e>ged-fd.<e?ddded/fged0fd1<e@ddded2fged(fd3<eGeoedfd4<eHddged5fdd6ded7fgeteueoed8fd9<eIdddedfdd:ded;fgeted<fd=<eJgeoedfd><eKd?d@dedAfdddedBfdddedCfdDdEdedFfddGdedHfdoddedIfddgedJfdddedfdddedfg eoedKfdL<eLdddedMfdde0edNfdde0edOfgeredPfdQ<eMgedRfdm<eNdddedSfdodTdedUfdDdVdedWfdddedXfddYdedZfged[fd\<eOdd]d^ed_fddded`fdddedafddbdedcfddddedefddfdedgfgepeqevedhfdi<ePdddedfdodjdedkfdddedlfddgedmfgesenednfdo<eQenedpfdq<eRdddedrfd?d@dedsfddtdedufgeoedvfdw<eSdddedCfddxdedyfdddedzfdd{ded|fd}d~gedfddgedfdddedfd}ddedfddgedfddgedfddgedfg eseoedfd<eTdddedfgedfd<e%dddedfdddedfdddedfgedfd<eUdddedfddgedfdodjdedkfgesenedfd<eVdddedfgeredfd<eWgedfd<eYdddedfdddedfddgedmfgenedfd<eZdddedfddgedfgenedfd<e[gfd<e\dd dedfdddedfgeoedfd<e]dd dedfdddedfgeoemedfd<e^dddedfdddedfd}ddedfdddedfgeoedfd<e_dddedfdddedfdddedfdddedfgeoemedfd<e`gfd<eagfd<ebdddedfdddedfdddedfdddedfdddedfdddedfdddedfdoddedfdddedfdddedfdddedfdddedfdddedfdddedfdddedfged0fd<e=dddedfgedfd<ecdddedfd}ddedfdddedfdddedfdddedfdddedfdddedfdDddedfdoddedfdd{dedfd?d@dedsfddgedfg eoedfd<eddddedfdddedfdddedfdddedfd}d~dedfgeqedfd<eegfdY<efdddedfdddedfgeredfd<egdddedfgedfd<ehdddedfdddedfdddedfddded5fgedfd<eigfd<ejgfdj&ss adding %s tdry_runii(tcmdutiltmatchR twalktexacttdirstateRtverbosetstatusRtreltgettaddtfiles( tuitrepotpatstoptstexactstnamestmtfRt_[1]((R R s./mercurial/commands.pyRs   ,Ic Osy t|idpd}Wn(tj otitdnX|djp |djotitdnti|||d|dS(s|add all new files, delete all missing files Add all new files and remove all missing files from the repository. New files are ignored if they match any of the patterns in .hgignore. As with add, these changes take effect at the next commit. Use the -s/--similarity option to detect renamed files. With a parameter greater than 0, this compares every removed file with every added file and records those similar enough as renames. This option takes a percentage between 0 (disabled) and 100 (files must be identical) as its parameter. Detecting renamed files this way can be expensive. t similarityissimilarity must be a numberids$similarity must be between 0 and 100gY@(tfloatRt ValueErrortutiltAbortRRt addremove(RRRRtsim((s./mercurial/commands.pyR(2s cs^io tiptitifd}|ptitdndfdfddfddfd |fd d fg}|id oA|id o0|id  o|id  od |dtTrueRtreverttcommitRttipRr(RRR2R0RR*top1top2tatp1tp2RXRiRxt revert_optst commit_optsRq((Rs./mercurial/commands.pytbackoutsl             # &#c  sufd} tfd} |dijo_itd||d } }}| djo tq| djo tqtnD|p#t|djotitdno;id } t i i | ot i | nd Snt i}|oti|}|d jotitd |nd}zJxC|o;ti|g}|d jo d }nr|djo d}n[|djotitd|n1|djotitd|nd}|pd}||i|iitd|||f| |dtt ii|\}}titi|ddtqWWd t i|X| || Sni|pd}o|di|n9o|di|no|d i|nt i|| |pd Snt ii|\}}|djo| |nt|djpt|d}d\}}x'||jo|d|d}}qWii |}i!td|t"|||f| p!titi|Snd S(ssubdivision search of changesets This command helps to find changesets which introduce problems. To use, mark the earliest changeset you know exhibits the problem as bad, then mark the latest changeset which is free from the problem as good. Bisect will update your working directory to a revision for testing (unless the -U/--noupdate option is specified). Once you have performed tests, mark the working directory as good or bad, and bisect will either update to another candidate changeset or announce that it has found the bad revision. As a shortcut, you can also use the revision argument to mark a revision as good or bad without checking it out first. If you supply a command, it will be used for automatic bisection. Its exit status will be used to mark revisions as good or bad: status 0 means good, 125 means to skip the revision, 127 (command not found) will abort the bisection, and any other non-zero exit status means the revision is bad. cstih}t|djoJ|oitdnitd|i|dnT|oitdnitdx|D]}|i|qWdS(NisThe first good revision is: sThe first bad revision is: isCDue to skipped revisions, the first good revision could be any of: sBDue to skipped revisions, the first bad revision could be any of: (Rtshow_changesetRERARtshow(tnodestgoodt displayerRS(RR(s./mercurial/commands.pyt print_result#scs|d p |d ohpppo|odSn|dptitdqtitdntS(NRR s'cannot bisect (no known good revisions)s&cannot bisect (no known bad revisions)(R&R'RR~(tstatet interactive(tresetRtskipR (s./mercurial/commands.pyt check_state7s# sgood bad reset inits)(use of 'hg bisect ' is deprecated) RR isincompatible argumentss bisect.stateNscannot find executable: %si}Riisfailed to execute %ss %s killedt.sChangeset %d:%s: %s RRjis=Testing changeset %d:%s (%d changesets remaining, ~%d tests) (ii(#R~tsplittwarnRR>tboolR&R'RGR^R4texiststunlinkthbisectt load_statetfind_exet subprocesstcallRR2RR{tbisectRpRRtRyRzt save_stateRuREtAssertionErrorR0RAR(RRR0textratcommandRRR RtnoupdateRRtcmdRXRt commandpatht changesetsRt transitionRMRR2tteststsize((RRRRR Rs./mercurial/commands.pyR s      *          #     cKs,|idoE|didi}|ii||itd|n|o|id od||ijoQ|g}|iD]}||iq~jot i tdqn|iit i ||itd|n$|i dt i|iidS( sset or show the current branch name With no argument, show the current branch name. With one argument, set the working directory branch name (the branch will not exist in the repository until the next commit). Standard practice recommends that primary development take place on the 'default' branch. Unless -f/--force is specified, branch will not let you set a branch name that already exists, even if it's inactive. Use -C/--clean to reset the working directory branch to that of the parent of the working directory, negating a previous branch change. Use the command 'hg update' to switch to an existing branch. Use 'hg commit --close-branch' to mark this branch as closed. Rzis%reset working directory to branch %s tforcesBa branch of the same name already exists (use --force to override)s&marked working directory as branch %s s%s N(RR>RvRxRR|RRt branchtagsR&R'tencodingt fromlocalRAttolocal(RRtlabelRR"RX((s./mercurial/commands.pyRxs$4c s|iotpt}g}iD] }|ti|iq(~fd}tg}ii D]1\} } ||| | i i | | fq}~dt } x| D]\} } } | p| o|i o|id| qi| } | o d}n;| i| dtjo|pqnd}nd}t| idti| }| ||| |f}|id |qqWd S( slist repository named branches List the repository's named branches, indicating which ones are inactive. If -c/--closed is specified, also list branches which have been marked closed (see hg commit --close-branch). If -a/--active is specified, only show active branches. A branch is considered active if it contains repository heads. Use the command 'hg update' to switch to an existing branch. cs2|j}|i|dtj}|o|S(Ntclosed(t branchheadsR{(ttagR2trealheadtopen(tactivebranchesR(s./mercurial/commands.pyt testactives treverses%s tRs (closed)s (inactive)is %s %s:%s%s N(t debugflagRRtheadsRRRxtsortedRtitemsRpR0R~R:RARuRR{R/trjusttcolwidth(RRtactiveRthexfuncR"RSRRRRR2tbranchestisactivethntnoticeR0R@((RRs./mercurial/commands.pyRs. 3 J    "c Ks|idpd}|o.g}|D]}||i|q(~}n|ido dg}n|id}|ou|otitdng} |D]}| |i|q~ }g} ttf} x'|D]} | i|i i | qW|ot |} n|i i } h}x.| o| i d} g}|i i| D]}|| jo ||qcqc~}t|djo| id| q6x6|D].}||jod||<| i|qqWq6Wnrti|i|pd|pd |\}}}titi|||}|i|d |id } |o|i| |d }n|i| d }|id d i}hdd<dd <dd<}|i|}|tijotitdnti|||dS(screate a changegroup file Generate a compressed changegroup file collecting changesets not known to be in another repository. If no destination repository is specified the destination is assumed to have all the nodes specified by one or more --base parameters. To create a bundle containing all changesets, use -a/--all (or --base null). You can change compression method with the -t/--type option. The available compression methods are: none, bzip2, and gzip (by default, bundles are compressed using bzip2). The bundle file can then be transferred using conventional means and applied to another repository with the unbundle or pull command. This is useful when direct push and pull are not available or when exporting an entire repository is undesirable. Applying bundles preserves all changeset contents including permissions, copy/rename information, and revision history. R0Rktnulltbases4--base is incompatible with specifying a destinationiis default-pushtdefaultRtbundleRYtbzip2tHG10UNtnonetHG10BZtHG10GZtgzips)unknown bundle type specified with --typeN(RR>RuR&R'RtsetRtupdateRpt reachabletlistRtpopRvREtinsertRRytparseurlt expandpatht repositoryRtremoteuit findoutgoingtchangegroupsubsett changegrouptlowert bundletypest writebundle(RRtfnameRfRtrevsR"R0RRRtothasRStvisittseenRWRXRvtcheckouttothertcgt bundletypetbtypes((s./mercurial/commands.pyRsT. * >  /!c Os||id}d}ti||f||}x|i|D]y}ti||id|id|} ||i} |ido|i|| } n| i| d}qEW|S(sYoutput the current or given revision of files Print the specified files as they were at the given revision. If no revision is given, the parent of the working directory is used, or tip if no revision is checked out. Output may be to a file, in which case the name of the file is given using a format string. The formatting rules are the same as for the export command, with the following additions:: %s basename of file being printed %d dirname of file being printed, or '.' if in repository root %p root-relative path name of file being printed R0itoutputtpathnametdecodei( RRRRt make_fileR2R@t wwritedataRA( RRtfile1RRRMterrR RNtfpR@((s./mercurial/commands.pytcat/s*  c Ks`titi||||d|idd|idd|idd|id dS(smake a copy of an existing repository Create a copy of an existing repository in a new directory. If no destination directory name is specified, it defaults to the basename of the source. The location of the source is added to the new repository's .hg/hgrc file, as the default to be used for future pulls. If you use the -r/--rev option to clone up to a specific revision, no subsequent revisions (including subsequent tags) will be present in the cloned repository. This option implies --pull, even on local repositories. By default, clone will check out the head of the 'default' branch. If the -U/--noupdate option is used, the new clone will contain only a repository (.hg) and no working copy (the working copy parent is the null revision). See 'hg help urls' for valid source format details. It is possible to specify an ssh:// URL as the destination, but no .hg/hgrc and working directory will be created on the remote side. Please see 'hg help urls' for important details about ssh:// URLs. For efficiency, hardlinks are used for cloning whenever the source and destination are on the same filesystem (note this applies only to the repository data, not to the checked out files). Some filesystems, such as AFS, implement hardlinking incorrectly, but do not report errors. In these cases, use the --pull option to avoid hardlinking. In some cases, you can clone repositories and checked out files using full hardlinks with :: $ cp -al REPO REPOCLONE This is the fastest way to clone, but it is not always safe. The operation is not atomic (making sure REPO is not modified during the operation is up to you) and you have to make sure your editor breaks hardlinks (Emacs and most Linux Kernel tools do so). Also, this is not compatible with certain extensions that place their metadata under the .hg directory, such as mq. tpulltstreamt uncompressedR0RRN(RytcloneRRR(RtsourceRfR((s./mercurial/commands.pyRJs .c sh|idodd %s N( RRt_mapRREttimetstrftimet localtimeRAtcopiesRtcopied( RRtnodatesttimestrtshowdatetfile_tentt locale_lentmodeR!((s./mercurial/commands.pyt debugstateQs" ! # ,cCs|djo d}nxbt||iiD]G\}}|id||id|d|id|dq1WdS(NRspath %s s source %s is revision %s i(R>RtsubstateRRA(RRR0tkR9((s./mercurial/commands.pytdebugsubfs   cCstititidt|d d}y#|i|i|i|Wn,t j o ti t d|nXdS(s)dump the contents of a data file revisionRis.isinvalid revision identifier %sN( RR&RR^RR{RAtrevisionRutKeyErrorR'R(RRLR0R ((s./mercurial/commands.pyt debugdatans /#cKs|doti|ti}nti|}|id||idti||o.ti|}|id||dndS(sparse and display a datetextendedsinternal: %s %s s standard: %s s match: %s iN(R&RstextendeddateformatsRAR<t matchdate(RR*trangeRtdR ((s./mercurial/commands.pyt debugdatevs cCstititidt|}|idx|D]}|i|}y|i|}Wnt t g}nX|id||i ||i ||i ||i |t|t|dt|dfq;WdS(s"dump the contents of an index fileRsE rev offset length base linkrev nodeid p1 p2 s"% 6d % 9d % 7d % 6d % 7d %s %s %s iiN(RR&RR^RR{RAR2RvRtstarttlengthRtlinkrevR(RRLR RR2tpp((s./mercurial/commands.pyt debugindexs'  3cCstititidt|}|idx|D]}|i|}|i|}|id|i |d|f|dt jo(|id|i |d|fq;q;W|iddS(s(dump an index DAG as a graphviz dot fileRs digraph G { s %d -> %d iis} N( RR&RR^RR{RAR2RvR0R(RRLR RR2R`((s./mercurial/commands.pyt debugindexdots' $,cCsd}d}|itdtiytidWnFtij o7}|id||itd|d7}nX|itdy(d d k}d d k}d d k }WnVt j oJ}|id||itd |itd |d7}nX|itd y&d d k }|i |i dWnCt j o7}|id||itd|d7}nX|itdd}d} d} || } t i| d | d tii| tii| } || } h}y,ti| |dtii| d|WnPtij oA}|itd|idt|d|d7}nXt|tii| gjo!|itd|d7}nt| i} | | jo!|itd|d7}n|oA|iddo|itdqY|itdn||7}ti| ti| |itd|i}ti|pti|id}|po|djo*|itd |itd!q;|itd"||itd!|d7}n|itd#tiid$}|d jo|idd%}n|d jotiid&}n|p.|i d|i!|itd'n|p|itd(n|itd)||S(*stest Mercurial installationcSsEtidd\}}ti|d}|i||i|S(NRZshg-debuginstall-twb(ttempfiletmkstempR^tfdopenRAR(tcontentstfdR;R!((s./mercurial/commands.pyt writetemps   isChecking encoding (%s)... ttests %s s* (check that your locale is properly set) isChecking extensions... iNs* One or more extensions could not be founds* (check that you compiled the extensions) sChecking templates... smap-cmdline.defaults5 (templates seem to have been installed incorrectly) sChecking patch... s1 2 3 4 s1 2 3 insert 4 tcwdRs patch call failed: R9s s unexpected patch output! s patch test failed! Rtpatchse (Current patch tool may be incompatible with patch, or misconfigured. Please check your .hgrc file) sY Internal patcher failure, please report this error to http://mercurial.selenic.com/bts/ sChecking commit editor... tvis0 No commit editor set and can't find vi in PATH s. (specify a commit editor in your .hgrc file) s Can't find editor '%s' in PATH sChecking username... tHGUSERtusernametEMAILs) (specify a username in your .hgrc file) sNo problems detected s1%s problems detected, please check your install! ("RRRRR&R'RAtbdifftmpatchtbase85t Exceptiont templatert templatepathtmdifftunidiffR>R^R4RcRltdirnameR/RRtreadtconfigRt geteditorRRtenvironRRRo(RRitproblemstinstRqRrRsRut patchproblemsRtbtfaR[RhRRRtcmdpathR,((s./mercurial/commands.pyt debuginstalls (  ! ,"     )     c Os||id}ti||f||}x|i|D]}||}|ii|i} |i|} | o2|it d| | dt | dfq?|it d| q?WdS(sdump rename informationR0s%s renamed from %s:%s iis%s not renamed N( RRRRtfilelogtrenamedtfilenodeRRARR( RRRRRRMR RNRORR((s./mercurial/commands.pyt debugrename s 2c Osti|||}t|i|}|pdSndtg}|D]}|t|qJ~tg}|D]}|t|i|qt~f} xX|D]P}| ||i||i|odpdf} |id| i qWdS(s&show how files match on given patternsNsf %%-%ds %%-%ds %%sRRs%s ( RRRRRCRERRRAtrstrip( RRRRR RR"RNRRtfmttline((s./mercurial/commands.pyt debugwalks*:3c Os|id}|id}|o&|otd}ti|nM|o-|i|}||idi}nti||\}}ti |||} t i |||d| dt i ||} x| D]} |i | qWdS(sdiff repository (or selected files) Show differences between revisions for the specified files. Differences between files are shown using the unified diff format. NOTE: diff may generate unexpected results for merges, as it will default to comparing against the working directory's first parent changeset if no revisions are specified. When two revision arguments are given, then changes are shown between those revisions. If only one revision is specified then that revision is compared to the working directory, and, when no revisions are specified, the working directory files are compared to its parent. Without the -a/--text option, diff will avoid generating diffs of files it detects as binary. With -a, diff will generate a diff anyway, probably with undesirable results. Use the -g/--git option to generate diffs in the git extended diff format. For more information, read 'hg help diffs'. R0tchanges2cannot specify --rev and --change at the same timeiRRN(RRR&R'RuRvR2RtrevpairRRltdifftdiffoptsRA( RRRRRRtmsgtnode2tnode1R tittchunk((s./mercurial/commands.pyR(s -c Os|ptitdnti||}t|djo|itdn|itdti||d|i dd|i ddti ||d S( sGdump the header and diffs for one or more changesets Print the changeset header and diffs for one or more revisions. The information shown in the changeset header is: author, changeset hash, parent(s) and commit comment. NOTE: export may generate unexpected diff output for merge changesets, as it will compare the merge changeset against its first parent only. Output may be to a file, in which case the name of the file is given using a format string. The formatting rules are as follows:: %% literal "%" character %H changeset hash (40 bytes of hexadecimal) %N number of patches being generated %R changeset revision number %b basename of the exporting repository %h short-form changeset hash (12 bytes of hexadecimal) %n zero-padded sequence number, starting at 1 %r zero-padded changeset revision number Without the -a/--text option, export will avoid generating diffs of files it detects as binary. With -a, export will generate a diff anyway, probably with undesirable results. Use the -g/--git option to generate diffs in the git extended diff format. See 'hg help diffs' for more information. With the --switch-parent option, the diff will be against the second parent. It can be useful to review a merge. s&export requires at least one changesetisexporting patches: sexporting patch: ttemplateRt switch_parentRN( R&R'RRtrevrangeREtnoteRltexportRR(RRRRR((s./mercurial/commands.pyRRs"cOsD|ptitdnti|||}|id|dt}t|d|d|d|d}xe|iD]W}||i joAt i i |i | o$|itd|i |qqWxM|D]E}|ip|i| o$|itd |i |qqW|i|d td S( sbforget the specified files on the next commit Mark the specified files so they will no longer be tracked after the next commit. This only removes files from the current branch, not from the entire project history, and it does not delete them from the working directory. To undo a forget before the next commit, see hg add. sno files specifiedRRziiiis+not removing %s: file is already untracked s removing %s RN(R&R'RRRRR~RRRR^R4tisdirRRRRtremoveR{(RRRRR tstforgetR!((s./mercurial/commands.pyRs ( -(c!sd} ido|tiO}nyti||Wn0tj o$} itd|dSnXd\ idodnti i }fdd t fd Yhh}fd } d  fd } h} h} ti fdt i | \} }t} id}x>| D]6\}}}|djoi| iqz|djo|}|id}|i}i|hi|h| i|g}x|D]Z}||}y|i|}Wntij o qnX|i|}|o|o|d}|o||i|h|t get_opcodestxrange( RRtsmRtalotahitblotbhiR((s./mercurial/commands.pytdifflinestatess$    c sio tipti}t}h}ido||}n(g}|D]} |d| fqW~}xC|D];\} } |t|g} ido| it| inido| i| nido$| ii |dnido!| i||dnido.||f} | |joqznd|| R&t lrucachefunctfiletobjectR=RtwalkchangerevsR{tclearRvR0RRR3t LookupErrorRR~Rthas_keyRzR(!RRtpatternRRtreflagsRtgetfileRGRRRtrevfilest changeiterRgRR3tstR0tfnsRMtpctxRiRRtflogtfnodeRHR}tpfnRRR (( RRRRRRRRRRRs./mercurial/commands.pytgreps    !           %  cOs9|ido|i|d}nd }|id}|idd }}|p3|otitdn|i|}nd|o|i|}ng}t} x7|D]/} || i} | | joqn| i | |i | |d|} | p|idp|i td| q| | jo-|i td| | |idfq|i td| |idfn|o6g} | D]}||jo | |qq~ } n|i | qW|pdSnt i|||}x|D]}|i||qWd S( s show current repository heads or show branch heads With no arguments, show all repository head changesets. Repository "heads" are changesets that don't have child changesets. They are where development generally takes place and are the usual targets for update and merge operations. If one or more REV is given, the "branch heads" will be shown for the named branch associated with that revision. The name of the branch is called the revision's branch tag. Branch heads are revisions on a given named branch that do not have any descendants on the same branch. A branch head could be a true head or it could be the last changeset on a branch before a new branch was created. If none of the branch heads are true heads, the branch is considered inactive. If -c/--closed is specified, also show branch heads marked closed (see hg commit --close-branch). If STARTREV is specified only those heads (or branch heads) that are descendants of STARTREV will be displayed. R0RRs)you must specify a branch to use --closeds"no open branch heads on branch %s s<no changes on branch %s containing %s are reachable from %s s.no changes on branch %s are reachable from %s iN(RRuR>R3R'RRRRxRRRtextendRRR(RRt branchrevsRR]Rt hideinactivet_headsRt visitedsett branchrevRxtbheadsR"tbheadRRS((s./mercurial/commands.pyRJsJ    6csgtidfdfd}dfdfd}fd}oxdjokd}xM|||fD]<}y|d}PWqtij o}|}qXqW|o |q|nsipotnitdid djotd } n td } | g} xD]\} } | i d | dfx| D]\} }}}d |joi oqn| i d| od| |od|fd||otd|pdffqWqWpi tdg}xmt i D]b\}} }g}|D]|t  fq~}|i|i |dd| fqkWtg}|D]}|t |dq~}x2|D]&\}}i d|||fq Wn| otg}| D]&}|do|t |dqLqL~pdg}xd| D]X\}}|o4ti||d}i d|||fqi d|qWndS(sshow help for a given topic or a help overview With no arguments, print a list of commands with short help messages. Given a topic, extension, or command name, print help for that topic.icsioGitdtfdjoitdd fqnndjotd}n>|o&tdo dpd}ntd}i|d fdS( Nsglobal options:t shortlists+use "hg help" for the full list of commandssBuse "hg help" for the full list of commands or "hg -v" for detailss5use "hg -v help%s" to show aliases and global optionsR9Rs*use "hg -v help %s" to show global options(((RRRR(RR(R;t option_listsR(s./mercurial/commands.pyt addglobaloptss    c sotidnyti|tt\}}WnKtij o<}|idfd}t d|dSnXt |djoP|di doid|dqid|d|dfnid |di o;t |d jo(it d d i |d nt|di}|pt d }ni o|id}nidti|i p:|d o!it d|d fntndS(Ns ics|idiS(R(tlstript startswith(R (RZ(s./mercurial/commands.pyR sslist of commands: iRys%s s hg %s %s shg %s is aliases: %s s, s(no help text available)s %s s options: (tversion_RARRRR{R3tAmbiguousCommandRRRERR:RGRt__doc__t splitlinestminirsttformatR(R;RRRtselecttdoc(t textwidthRt with_versionRthelplistR(RZs./mercurial/commands.pythelpcmds6   #(   !c sh}h}xUtiD]G\}}|iddd}|o|| oqn| o(djo|ditjoqndjo|id oqn|id}i o|idoqn|di}|od|joi oqnt |}|pt d}n|i di ||<|id||R3RRRRRRRAR RREtsortRCR (RR;RRRR"RR!RRt opt_outputttitleRtshortopttlongoptRtdescttopicsRRR"RRRt topics_lenRRWRtopts_lentfirsttsecond((RRRRRR;Rs./mercurial/commands.pythelp_sx+/       . 1 "J c Cs| o!| otitdn|iotpt}|p|p |p| } g} g} |o:ti|i|g\}} } ti ||}n|i pr| o| o| d}n|p d}n|p|p|otidn||i |g} no|p|d } | i }t}| p|p|o| i| i}n| p|oUddig}|D]}|||iq~|odpdfg} n|oY| iddig}|D]}|t|iq~|odpdfqnV||} | p|o|| ig} n|o| it| in|i oz| os|i ohti| i}|djo| id |nd i| i}|o| i|qn|o | iti| in|o| i| in|id d i| d S(sidentify the working copy or specified revision With no revision, print a summary of the current state of the repository. Specifying a path to a repository root or Mercurial bundle will cause lookup to operate on that repository/bundle. This summary identifies the repository state using one or two parent hash identifiers, followed by a "+" if there are uncommitted changes in the working directory, a list of tags for this revision and a branch name for non-default branches. s5There is no Mercurial repository here (.hg not found)iRs3can't query remote revision number, branch, or tagss%s%sRRRs(%s)t/s%s R9N(R&R'RRRRRyRRRtlocalRuR>RvR{RtdeletedRGR2RR/R0R:RRRxttagsRRA(RRRR0tnumtidRxR3RRRRRRMRvtchangedR"RXRRRR((s./mercurial/commands.pytidentifyds^$     6<!   cOs|f|}|id}|oti||dRtlockR^R4RGRRatstdinturlRRltextractt logmessageRR7RvRuRRR2RyRzRR?R3t RepoErrorR|R`t updatedirt matchfilesRRtrollbackRARR(RRtpatch1tpatchesRR*R)R[RRR;RXtpfR@ttmpnameRmR,RxtnodeidRRtcmdline_messagetwpRR RS((s./mercurial/commands.pytimport_s!  !               RcKsKti|}ti|i||id\}}}titi|||}|it dt i ||o.g}|D]} ||i | q~}n|i |d|d|d\} } } | p:yti|dWnnX|it ddSnd} z|d}|p|i o|djo|ido | }n|djo|i| d }n|i| |d }|iod pd }ti|||}} |do d} n|ipti||i|}qn|ii| |d }|id o|inti|||}d }x|D]}||joPng}|ii|D]}|tjo ||qq~}|idot|djoqmn|d7}|i ||qmWWdt!|do|i"n| oti| nXdS(sshow new changesets found in source Show new changesets found in the specified path/URL or the default pull location. These are the changesets that would have been pulled if a pull at the time you issued this command. For remote repository, using --bundle avoids downloading the changesets twice if the incoming is followed by a pull. See pull for valid source format details. R0scomparing with %s RRRsno changes found iRtincomingRRit newest_firstt no_mergesiNR(#RtloglimitRyRRRRRRRR=t hidepasswordRutfindcommonincomingR^RR>R1tcapableRRRt bundlerepotbundlerepositoryR`Rpt nodesbetweenRRRvRRERRR(RRRRtlimitRRRR"R0tcommonRLtrheadstcleanupRRRRRRRSRRRXRv((s./mercurial/commands.pyRL/s` - .        ># cKs&titi|||dddS(sWcreate a new repository in the given directory Initialize a new repository in the given directory. If the given directory does not exist, it will be created. If no directory is given, the current directory is used. It is possible to specify an ssh:// URL as the destination. See 'hg help urls' for more information. tcreateiN(RyRRR(RRfR((s./mercurial/commands.pytinitts c Os|idodpd}|idpd }d}ti|||dd}d|_x||i|D]}| o||ijoqtn|id o|i|i||n(|i|o|i |p||d }qtW|S( slocate files matching specific patterns Print files under Mercurial control in the working directory whose names match the given patterns. By default, this command searches all directories in the working directory. To search just the current directory and its subdirectories, use "--include .". If no patterns are given to match, this command prints the names of all files under Mercurial control in the working directory. If you want to feed the output of this command into the "xargs" command, use the -0 option to both this command and "xargs". This will avoid the problem of "xargs" treating single filenames that contain whitespace as multiple filenames. RRs R0iRtrelglobcSstS((R{(R R ((s./mercurial/commands.pyR stfullpathiN( RR>RRR RRRAtwjoinR( RRRRtendR0tretR RN((s./mercurial/commands.pytlocates ' cs-tifd}ti||||\}}ti|}d}|ido9|ido)tti|iddn thhfd} t } |doti |d} n|id} ti ||t |} x |D]\} }}| d jog}i i|D]}|tjo ||qSqS~}|id ot|d joq n|id ot|d joq n| o,||d d}|| joq qn| o,||}| |d dpq q4n|ido||}d}xg}|dD]}||iqh~D]_}||dijp4||dijp|di|dijp d}PqqW|oq qn|doR||}g}|dD]"}||djo ||qq~pq qTng}|idoW|oPxM||dD]7}| ||}|o|i||dfqqWn| iti|d|q | djo4||joPn| i|o|d7}q%q q WdS(sshow revision history of entire repository or files Print the revision history of the specified files or the entire project. File history is shown without following rename or copy history of files. Use -f/--follow with a filename to follow history across renames and copies. --follow without a filename will only show ancestors or descendants of the starting revision. --follow-first only follows the first parent of merge revisions. If no revision range is specified, the default is tip:0 unless --follow is set, in which case the working directory parent is used as the starting revision. See 'hg help dates' for a list of formats valid for -d/--date. By default this command prints revision number and changeset id, tags, non-trivial parents, user, date and time, and a summary for each commit. When the -v/--verbose switch is used, the list of changed files and full commit message are shown. NOTE: log -p/--patch may generate unexpected diff output for merge changesets, as it will only compare the merge changeset against its first parent. Also, only files different from BOTH parents will appear in files:. cs|iS((R1(R (R(s./mercurial/commands.pyR siRGR0ics|joh|(RR0tflRR2tlrR(tendrevtrcachetncacheR(s./mercurial/commands.pyt getrenameds*     R*t only_branchRRNit only_mergesiRxtkeywordiR9iR,RN(R&R=RRRORRCRRER{RYRR~RpRRRRGRRtcontextt changectxtflush(RRRRRRRgRVRRgtdft only_branchesRRR0RR"RXRvt revbranchtchangestmissRRtkwRRRWRGRtrename((RdReRRfs./mercurial/commands.pytlogsx! )   !##     ,     ; ## cCs|o |otitdn|p |}nhdd<dd<dd<}||}xv|D]n}|io%|idt|i|n|io|i||i|n|id |qjWd S( soutput the current or given revision of the project manifest Print a list of version controlled files for the given revision. If no revision is given, the first parent of the working directory is used, or the null revision if no revision is checked out. With -v, print file permissions, symlink and executable bits. With --debug, print file revision hashes. s please specify just one revisions644 @ RUs755 * R s644 Rs%40s s%s N( R&R'RRRARR*Rtflags(RRR2R0tdecorRMR!((s./mercurial/commands.pyR*"s  !  % cKsy|ido |otitdn|p|id}n|p_|idi}|i|}t|djo)titd|t|fn|i i d}t|djot|i djotitd|ntd}||i |dijotd |}nti|n||jotitd n||djo |d p|d}n|id o|d }||} |i | } | ig| ig} } ti|||} x8|iid| d| dD]}| i||q7WdSnti||d|idS(smerge working directory with another revision The current working directory is updated with all changes made in the requested revision since the last common predecessor revision. Files that changed between either parent are marked as changed for the next commit and a commit must be performed before any further updates to the repository are allowed. The next commit will have two parents. If no revision is specified, the working directory's parent is a head revision, and the current branch contains exactly one other head, the other head is merged with by default. Otherwise, an explicit revision with which to merge with must be provided. R0s please specify just one revisionis<branch '%s' has %d heads - please merge with an explicit reviis<branch '%s' has one head - please merge with an explicit revsthere is nothing to merges%s - use "hg update" insteadsMworking dir not at a head rev - use "hg update" or merge with an explicit revitpreviewRtrootsRRN(RR&R'RRlR>RxRRERRvRRuRwR2RRRpRURRyRr(RRR2RRxRRiRRRRWRyRR((s./mercurial/commands.pyRr<sB   *   cKsti|}ti|i|pd|pd|id\}}}|o.g}|D]}||i|q_~}ntiti|||} |i t dt i ||i | d|id} | p|i t ddSn|ii| |d} |id o| inti|||} d} x| D]} | |joPng}|ii| D]}|tjo ||qq~}|id ot|d joqYn| d7} | i|| qYWd S( sshow changesets not found in destination Show changesets not found in the specified destination repository or the default push location. These are the changesets that would be pushed if a push was requested. See pull for valid destination format details. s default-pushRR0scomparing with %s Rsno changes found iiRMRNiN(RRORyRRRRuRRRRR=RPRRpRURRRvRRER(RRRfRRVRRR"R0RRRRRSRRRXRv((s./mercurial/commands.pytoutgoingvs2 8.  ># c Ks|id}|o||}n |d}|o8ti||f|}|ipt|idjotit dn|id}g}xU|i D]G}|pqny|i |i |Wqt ij oqXqW|ptit d|n|i|} g} |D](} | |i| i| i| q8~ } n.g} |i D]}| |iq~~ } ti|||}x0| D](}|tjo|i||qqWdS(stshow the parents of the working directory or revision Print the working directory's parent revisions. If a revision is given via -r/--rev, the parent of that revision will be printed. If a file argument is given, the revision in which the file was last changed (before the working directory revision or the argument to --rev if given) is printed. R0is%can only specify an explicit filenameis'%s' not found in manifest!N(RR>RRtanypatsRERR&R'RRvRRR3RRRuR_R0R2RRR(RRRLRR0RMR t filenodestcpRbR"RRXRRRRS((s./mercurial/commands.pyRvs8  &  @- cCs|ojxL|idD];\}}||jo"|idti|dSqqW|itddSnAx=|idD],\}}|id|ti|fqWdS(s[show aliases for remote repositories Show definition of symbolic path name NAME. If no name is given, show definition of all available names. Path names are defined in the [paths] section of /etc/mercurial/hgrc and $HOME/.hgrc. If run inside a repository, .hg/hgrc is used, too. See 'hg help urls' for more information. tpathss%s Ns not found! is%s = %s (t configitemsRAR=RPRR(RRRR;R4((s./mercurial/commands.pyR~s     cCs|djodSn|oX|djpt|idjp|oti||Sqt|itdn|djo|itdn|itddS(Niis$not updating, since new heads added s3(run 'hg heads' to see heads, 'hg merge' to merge) s((run 'hg update' to get a working copy) (RERRyRRR(RRtmodheadst optupdateR((s./mercurial/commands.pyt postincomings - c Ksti|i||id\}}}titi|||}|itdt i ||ofy.g}|D]}||i |q~}Wqt i j o"td} ti| qXn|i|d|d|id} t||| |id|S(spull changes from the specified source Pull changes from a remote repository to a local one. This finds all changes from the repository at the specified path or URL and adds them to a local repository (the current one unless -R is specified). By default, this does not update the copy of the project in the working directory. Use hg incoming if you want to see what would have been added by a pull at the time you issued this command. If you then decide to added those changes to the repository, you should use pull -r X where X is the last changeset listed by hg incoming. If SOURCE is omitted, the 'default' path will be used. See 'hg help urls' for more information. R0spulling from %s sOOther repository doesn't support revision lookup, so a rev cannot be specified.RRR(RyRRRRRRRRR=RPRuR3tCapabilityErrorR&R'RR( RRRRRRRR"R0RR((s./mercurial/commands.pyRs- . $c Ks%ti|i|pd|pd|id\}}}titi|||}|itdt i ||o.g}|D]}||i |q~}n|d} | i } x3t | D]%} | i| i|idqW|i||idd|} | djS( spush changes to the specified destination Push changes from the local repository to the given destination. This is the symmetrical operation for pull. It moves changes from the current repository to a different one. If the destination is local this is identical to a pull in that directory from the current one. By default, push will refuse to run if it detects the result would increase the number of remote heads. This generally indicates the user forgot to pull and merge before pushing. If -r/--rev is used, the named revision and all its ancestors will be pushed to the remote repository. Please see 'hg help urls' for important details about ssh:// URLs. If DESTINATION is omitted, a default path will be used. s default-pushRR0spushing to %s RRRi(RyRRRRRRRRR=RPRuRQRtsubtpush( RRRfRRRRR"R0R tsubsRR ((s./mercurial/commands.pyR s8 .   #!cCs"|ioti|SndS(sroll back an interrupted transaction Recover from an interrupted commit or pull. This command tries to fix the repository status after an interrupted operation. It should only be necessary when Mercurial suggests it. i(trecoverRytverify(RR((s./mercurial/commands.pyR( s c s&|id|id}}| o!| otitdnti||||iddt}|d|d|d|d f\}}} } xeiD]W} | |i joAt i i i |  o$itd i | qqWfd } |o|| | |} }nk|o,| g} }| ||| td n8| | g} }| |td | |tdxWt| |D]E} ipi|  o$itdi | qqW|i||i| d| dS(sremove the specified files on the next commit Schedule the indicated files for removal from the repository. This only removes files from the current branch, not from the entire project history. -A/--after can be used to remove only files that have already been deleted, -f/--force can be used to force deletion, and -Af can be used to remove files from the next revision without deleting them from the working directory. The following table details the behavior of remove for different file states (columns) and option combinations (rows). The file states are Added [A], Clean [C], Modified [M] and Missing [!] (as reported by hg status). The actions are Warn, Remove (from branch) and Delete (from disk):: A C M ! none W RD W R -f R RD RD R -A W W W R -Af R R R R This command schedules the files to be removed at the next commit. To undo a remove before that, see hg revert. tafterRsno files specifiedRRziiiis#not removing %s: file is untracked cs;x4|D],}itdi||fqWdS(Ns3not removing %s: file %s (use -f to force removal) (RRR(RtreasonR!(R R(s./mercurial/commands.pyR\ ss still existss is modifiedshas been marked for adds removing %s RN(RR&R'RRRRR~RRR^R4RRRRRRRR(RRRRRRRtmodifiedtaddedR2RzR!RRR((R Rs./mercurial/commands.pyR5 s2. -( ( c OsA|it}z ti||||dtSWd|iXdS(srename files; equivalent of copy + remove Mark dest as copies of sources; mark sources for deletion. If dest is a directory, copies are put in that directory. If dest is a file, there can only be one source. By default, this command copies the contents of files as they exist in the working directory. If invoked with -A/--after, the operation is recorded, but no copying is performed. This command takes effect at the next commit. To undo a rename before that, see hg revert. RtN(RR{RR}R~R(RRRRR((s./mercurial/commands.pyRtr s cOsg}diD]}||i|q~\}}}} | o|p|p|o |otitdn|o |otitdn|p|p| p |p|ptitdnti|} ti|||} x| D]} | | o| o%|i d| | i | fq|o| i | dq|o| i | dq|d } | i d}|i| }ti||d | i| | |ti|d |d qqWd S( sretry file merges from a merge or update This command will cleanly retry unresolved file merges using file revisions preserved from the last update or merge. To attempt to resolve all unresolved files, use the -a/--all switch. If a conflict is resolved manually, please note that the changes will be overwritten if the merge is retried with resolve. The -m/--mark switch should be used to mark the file as resolved. This command also allows listing resolved files and manually indicating whether or not files are resolved. All files must be marked as resolved before a commit is permitted. The codes used to show the status of files are:: U = unresolved R = resolved sall mark unmark liststoo many options specifieds can't specify --all and patternssAno files or directories specified; use --all to remerge all filess%s %s R tuis.resolves.origN(RRR&R'Rtmerge_t mergestateRRRAtuppertmarkR>RvR^tcopyfiletresolveRt(RRRRR"RRkRtunmarkRtmsR R!twctxtmctxR((s./mercurial/commands.pyR s0<## % c#s+ doE dotitdnti d dRRR RRRRBRRDRRRHRtpathtoR~R{RRR^RRvt path_auditorR`RRtOSErrorRt normallookuptnormalR(#RRRRRiRR2tmftpmfRRRqRRtremovedR2RkR!tsrcRRRRtundeletet disptabletmfentryRRthitlisttmisslistt backuphitt backupmissRt audit_pathR(( RMRRNRRRRR RRs./mercurial/commands.pyR s"  !      &   * ( $     "             cCs|idS(s?roll back the last transaction This command should be used with care. There is only one level of rollback, and there is no way to undo a rollback. It will also restore the dirstate at the time of the last transaction, losing any dirstate changes since that time. This command does not alter the working directory. Transactions are used to encapsulate the effects of all commands that create new changesets or propagate existing changesets into a repository. For example, the following commands are transactional, and their effects can be rolled back:: commit import pull push (with this repository as destination) unbundle This command is not intended for use on public repositories. Once changes are visible for pull by other users, rolling a transaction back locally is ineffective (someone else may already have pulled the changes). Furthermore, a race is possible with readers of the repository; for example an in-progress pull from the repository may fail if a rollback is performed. N(RC(RR((s./mercurial/commands.pyRC scCs|i|iddS(ssprint the root (top) of the current working directory Print the root directory of the current repository. s N(RAR`(RR((s./mercurial/commands.pyR` sc s|doFd jotitdnti}|ino ipd}x|iD]{}|i|d obi d|t ||d j o4i jo$i i d|t ||qq{q{Wd jo-i dd otitdndt ffdY}|}ti|d|id |id S( sexport the repository via HTTP Start a local HTTP repository browser and pull server. By default, the server logs accesses to stdout and errors to stderr. Use the -A/--accesslog and -E/--errorlog options to log to files. tstdios5There is no Mercurial repository here (.hg not found)saname templates style address port prefix ipv6 accesslog errorlog webdir_conf certificate encodingtwebt webdir_conftservicecs&eZfdZdZRS(cstiti|_ipdSn|iio|iiidd}nd}d|ii}|djo d}n|ii }|djo d}nd|jod|}n|ii }d|jod|}ni t d |||||iifdS( NR0Rs:%ds:80s0.0.0.0t*Rs[%s]s-listening at http://%s%s/%s (bound to %s:%d) ( R&tset_signal_handlerRt create_serverthttpdRRZRtporttaddrtfqaddrRR(RRZRtbindaddrR(RRtbaseui(s./mercurial/commands.pyR[ s&          cSs|iidS(N(Rt serve_forever(R((s./mercurial/commands.pytrun s(RRR[R((RRR(s./mercurial/commands.pyR stinitfntrunfnN(R>R3R@Rt sshserverRRRRt setconfigR/RR{RRRR[R(RRRRtoptlistRR((RRRs./mercurial/commands.pytserve s$   ,!" cOsti||id\}}|o |ipd}|idodpd}h}di} g} | D]!} |i| o | | ququ~ } |ido*| |io| d d gp| 7} n| p#|io | d p| d } n|i||ti|||d | jd | jd | j} t| d | }|idp|ido|id o|t }||}||}| d}|djo| d| d}nxjt i ||||di D]B\} }| |jo||| RGRRAR(RRRRRRRkR_R}RR"RRRtstatt changestatestctxntctx1tctx2RR9RtcharRRR!((s./mercurial/commands.pyR sJ"! 5*#!1     #     c Osd}|f|}t|tt|jotitdnx8|D]0}|djotitd|qRqRW|ido)|idotitdn|ido|d}n|id }|ido|id od pd }x|D]}|i|ptitd |n|i||joG|d jotitd |qtitd|q q Wt}|pddi|}q1nV|idpExB|D]6}||i jotitd|qqWn| o3|i i dtjotitdn||i } |p#ddi|t | f}n|id} | oti| } n|i|| ||id |id| dS(sadd one or more tags for the current or given revision Name a particular revision using . Tags are used to name particular revisions of the repository and are very useful to compare different revisions, to go back to significant earlier versions or to mark branch points as releases, etc. If no revision is given, the parent of the working directory is used, or tip if no revision is checked out. To facilitate version control, distribution, and merging of tags, they are stored as a file named ".hgtags" which is managed similarly to other project files and can be hand-edited if necessary. The file '.hg/localtags' is used for local tags (not shared among repositories). See 'hg help dates' for a list of formats valid for -d/--date. Rstag names must be uniqueRRsthe name '%s' is reservedR0Rs#--rev and --remove are incompatibleRmR1tglobalstag '%s' does not existstag '%s' is not a global tagstag '%s' is not a local tagsRemoved tag %ss, Rs)tag '%s' already exists (use -f to force)is6uncommitted merge - please provide a specific revisionsAdded tag %s for changeset %sR*R,N(stipRsnull(RERR&R'RRttagtypeRRGR3RRvR2RRsR( RRtname1RRtrev_RSRmt expectedtypeR R*((s./mercurial/commands.pyRE sT  !  !" c Cs|iotpt}d}xt|iD]\}}|io|id|q0ny,||}d|ii||f}Wn t i j od|}q0Xddt i |}|i o*|i|djo d}qd}n|id ||||fq0Wd S( slist repository tags This lists both regular and local tags. When the -v/--verbose switch is used, a third column "local" is printed for local tags. Rs%s s%5d:%ss ?:%sR9iR1s locals %s%s %s%s N(RRRtreversedttagslistR:RARpR0R3RRRRR( RRRRRRSRR tspaces((s./mercurial/commands.pyR3 s$       cKs.ti|||i|t|ddS(sshow the tip revision The tip revision (usually just called the tip) is the changeset most recently added to the repository (and therefore the most recently changed head). If you have just made a commit, that commit will be the tip. If you have just pulled changes from another repository, the tip of that repository becomes the current tip. The "tip" tag is special and cannot be renamed or assigned to a different changeset. iN(RRRRE(RRR((s./mercurial/commands.pyR s c Os|f|}|i}zRxK|D]C}ti||}ti||}|i|dd|} q#WWd|iXt||| |iddS(sapply one or more changegroup files Apply one or more compressed changegroup files generated by the bundle command. tunbundlesbundle:NR( R;R=RRt readbundletaddchangegroupRRRR>( RRtfname1tfnamesRR;RR!tgenR((s./mercurial/commands.pyR s  ! cCs |o |otitdn|p |}n| oU|oN|d}|ip|ip |iotitdqn|o9|otitdnti|||}n|p|ot i ||Snt i ||SdS(s update working directory Update the repository's working directory to the specified revision, or the tip of the current branch if none is specified. Use null as the revision to remove the working copy (like 'hg clone -U'). When the working directory contains no uncommitted changes, it will be replaced by the state of the requested revision from the repository. When the requested revision is on a different branch, the working directory will additionally be switched to that branch. When there are uncommitted changes, use option -C/--clean to discard them, forcibly replacing the state of the working directory with the requested revision. Alternately, use -c/--check to abort. When there are uncommitted changes and option -C/--clean is not used, and the parent revision and requested revision are on the same branch, and one of them is an ancestor of the other, then the new working directory will contain the requested revision merged with the uncommitted changes. Otherwise, the update will fail with a suggestion to use 'merge' or 'update -C' instead. If you want to update just one file to an older revision, use revert. See 'hg help dates' for a list of formats valid for -d/--date. s please specify just one revisionsuncommitted local changess'you can't specify a revision and a dateN( R&R'RR>RRRRRRyRzR(RRR2R0RzR*tcheckR ((s./mercurial/commands.pyR s  'cCs ti|S(sPverify the integrity of the repository Verify the integrity of the current repository. This will perform an extensive check of the repository's integrity, validating the hashes and checksums of each entry in the changelog, manifest, and tracked files, as well as the integrity of their crosslinks and indices. (RyR(RR((s./mercurial/commands.pyR s cCs4|itdti|itddS(s(output version and copyright informations'Mercurial Distributed SCM (version %s) s Copyright (C) 2005-2009 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. N(RARR&tversionR(R((s./mercurial/commands.pyR s tRRs/repository root directory or symbolic path nameRkschange working directoryR tnoninteractives4do not prompt, assume 'yes' for any required answerstqR:ssuppress outputR9Rsenable additional outputR{sset/override config optionR7senable debugging outputtdebuggersstart debuggerRsset the charset encodingt encodingmodesset the charset encoding modet tracebacksprint traceback on exceptionRDstime how long the command takestprofilesprint command execution profileRs#output version information and exitRR sdisplay help and exitRSsdry-runs)do not perform actions, just print outputRtsshsspecify ssh command to uset remotecmds,specify hg command to run on the remote sideRtincludes)include names matching the given patternstXtexcludes)exclude names matching the given patternsR Rmsuse as commit messageRURnsread commit message from R[R*srecord datecode as commit dateRR,s&record the specified user as committertstylesdisplay using template map fileRsdisplay with templateRXRls show patchtgtgitsuse git extended diff formatRVs!limit number of changes displayedtMs no-mergessdo not show mergesRR7streat all files as textRIs#don't include dates in diff headerss show-functions%show which function each change is inR"signore-all-spaces'ignore white space when comparing linesRsignore-space-changes+ignore changes in the amount of white spacetBsignore-blank-liness(ignore changes whose lines are all blanktUtunifieds"number of lines of context to showRR#s-guess renamed files by similarity (0<=s<=100)s[OPTION]... [FILE]...s^addR(R R0sannotate the specified revisionR!R3sfollow file copies and renamesslist the author (long with -v)slist the date (short with -q)R.s"list the revision number (default)R R1slist the changesets line-numbers(show line number at the first appearances3[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...s^annotate|blames no-decodes"do not pass files through decodersRZs%directory prefix for files in archivesrevision to distributeRRYstype of distribution to creates[OPTION]... DESTReRrs,merge with old dirstate parent after backoutRis'parent to choose when backing out mergesrevision to backouts[OPTION]... [-r] REVRRsreset bisect stateRsmark changeset goodR smark changeset badRsskip testing changesetRs$use command to check changeset stateRsdo not update to targets[-gbsr] [-c CMD] [REV]RRs5set branch name even if it shadows an existing branchtCRzs'reset branch name to parent branch names [-fC] [NAME]RxRs+show only branches that have unmerged headsRsshow normal and closed branchess[-a]Rs,run even when remote repository is unrelateds0a changeset up to which you would like to bundleRs4a base changeset to specify instead of a destinationRks'bundle all changesets in the repositoryRsbundle compression type to uses1[-f] [-a] [-r REV]... [--base REV]... FILE [DEST]RRRs(print output to file with formatted namesprint the given revisionRs apply any matching decode filters[OPTION]... FILE...Rs:the clone will only contain a repository (no working copy)s0a changeset you would like to have after cloningRs"use pull protocol to copy metadataRs)use uncompressed transfer (fast over LAN)s[OPTION]... SOURCE [DEST]s^clonetAs9mark new/missing files as added/removed before committings close-branchs7mark a branch as closed, hiding it from the branch lists ^commit|ciRs'record a copy that has already occurreds+forcibly copy over an existing managed files[OPTION]... [SOURCE]... DESTscopy|cps[INDEX] REV1 REV2R R4s [COMMAND]RRsshow the command optionss[-o] CMDR!RWstry extended date formatss[-e] DATE [RANGE]R\sFILE REVRVs[PATH]R(tFILERaRbRsrevision to rebuild tos[-r REV] [REV]R+srevision to debugs [-r REV] FILERs REV1 [REV2]R@sdo not display the saved mtimes [OPTION]...RPsrevision to checkRSRRTRschange made by revisions)[OPTION]... [-r REV1 [-r REV2]] [FILE]...s^diffs switch-parentsdiff against the second parents#[OPTION]... [-o OUTFILESPEC] REV...s^exports^forgett0Rsend fields with NULsprint all revisions that matchsCfollow changeset history, or file history across copies and renamesRs ignore-casesignore case when matchingsfiles-with-matchess-print only filenames and revisions that matchsprint matching line numbersssearch in given revision ranges[OPTION]... PATTERN [FILE]...Rs,show only heads which are descendants of REVs4show only the active branch heads from open branchess#show normal and closed branch headss[-r STARTREV] [REV]...Rs[TOPIC]sidentify the specified revisionR4sshow local revision numberR5sshow global revision ids show branchR3s show tagss[-nibt] [-r REV] [SOURCE]s identify|idRis]directory strip option for patch. This has the same meaning as the corresponding patch options base paths.skip check for outstanding uncommitted changess no-commits/don't commit, just update the working directoryRs4apply patch to the nodes from which it was generateds import-branchs8use any branch information in patch (implied by --exact)s[OPTION]... PATCH...s import|patchs newest-firstsshow newest record firstsfile to store the bundles intos6a specific revision up to which you would like to pulls<[-p] [-n] [-M] [-f] [-r REV]... [--bundle FILENAME] [SOURCE]s incoming|ins![-e CMD] [--remotecmd CMD] [DEST]s^inits(search the repository as it stood at REVs*end filenames with NUL, for use with xargsR]s-print complete paths from the filesystem roots[OPTION]... [PATTERN]...Ras follow-firsts0only follow the first parent of merge changesetss!show revisions matching date specRGsshow copied filesRRRjs(do case-insensitive search for a keywords$show the specified revision or rangeRs*include revisions where files were removeds only-mergessshow only mergessrevisions committed by users only-branchs2show only changesets within the given named branchtPtprunes/do not display revision or any of its ancestorss[OPTION]... [FILE]s ^log|historysrevision to displays[-r REV]R*s&force a merge with outstanding changessrevision to mergeRxs1review revisions to merge (no merge is performed)s[-f] [[-r] REV]s^merges6a specific revision up to which you would like to pushs&[-M] [-p] [-n] [-f] [-r REV]... [DEST]s outgoing|outs(show parents from the specified revisions[-r REV] [FILE]s^parentss[NAME]R~Rs+update to new tip if changesets were pulleds9[-u] [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [SOURCE]s^pulls force pushs2[-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]s^pushRsrecord delete for missing filess2remove (and delete) file even if added or modifieds ^remove|rms)record a rename that has already occurreds[OPTION]... SOURCE... DESTs rename|mvsremerge all unresolved filesRs!list state of files needing mergeRsmark files as resolvedRsunmark files as resolvedRs*revert all changes when no arguments givenstipmost revision matching datesrevision to revert tos no-backups"do not save backup copies of filess[OPTION]... [-r REV] [NAME]...RRCR`t accesslogs#name of access log file to write totdaemonsrun server in backgroundsdaemon-pipefdssused internally by daemon modetEterrorlogs"name of error log file to write toRis!port to listen on (default: 8000)taddresss.address to listen on (default: all interfaces)s0prefix path to serve from (default: server root)R;s6name to show in web pages (default: working directory)s webdir-confs?name of the webdir config file (serve more than one repository)spid-files#name of file to write process ID toRsfor remote clientst templatessweb templates to usestemplate style to uset6tipv6suse IPv6 in addition to IPv4t certificatesSSL certificate files^serveR5s$show untrusted configuration optionss[-u] [NAME]...sshowconfig|debugconfigsshow status of all filesRsshow only modified filesRsshow only added filessshow only removed filesR2s%show only deleted (but tracked) filessshow only files without changesRs%show only unknown (not tracked) filesRsshow only ignored filess no-statusshide status prefixsshow source of copied filessshow difference from revisions ^status|stsreplace existing tagR1smake the tag localsrevision to tagRs remove a tags3[-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...Rs[-p]s.update to new tip if changesets were unbundleds [-u] FILE...Rs,overwrite locally modified files (no backup)Rscheck for uncommitted changess[-C] [-d DATE] [[-r] REV]s^update|up|checkout|coRsyclone init version help debugcommands debugcomplete debugdata debugindex debugindexdot debugdate debuginstall debugfsinfos-identify paths serve showconfig debugancestor(zR2RRRRR;Rti18nRRR^RRaRRRDRdRyR&RRSR RGRkR3RlR RwR=RRdRRRRthgwebRRrRRRR(RBReR>RRRxR{RRRRRR}R RR!R(R+R4R>R@RPRSRVR\RaRbRRRRRRRRR/R7RKRLR[RaRuR*RzRvR~RRRRRRtRRRCR`RRRR3RRRRRRRt dryrunoptst remoteoptstwalkoptst commitoptst commitopts2t templateoptstlogoptsRt diffopts2tsimilarityoptsRtnorepot optionalrepo(((s./mercurial/commands.pyss6"T`<<     ? ,W  "* K  4 1       $      p  * -  @J E # ~ : # (  $ =  8   A J D   5                N                959        _    J       5_