�
��D@s�ddklZlZlZlZlZddklZddkl Z l
Z
ddkZddkZddk
Z
ddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddk Z ddk!Z!ddk"Z"ddk#Z#ddk$Z$ddk%Z$ddk&Z&ddk'Z(ddk)Z)ddk*Z*ddk+Z+ddk,Z,ddk-Z-ddk.Z.ddk/Z/ddk0Z0ddk1Z1ddk2Z2ddk3Z3ddk4Z4hZ5e!i6e5�Z6ddde d�e d �fdd
de d�e d�fd
de7e d�fdde7e d�fdde7e d�fddge d�e d�fdde7e d�fdde7e d�fddeie d�e d�fdd ei8e d!�e d"�fdd#e7e d$�fdd%e7e d&�fdd'e7e d(�fdd)e7e d*�fd+d,e7e d-�fgZ9d.d/e7e d0�fgZ:d1d2de d3�e d4�fdd5de d6�e d4�fdd7e7e d8�fgZ;d9d:ge d;�e d<�fd=d>ge d?�e d<�fgZ<d@dAde dB�e dC�fdDdEde dF�e dG�fgZ=dHdIde dJ�e dK�fdLdMde dN�e dO�fgZ>ddPde dQ�e dR�fddSde dT�e dU�fgZ?dVdWe7e dX�fdYdZe7e d[�fdDd\de d]�e d^�fd_d`e7e da�fddbe7e dc�fge?Z@dddee7e df�fdYdZe7e d[�fddge7e dh�fgZAdidje7e dk�fdldme7e dn�fdodpe7e dq�fgZBdVdre7e ds�fddte7e du�fgeBdvdwde dx�e d^�fddbe7e dc�fgZCdydzde d{�fgZDd|d}de d~�e d�fgZEd�d�e7e d��fgZFe6d�e<eFe:e d���d���ZGe6d�eEe<e:e d���d���ZHe6d�d�d�de d��e d��fdd�e7e d��fdd�e7e d��fdddee7e df�fdLdMe7e d��fd�d�e7e d��fdHdIe7e d��fd.d�e7e d��fd�d�e7e d��fdDd�e7e d��fg
eBe<e d���d���ZIe6d�dd�e7e d��fdVd�de d��e d��fd�d�de d��e d��fdyd�de d��e d��fgeFe<e d���d���ZJe6d�dd�e7e d��fdd�de d��e d��fd�d�de d��e d��fgeDe<e=e>e d���e7e7d���ZKe6d�d�d�eLe d��fdYd�eLe d��fdld�eLe d��fd|d�eLe d��fd1d�eLe d��fd�d�de d��e d4�fdvd�eLe d��fge d���e7e7e7e7e7e7e7e7e7d���ZMe6d�d�d�eLe d��fd�d�de d��e d��fdHd�eLe d��fd@d�de d��e d��fd�d�eLe d��fge d���e7e7eLeLe7eLd���ZNe6d�d�d�e7e d��fd�d�e7e d��fge d���e7d���ZOe6d�ddd�eLe d��fd�d�eLe d��fge d���eLeLd���ZPe6d�d�d�e7e d�fd�d�ge d�e d��fdld�ge d�e d�fdd�e d�e d��fddd�7e d�fdyd�d� d�e d��fge;e d��e7d��ZQe6d���e d�e d�fd�d�de d�e d��fdd�e d�fge<e d��d��ZRe6d�d�e7e d�fdLd�e d�e d��fd�d�ge d�e d��fdld�ge d�e d�fdd�e d�fdd�e d�fge;e d��e7d��ZSe6ddd�e7e d�fdde7e d�fdde7e d�fge<e=e>eFe d���d ��ZTe6d
dde7e d�fd�d�e7e d
�fge<e:e d��d��ZUe6dge d��d��ZVe6dd@de7e d�fd�e7e d�fd.de7e d�fge d��e7eLeLeLd��ZWe6dddd�7e d�fge dG��e7d��ZXe6dgd�d ��ZYe6d!ge d"��dd#��ZZe6d$d�%e7e d&�fge d'��dd(��Z[e6d)dyd*e7e d+�fdld�e7e d,�fdd-e7e d.�fd|d/e7e d0�fge d1��e7d2��Z\e6d3d�d4eLe d5�fd@d6eLe d7�fge d8��e7d9��Z]e6d:d1d;e7e d<�fge d=��e7d>��Z^e6d?dd@e7e dA�fddBe7e dC�fge;e dD��dEdF��Z_e6dGgdH�dI��Z`e6dJge dK��dLdM��Zae6dNdOdPge dQ�e dR�fd�dSge dT�e dR�fdyd�d� d�e d��fge dU��e7e7dV��Zbe6dWgd�dX��Zce6dYd�d4eLe d5�fd@d6eLe d7�fd�dZd[e d\�e d�fge d]��e7d^��Zde6d_ge dG��d`��Zee6dagd�db��Zfe6dcge dd��de��Zge6dfge dg��dh��Zhe6dige dj��e7dk��Zie6dld�d�de dm�e d��fge dn��dodp��Zje6dqd�d�de dr�e d��fge ds��dt��Zke6dud�d4eLe d5�fd@d6eLe d7�fdHdveLe dw�fge dx��e7dy��Zle6dzgdH�d{��Zme6d|ge d}��e7d~��Zne6dddge7e d��fdd�e7e d��fge d���e7e7d���Zoe6d�d�d�de d��e d��fge dn��e7d���Zpe6d�e<e d���d���Zqe6d�dd�dd�fdd�dd�fdd�dd�fge;e d���d���Zre6d�d�d�ge d��e d��fd�d�de d��e d��fgeAeCe<eFe d���d���Zse6d�d��e d�e d�fdd�e7e d��fd�d�ge d��e d��fgeAe d���d���Zte6d�e<e d��d���Zue6d�d�d�eLe d��fd1d�eLe d��fd�d�eLe d��fdvd�eLe d��e dK�fge>eDe:e d���d���Zve6d�d�d�e7e d��fdd�7e d��fdddee7e df�fd�d�e7e d��fd�d�e7e d��fdDd�e7e d��fd.d�e7e d��fd�d�ge d��e d��fdLdMe7e d��fdHdIe7e d��fg
e<e d���d���Zwe6d�d�d�de d��e d��fdyd�eLe d��fddd�eLe d��fd�d�eLe d��fge?e d���d���Zxe6d,d1d�e7e d��fd�d�e7e d��fge d���e7eLeyd���Zze6d�d�d�de d��e d��fd.d�e7e d��fd�d�e7e d��fdld�e7e d��fdyd*e7e d��fdod�e7e d��fge;e d���e7e7e7e7e7e7e7d���Z{e6d�dVd�d�e d��e d^�fdld�e d��e d��fd1d�eLe d��fd�d�e7e d��fdd�e7e d��fdd�e7e d��fdd�e7e d��fdd�e7e d��fge=e>eEe d���e7d��Z|e6d��d�e7e d�fd.d�7e d�fdd�de d�e dG�fd�d�ge d�e d��fdod�eLe d�fdld�ge d�e d�fge@e;eFe d��dEd��Z}e6d�;e d��dLd��Z~e6d��d�de d�e d��fd�d�e7e d�fd�d�e d�fge<e d��d��Ze6d�d�e7e d��fdd�e d�fdHdIde d�e dK�fd�d�e d�fd�ge d�e dC�fd�d�ge d�e d��fdd�e d�fd@de7e d�fdLdMge d�e dO�fddge d�e d�fdld�ge d�e d�fddge d �e d��fdd
eLe d�fg
e@e<e d��d
��Z�e6d6d�d�de d�e d��fdd�Le d�fge d��e7e7d��Z�e6dd�d�e7e d�fd�d�de d�e d��fdde7e d�fgeDe d��e7d��Z'e6dd�d�e7e d�fd�d�ge d�e d��fd.d�7e d�fdod�eLe d�fdld�ge d�e d�fge@e;eFe d��e7d��Z�e6dd�d�de d�e d��fge?e d ��e7d!��Z�e6d"ge d#��e7d$��Z�e6d%dVd&eLe d'�fdHd(eLe d)�fd|d*eLe d+�fd�d�eLe d,�fd�d�ge d-�e d��fge d.��d/��Z�d0�Z�e6d1dLd2e7e d3�fd�d�e7e d4�fd�d�ge d�e d��fdod5ge d6�e d7�fdld�ge d�e d�fge;e d8��dEd9��Z�e6d:d�d�e7e d;�fd�d�ge d�e d��fdod5ge d<�e d7�fdld�ge d�e d�fdd=eLe d>�fge;e d?��e7d@��Z�e6dAg�dB��Z�e6dCdde7e dD�fd�d�e7e dE�fge<e d��dF��Z�e6dGdde7e dH�fd�d�e7e d
�fge<e:e dI��dJ��Z�e6dKddd�7e dL�fdDdMe7e dN�fd@dOe7e dP�fdLdQe7e dR�fd.dSe7e dT�fgeDe<e d���dU��Z�e6dVddd�7e dW�fdHdIde dX�e dK�fd�d�de dY�e d��fd�dZe7e d[�fge<e:e d\��d]��Z�e6d^e:d�d�eLe d_�fg�d`��Z�e6dag�db��Z�e6dcdddde de�e dG�fdHdfe7e dg�fddhde di�e d^�fdjdkde dl�e dG�fdVdmde dn�e do�fdddpde dq�e dr�fdd�de ds�e d��fd.dtde du�e d��fddvde dw�e dG�fddxde dy�e dG�fddzde d{�e dG�fdd|e7e d}�fdd~de d}�e d"�fdydde d��e dU�fddPde d��e dR�fd�d�e7e d��fdd�de d��e dG�fge d���d���Z�e6d�dLd�e7e d��fge d���d���Z�e6d�dd�7e d��fd@d�e7e d��fddd�e7e d��fd�d�e d��fdHd�e7e d��fd�d�e7e d��fdLd�e7e d��fd�d�e7e d��fd.dSe7e dT�fd�d�e d��fd�d�e7e d�fdd�ge d��e d��fdd�de d��e d��fg
e<eFe d���d���Z�e6d�dd�e7e d��fgd��d���Z�e6d�d�d�e7e d��fdDd�e7e d��fd�d�de d��e d��fdd�e7e d��fd1d�e7e d��fd@dAde d��e dC�fge>e d���d���Z�e6d*gd�d���Z�e6dodVdWe7e dX�fdYdZe7e d[�fge?e d���d���Z�e6d�dLd2e7e d��fge d���d���Z�e6d�d�d�e7e d��fd�d�e7e d��fdHdIde dX�e dK�fd�d�de d��e d��fge d���e7e7eLe7eLd���Z�e6d�g�d���Z�e6d)g�d���Z�d�Z�d�Z�dS(�i�(thextbintnullidtnullrevtshort(trelease(t_tgettextNtRt
repositoryts8repository root directory or name of overlay bundle filetREPOtcwdschange working directorytDIRtytnoninteractivesBdo not prompt, automatically pick the first choice for all promptstqtquietssuppress outputtvtverbosesenable additional outputtconfigs5set/override config option (use 'section.name=value')tCONFIGtdebugsenable debugging outputtdebuggersstart debuggertencodingsset the charset encodingtENCODEtencodingmodesset the charset encoding modetMODEt tracebacks%always print a traceback on exceptionttimestime how long the command takestprofilesprint command execution profiletversions#output version information and exitththelpsdisplay help and exittnsdry-runs)do not perform actions, just print outputtetsshsspecify ssh command to usetCMDt remotecmds,specify hg command to run on the remote sidetinsecures>do not verify server certificate (ignoring web.cacerts config)tItincludes)include names matching the given patternstPATTERNtXtexcludes)exclude names matching the given patternstmtmessagesuse text as commit messagetTEXTtltlogfilesread commit message from filetFILEtdtdates(record the specified date as commit datetDATEtutusers&record the specified user as committertUSERtstylesdisplay using template map filetSTYLEttemplatesdisplay with templatetTEMPLATEtptpatchs
show patchtgtgitsuse git extended diff formattlimits!limit number of changes displayedtNUMtMs no-mergessdo not show mergeststats(output diffstat-style summary of changestattextstreat all files as texttnodatessomit dates from diff headerstwsignore-all-spaces'ignore white space when comparing linestbsignore-space-changes+ignore changes in the amount of white spacetBsignore-blank-liness(ignore changes whose lines are all blanks
show-functions%show which function each change is intreverses&produce a diff that undoes the changestUtunifieds"number of lines of context to showttttoolsspecify merge tooltst
similaritys-guess renamed files by similarity (0<=s<=100)t
SIMILARITYtStsubrepossrecurse into subrepositoriess^adds[OPTION]... [FILE]...c
Osdti|d||�}ti||||id�|id�dddt�}|odpdS( sradd the specified files on the next commit
Schedule files to be version controlled and added to the
repository.
The files will be added to the repository at the next commit. To
undo an add before that, see :hg:`forget`.
If no names are given, add all files to the repository.
.. container:: verbose
An example showing how new (unknown) files are added
automatically by :hg:`add`::
$ ls
foo.c
$ hg status
? foo.c
$ hg add
adding foo.c
$ hg status
A foo.c
Returns 0 if all files are successfully added.
tdry_runRTtprefixR
texplicitonlyiiN(tscmutiltmatchtNonetcmdutiltaddtgettFalse(tuitrepotpatstoptsR-trejected((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR\�st addremovec
Os�y t|id�pd�}Wn(tj
otitd���nX|djp
|djotitd���nti|||d|d�S(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. After using this option, :hg:`status -C` can be
used to check which files were identified as moved or renamed.
If this option is not specified, only renames of identical files
are detected.
Returns 0 if all files are successfully added.
RQidssimilarity must be a numberis$similarity must be between 0 and 100gY@(tfloatR]t
ValueErrortutiltAbortRRXRd(R_R`RaRbtsim((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRd�s s^annotate|blametrtrevsannotate the specified revisiontREVtfollows8follow copies/renames and list the filename (DEPRECATED)s no-followsdon't follow copies and renamesslist the author (long with -v)tftfileslist the filenameslist the date (short with -q)tnumbers"list the revision number (default)tct changesetslist the changesetsline-numbers(show line number at the first appearances3[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...c"s|id�ot|d<n�io
tipti�ti�fd��}|ptitd���n�i ot
pt�dd�fd�fddd �fd
d�fd�fdd|fddd
�fddd�fg}|id�oA|id
�o0|id�o|id�ot|d<n|id�d"j }|o;|id
�o*|id�otitd���ng}|D]0\}} }
|i|�o||
| fq�q�~}|dddf|d<d�}t
i||id��}
t
i|
||�}||_|id�}ti�|dd�}x|
i|�D]}|
|}|id�oKti|i��o5�itd�|o|i|�p|�qrn|id|d|d|�}g}x�D]�}} g}|D]\}}|||�q ~}|o�g}|D]}||ti|�fqT~}tg}|D]\}}||q�~�}|ig} |D](\}}| d| d|||fq�~ �q q W|oxGtt|�|�D]0\}!}�iddi|!�|df�qW|o*|d did!�o�id!�qwqrqrWd"S(#s�show changeset information by line for each file
List changes in files, showing the revision id responsible for
each line
This command is useful for discovering when a change was made and
by whom.
Without the -a/--text option, annotate will avoid processing files
it detects as binary. With -a, annotate will annotate the file
anyway, although the results will probably be neither useful
nor desirable.
Returns 0 on success.
RmRocs�|di��S(i(R4(tx(tdatefunc(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt<lambda>�ss,at least one filename or pattern is requiredR7t cs�i|di��S(i(t shortuserR7(Rs(R_(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRu�sRpcSst|di��S(i(tstrRk(Rs((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRusRrcs�|di��S(i(tnode(Rs(thexfn(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRusR4cSs|di�S(i(tpath(Rs((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRustline_numbert:cSst|d�S(i(Rx(Rs((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRuss(at least one of -n/-c is required for -liR
cSstid||f��dS(Ns%s: %s(RgRh(RsR((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytbadsRkt no_followtsectiontannotateRFs%s: binary file
t
linenumbertdiffoptss%s%s%ss%s: %sii�s
N( R]tTrueRRgt shortdatetdatestrt cachefuncRhRt debugflagRRRZRXt revsingleRYR~R>R�twalktbinarytdatatwritetrelR�Rtcolwidthtmaxtappendtziptjointendswith("R_R`RaRbtgetdatetopmapR�t_[1]toptseptfunctfuncmapR~tctxR-RmR�tabstfctxtlinestpiecesRnt_[2]R"tdummyR0t_[3]Rstsizedt_[4]RHtmlt_[5]R=((RzR_RtsA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��sd"")D
'. -0-
>( tarchives no-decodes"do not pass files through decodersRVs%directory prefix for files in archivetPREFIXsrevision to distributettypestype of distribution to createtTYPEs[OPTION]... DESTc Ks�ti||id��}|ptitd���n|i�}ti|||�}t i
i|�|ijotitd���n|id�pt
i|�pd}|id�}|djo`|djotitd���nti||�}|pt i
i|i�d }q3nti|||�}ti|g|�}t
i|||||id
�||d|id��dS(
s�create an unversioned archive of a repository revision
By default, the revision used is the parent of the working
directory; use -r/--rev to specify a different revision.
The archive type is automatically detected based on file
extension (or override using -t/--type).
.. container:: verbose
Examples:
- create a zip file containing the 1.0 release::
hg archive -r 1.0 project-1.0.zip
- create a tarball excluding .hg files::
hg archive project.tar.gz -X ".hg*"
Valid types are:
:``files``: a directory full of files (default)
:``tar``: tar archive, uncompressed
:``tbz2``: tar archive, compressed using bzip2
:``tgz``: tar archive, compressed using gzip
:``uzip``: zip archive, uncompressed
:``zip``: zip archive, compressed using deflate
The exact name of the destination archive or directory is given
using a format string; see :hg:`help export` for details.
Each member added to an archive file has a directory prefix
prepended. Use -p/--prefix to specify a format string for the
prefix. The default is the basename of the archive, with suffixes
removed.
Returns 0 on success.
Rks/no working directory: please specify a revisions%repository root cannot be destinationR�tfilesRVt-s$cannot archive plain files to stdouts-%ht no_decodeRTN(RXR�R]RgRhRRyR[tmakefilenametosR{trealpathtroottarchivalt guesskindtmakefileobjtbasenameRYR�( R_R`tdestRbR�RytkindRVtmatchfn((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�3s&1&
!tbackouttmerges,merge with old dirstate parent after backouttparents4parent to choose when backing out merge (DEPRECATED)srevision to backouts[OPTION]... [-r] REVcs`|o |otitd���n|p
|}n|ptitd���n|id�}|oti|�|d<nti��ti�|�i �}�i
i�\}}�ii
||�}||jotitd���n�ii|�\} }
| tjotitd���n|
tjo�|id�ptitd���n�i|d�}|| |
fjo/titd�t|�t|�f��n|}n0|id�otitd ���n| }�i�}
zF�i
i�}ti�|d
t��i
i|�|i�}d|d<t|d<t|�|d<d|d
<t|�|�|id�o[||joNz3|idd|idd��ti�|�SWd|iddd�Xn|i�}t|d<|do.|do"dt|�|d<t|d<nt|�|��fd�}|itd�|�ii ��||�f�|id�o�||jo�ti�|d
t�|itd�|�ii ���zB|idd|idd��ti!�t�ii ���SWd|iddd�XnWd|
i"�XdS(sreverse effect of earlier changeset
Prepare a new changeset with the effect of REV undone in the
current working directory.
If REV is the parent of the working directory, then this new changeset
is committed automatically. Otherwise, hg needs to merge the
changes and the merged result is left uncommitted.
.. note::
backout cannot be used to fix either an unwanted or
incorrect merge.
.. container:: verbose
By default, the pending changeset will have one parent,
maintaining a linear history. With --merge, the pending
changeset will instead have two parents: the old parent of the
working directory and a new child of REV that simply undoes REV.
Before version 1.7, the behavior without --merge was equivalent
to specifying --merge followed by :hg:`update --clean .` to
cancel the merge and leave the child of REV as a head to be
merged separately.
See :hg:`help dates` for a list of formats valid for -d/--date.
Returns 0 on success.
s please specify just one revisions$please specify a revision to backoutR4s+cannot backout change on a different branchs'cannot backout a change with no parentsR�s cannot backout a merge changesets%s is not a parent of %ss*cannot use --parent on non-merge changesett
show_statstallRkt no_backupR�R_t
forcemergeROR
NRdR.R1sBacked out changeset %stforce_editorcs d�ii|�t|�fS(Ns%d:%s(t changelogRkR(Ry(R`(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytnice�ss$changeset %s backs out changeset %s
smerging with changeset %s
i(#RgRhRR]t parsedateR[t
bailifchangedRXR�RytdirstatetparentsR�tancestorRtlookupRtwlocktbranchthgtcleanR^t setbranchtcopyRZR�Rtrevertt setconfigtupdatetcommittstatusttipR�R(R_R`RyRkRbR4top1top2REtp1tp2R=R�R�R�trevert_optstcommit_optsR�((R`sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�{s�%
##tbisecttresetsreset bisect statetgoodsmark changeset goodR~smark changeset badtskipsskip testing changesettextendsextend the bisect rangetcommands$use command to check changeset statetnoupdatesdo not update to targets[-gbsr] [-U] [-c CMD] [REV]csk��fd�����fd�}t����fd�}|di�jo_�itd��||d}
}}|
djo
t�q�
djo
t�q��nH|p'����| t|�djotitd ���n�o;�id
�}t i
i|�ot i|�ndSnt
i���|o�d}zgx`|oXt
i���ti|d�i�}|d
jo
d}nr|djo
d}n[|djotitd�|��n1|djotitd�|��nd}ti�|�}d}�|i|i���itd�|||f�|�dt�t
i�i��\}}�ti��ti�|ddt�q_WWdt
i���X||��dSn|o=g}ti�|g�D]}|�i|�q
~}n�id�g}�p�p�oe�o�dc|7<n7�o�dc|7<n�o�dc|7<nt
i���n|��pdSnt
i�i��\}}�| o�|py�|��}|dj oY�i td|i!�|f��|
odSnti��ti�|i��Sqsntitd���n|djo||��n�t"|�djpt#�|d}d\}}x'||jo|d|d}}q�W�ii!|�}�i td�|t$|�||f�|
p!ti��ti�|�SndS(s subdivision 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.
.. container:: verbose
Some examples:
- start a bisection with known bad revision 12, and good revision 34::
hg bisect --bad 34
hg bisect --good 12
- advance the current bisection by marking current revision as good or
bad::
hg bisect --good
hg bisect --bad
- mark the current revision, or a known revision, to be skipped (eg. if
that revision is not usable because of another issue)::
hg bisect --skip
hg bisect --skip 23
- forget the current bisection::
hg bisect --reset
- use 'make && make tests' to automatically find the first broken
revision::
hg bisect --reset
hg bisect --bad 34
hg bisect --good 12
hg bisect --command 'make && make tests'
- see all changesets whose states are already known in the current
bisection::
hg log -r "bisect(pruned)"
- see all changesets that took part in the current bisection::
hg log -r "bisect(range)"
- with the graphlog extension, you can even get a nice graph::
hg log --graph -r "bisect(range)"
See :hg:`help revsets` for more about the `bisect()` keyword.
Returns 0 on success.
cs��|di�}t|�djol|o�dp�d}ttd�|D��t|�@�}|djo|di|d�Sq�ndS(NiiR~R�cssx|]}|i�VqWdS(N(Ry(t.0ti((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pys <genexpr>Hs(R�tlentsetR�RZ(tnodesR�R�tsidetnum(R`tstate(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytextendbisectrangeBs&
cs
ti��h�}t|�djo�|o�itd��n�itd��|i�|d��||�}|dj o�itd�|�q�T|o�itd��n�itd��x|D]}|i�|�q�|i�dS(NisThe first good revision is:
sThe first bad revision is:
is�Not all ancestors of this changeset have been checked.
Use bisect --extend to continue the bisection from
the common ancestor, %s.
sCDue to skipped revisions, the first good revision could be any of:
sBDue to skipped revisions, the first bad revision could be any of:
(R[tshow_changesetR�R�RtshowRZtclose(R�R�t displayert
extendnodeR"(R`R_R�(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytprint_resultMs"
cs�|dp|doh�p�p�p�o|odSn|dptitd���q�titd���ntS(NR�R~s'cannot bisect (no known good revisions)s&cannot bisect (no known bad revisions)(RgRhRR�(R�tinteractive(R�R�R�R~(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytcheck_statehs#sgood bad reset inits)(use of 'hg bisect <cmd>' is deprecated)
R�R~isincompatible argumentssbisect.stateNtouti}R�iisfailed to execute %ss %s killedsChangeset %d:%s: %s
R�R�t.s$Extending search to changeset %d:%s
snothing to extendis=Testing changeset %d:%s (%d changesets remaining, ~%d tests)
(ii(%R�tsplittwarnRRZtboolRgRhR�R�R{texiststunlinkthbisectt
load_statet
save_statetsystemtfoutRXR�R�RyR�R^R�R�R[R�R�R�trevrangeR�R�RkR�tAssertionErrorR(R_R`RktextraR�R�R�R~R�R�R�R�R�tcmdR=t
changesetsR�t
transitionR�R�R�R�R�Rytteststsize((R�R�R�R�R�R`R~R_sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s�R
.
#
=
t bookmarkstforcetrevisiontdeletesdelete a given bookmarktrenamesrename a given bookmarktNAMER�tinactivesmark a bookmark inactives5hg bookmarks [-f] [-d] [-i] [-m NAME] [-r REV] [NAME]cCs>|iotpt}|i} |id�i�}
|o�|djotit d���n|| jotit d�|��n||i
joti|d�n| |=ti
|�dSn|o�|| jotit d�|��n|| jo%|otit d�|��n|djotit d���n| || |<|i
|jo|oti||�n| |=ti
|�dSn|dj ogd|jotit d���n|i�}|ptit d ���n|o(||i
joti|d�dSn|| jo%|otit d�|��n||i�jp||ii�jo!|otit d
���n|o|i|�| |<n|
| |<|o%|
| |joti||�nti
|�dSn|djo|otit d���nt| �djo|it d��n�x�t| i��D]�\}}|i
}
||
jo||
jod\}}n
d\}}|io|i
d|d|�q�|i
d|||ii|�||�fd|�q�WdSndS(sZtrack a line of development with movable markers
Bookmarks are pointers to certain commits that move when committing.
Bookmarks are local. They can be renamed, copied and deleted. It is
possible to use :hg:`merge NAME` to merge from a given bookmark, and
:hg:`update NAME` to update to a given bookmark.
You can use :hg:`bookmark NAME` to set a bookmark on the working
directory's parent revision with the given name. If you specify
a revision using -r REV (where REV may be an existing bookmark),
the bookmark is assigned to that revision.
Bookmarks can be pushed and pulled between repositories (see :hg:`help
push` and :hg:`help pull`). This requires both the local and remote
repositories to support bookmarks. For versions prior to 1.8, this means
the bookmarks extension must be enabled.
With -i/--inactive, the new bookmark will not be made the active
bookmark. If -r/--rev is given, the new bookmark will not be made
active even if -i/--inactive is not given. If no NAME is given, the
current active bookmark will be marked inactive.
R�sbookmark name requiredsbookmark '%s' does not existNs.bookmark '%s' already exists (use -f to force)snew bookmark name requireds
s%bookmark name cannot contain newliness4bookmark names cannot consist entirely of whitespaces5a bookmark cannot have the name of an existing branchisno bookmarks set
t*sbookmarks.currentRvR
s%s
tlabels %s %-25s %d:%s
(Rsbookmarks.current(RvR
(R�RRt
_bookmarkst changectxRyRZRgRhRt_bookmarkcurrentRt
setcurrentR�tstript
branchtagsR�R�R�R�R�tsortedt iteritemsRR�Rk(R_R`tmarkRkR RRRRztmarkstcurtbmarkR"tcurrentRVR((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytbookmark�s�
)
%R�s5set branch name even if it shadows an existing branchtCR�s'reset branch name to parent branch names[-fC] [NAME]c
Kst|id�o*|o"|id|ii��dSn|i�}z|id�oA|di�i�}|ii|�|it d�|�n�|o�|id�op||i
�jo]|g}|i�D]}||i�q�~jo%ti
t d�dt d���q#n|ii|�|it d �|�|it d
��nWd|i�XdS(s�set or show the current branch name
.. note::
Branch names are permanent and global. Use :hg:`bookmark` to create a
light-weight bookmark instead. See :hg:`help glossary` for more
information about named branches and bookmarks.
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.
Returns 0 on success.
R�s%s
Ns%reset working directory to branch %s
R s(a branch of the same name already existsthintsuse 'hg update' to switch to its&marked working directory as branch %s
s>(branches are permanent and global, did you want a bookmark?)
(R]R�R�R�R�RZR�R�R�RRR�RgRhR(R_R`RRbR�R�R=((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�Fs$$4tbranchestactives+show only branches that have unmerged headstclosedsshow normal and closed branchess[-ac]cs|iotpt}g}�i�D]}|�|i�q(~���fd�}tg}�i�i�D]1\} }
||| |
��ii |
�| fqt~dt
�}xQ|D]I\}}
} |p|o+|io|id| �q�i
|
�}
|od}d}nS|
�i| dt�jo$|pq�nd}td�}nd }td
�}| �ii�jo
d}nt|
�idti| ��}|id
|||
�fd�}|i| |�} |id| ||f�q�q�WdS(s�list 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.
Returns 0.
cs2|�j}|�i|dt�j}|o|S(NR#(tbranchheadsR^(ttagRytrealheadtopen(tactivebranchesR`(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt
testactive�sRKs%s
sbranches.activeR
R#sbranches.closeds (closed)sbranches.inactives (inactive)sbranches.currentis%s:%ss
log.changesets%s %s%s
N(R�RRtheadsR�RRtitemsR�RkR�RR�R�R$R^RR�RxtrjustRR�R(R_R`R"R#thexfuncR�R"R)R�R%RyR!tisactivethnRtnoticeRk((R`R(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR!}s81
J
""tbundles*run even when the destination is unrelateds3a changeset intended to be added to the destinations*a specific branch you would like to bundletBRANCHtbases;a base changeset assumed to be available at the destinationR�s'bundle all changesets in the repositorytbzip2sbundle compression type to uses;[-f] [-t TYPE] [-a] [-r REV]... [--base REV]... FILE [DEST]c Ksd}d|joti||d�}n|idd�i�}hdd<dd<dd<}|i|�}|tijotit d ���n|id
�o
dg}nti||id��}|o�|otit d
���ng} |D]}
| |i
|
�q~ }|ot|i
|�p|}|idd|d|�}
d}n�|i
|pd|pd�}ti||id��\}}ti|||�}ti||||�\}}|ot|i
|�p|}ti||d|d|id�dt�}|id|�}
|
p"ti||o|i�dSnti|
||�dS(s�create a changegroup file
Generate a compressed changegroup file collecting changesets not
known to be in another repository.
If you omit the destination repository, then hg assumes the
destination will have all the nodes you specify with --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.
Returns 0 on success, 1 if no changes found.
RkR�R4tHG10UNtnonetHG10BZtHG10GZtgzips)unknown bundle type specified with --typeR�tnullR3s4--base is incompatible with specifying a destinationR1R*tcommonsdefault-pushtdefaultR�t onlyheadsR tportableiN(RZRXRR]tlowertchangegrouptbundletypesRgRhRR�tmapt getbundlet
expandpathR�tparseurltpeert
addbranchrevst discoverytfindcommonoutgoingR�tgetlocalbundletnochangesfoundtexcludedtwritebundle(R_R`tfnameR�Rbtrevst
bundletypetbtypesR3R�RkR;R*tcgtoutgoingR!tothertcheckout((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR1�s@&
!
*
! tcattotoutputs(print output to file with formatted nametFORMATsprint the given revisiontdecodes apply any matching decode filters[OPTION]... FILE...cOs�ti||id��}d}ti||f||�}x�|i|�D]�}ti||id�|i�d|�} ||i�}
|id�o|i ||
�}
n| i
|
�| i�d}qMW|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
Returns 0 on success.
RkiRXtpathnameRZi(RXR�R]RYR�R[R�RyR�t
wwritedataR�R�(R_R`tfile1RaRbR�terrR-R�tfpR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRV�s!
s^clones@the clone will include an empty working copy (only a repository)t updaterevs$revision, tag or branch to check outsinclude the specified changesetsclone only the specified branchtpulls"use pull protocol to copy metadatatuncompresseds)use uncompressed transfer (fast over LAN)s[OPTION]... SOURCE [DEST]cKs�|id�o)|id�otitd���nti||||d|id�d|id�d|id�d|id�p|id�d |id ��}|d
jS(s�make 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.
Only local paths and ``ssh://`` URLs are supported as
destinations. For ``ssh://`` destinations, no working directory or
``.hg/hgrc`` will be created on the remote side.
To pull only a subset of changesets, specify one or more revisions
identifiers with -r/--rev or branches with -b/--branch. The
resulting clone will contain only the specified changesets and
their ancestors. These options (or 'clone src#rev dest') imply
--pull, even for local source repositories. Note that specifying a
tag will include the tagged changeset but not the changeset
containing the tag.
To check out a particular version, use -u/--update, or
-U/--noupdate to create a clone with no working directory.
.. container:: verbose
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 working
directory). 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 the working
directory 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.
Mercurial will update the working directory to the first applicable
revision from this list:
a) null if -U or the source repository has no changesets
b) if -u . and the source repository is local, the first parent of
the source repository's working directory
c) the changeset specified with -u (if a branch name, this means the
latest head of that branch)
d) the changeset specified with -r
e) the tipmost head specified with -b
f) the tipmost head specified with the url#branch source syntax
g) the tipmost head of the default branch
h) tip
Examples:
- clone a remote repository to a new directory named hg/::
hg clone http://selenic.com/hg
- create a lightweight local clone::
hg clone project/ project-feature/
- clone from an absolute path on an ssh server (note double-slash)::
hg clone ssh://user@server//home/projects/alpha/
- do a high-speed clone over a LAN while checking out a
specified version::
hg clone --uncompressed http://server/repo -u 1.5
- create a repository without changesets after a particular revision::
hg clone -r 04e544 experimental/ good/
- clone (and track) a particular named branch::
hg clone http://selenic.com/hg#stable
See :hg:`help urls` for details on specifying URLs.
Returns 0 on success.
R�R`s.cannot specify both --noupdate and --updaterevRatstreamRbRkR�R�N(R]RgRhRR�tcloneRZ(R_tsourceR�RbRj((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRd%sf s
^commit|citAs9mark new/missing files as added/removed before committingsclose-branchs7mark a branch as closed, hiding it from the branch listtamends#amend the parent of the working dirc so|id�o|iddt�nh�|id�oD|di�|i�jotitd���nd�d<n|di �}|i|�}|id �o�|i
dd�otitd
���n|d��i�ti
jotitd���nt�i��djotitd���nt|di��djotitd
���n�i�otitd���nti�|id�o
ti�n���fd�}ti|||��||�}|�i�jo|itd��dSq��ti�|id�o
ti�n��fd�}ti|||||�}|pp|idti|d||��}|do%|itd�t|d��n|itd��dSn||} | i�}
|id �ox|oq||jodg}|
D]7}|i�|jo|i �|jo||qAqA~o|itd��n|id�pYxV|
D]J}
|
i�id�o.|
i �|jo|itd�|
�q�q�Wn|io-|itd�t| �| i�f�n2|io'|itd�t| �| f�ndS(s�commit the specified files or all outstanding changes
Commit changes to the given files into the repository. Unlike a
centralized SCM, this operation is a local operation. See
:hg:`push` for a way to actively distribute your changes.
If a list of files is omitted, all changes reported by :hg:`status`
will be committed.
If you are committing the result of a merge, do not provide any
filenames or -I/-X filters.
If no commit message is specified, Mercurial starts your
configured editor where you can enter a message. In case your
commit fails, you will find a backup of your message in
``.hg/last-message.txt``.
The --amend flag can be used to amend the parent of the
working directory with a new commit that contains the changes
in the parent in addition to those currently reported by :hg:`status`,
if there are any. The old commit is stored in a backup bundle in
``.hg/strip-backup`` (see :hg:`help bundle` and :hg:`help unbundle`
on how to restore it).
Message, user and date are taken from the amended commit unless
specified. When a message isn't specified on the command line,
the editor will open with the message of the amended commit.
It is not possible to amend public changesets (see :hg:`help phases`)
or changesets that have children.
See :hg:`help dates` for a list of formats valid for -d/--date.
Returns 0 on success, 1 if nothing changed.
RTR_tcommitsubrepostclose_branchR�scan only close branch headsiR�Rgscannot amend recursivelyscannot amend public changesetsscannot amend merge changesetsscannot amend while mergings$cannot amend changeset with childrenR�c st�}|p�i�}ti}n|i||id�p
�i�|id�p
�i�|d|d��S(NR7R4teditorR(tdescriptionR[tcommitforceeditorR�R]R7R4(R_R`R.RYRbRj(R#Rtold(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt
commitfunc�s
snothing changed
c s4|i||id�|id�|d�d��S(NR7R4RjR(R�R](R_R`R.RYRb(R#R(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRn�s!RYis4nothing changed (%d missing files, see 'hg status')
screated new head
s reopening closed branch head %d
scommitted changeset %d:%s
N(R]R�R�RyR$RgRhRRZR�t
configbooltphasetphasestpublicR�R�tchildrenR[tcommiteditorRlRgR�R�RXRYRR�R�tintRR(R_R`RaRbR�tbheadsRnRyRDR�R�R�RsRj((RmRR#sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��sn,
!
%
%M)#
-
scopy|cptafters'record a copy that has already occurreds+forcibly copy over an existing managed files[OPTION]... [SOURCE]... DESTcOs;|it�}zti||||�SWd|i�XdS(s3mark files as copied for the next commit
Mark dest as having copies of source files. If dest is a
directory, copies are put in that directory. If dest is a file,
the source must be a single file.
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 with the next commit. To undo a copy
before that, see :hg:`revert`.
Returns 0 on success, 1 if errors are encountered.
N(R�R^R[R�R(R_R`RaRbR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�7st
debugancestors[INDEX] REV1 REV2c Gst|�djoC|\}}}tititi�dt�|�}|i}nkt|�djoB|pti t
d���n|\}}|i}|i}nti t
d���|i||�||��}|i
d|i|�t|�f�dS(s<find the ancestor revision of two revisions in a given indexitauditis5there is no Mercurial repository here (.hg not found)s&either two or three arguments requireds%d:%s
N(R�trevlogRXtopenerR�tgetcwdR^R�RgRhRR�R�R�RkR( R_R`targstindextrev1trev2RjR�RE((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRxRs'
t
debugbuilddagsmergeable-files!add single file mergeable changessoverwritten-files"add single file all revs overwritesnew-filesadd new file at each revs[OPTION]... [TEXT]c, s|d$jo&|itd��|ii�}n|i}t|�djotitd���nd}x8t i
|�D]'\}} |djo|d7}q~q~W|oKd}
g}td||
�D]}|t|�q�~}
|
i
d�ng}d$}}z�|i�}|id�}d }d
}g}d}|itd�|dtd
�d|�x<t i
|�D]+\}} |djok|idt| ��| \}}g}h�d$}|oRd}||d}t|�djo�||d}|i|�}g}|||fD]}|||i�q&~\}}}ti|||�} g}!| i�D]}"|!|"i�qu~!}#|#i
d�n1|djo||i�id�}#n|
}#|#||
cd|7<di|#�}$|i
|�ti||$��|<n|o1d}|i
|�ti|d|��|<n|o�d|}|i
|�ti|d|��|<t|�djo]|p||d}nxA|D]5}|id�o|i
|�||�|<q�q�Wqn�fd�}%t|�djp|ddjod$d$g}&nQt|�djo||dd$g}&n&g}'|D]}(|'||(q}~'}&ti||&d|||%d|dfdddh|d<�})|i|)�}*|i
|*�|}n�|djoJ| \}}+|id|+�|i
d t|ii |��|+f�n)|d!jo|id"| �| }n|itd�|dtd
�d|�qyW|i!�|o |i"i#d#di|��nWd$|itd�d$�t$||�Xd$S(%sbuilds a repo with a given DAG from scratch in the current empty repo
The description of the DAG is read from stdin if not given on the
command line.
Elements:
- "+n" is a linear run of n nodes based on the current default parent
- "." is a single node based on the current default parent
- "$" resets the default parent to null (implied at the start);
otherwise the default parent is always the last node created
- "<p" sets the default parent to the backref p
- "*p" is a fork at parent p, which is a backref
- "*p1/p2" is a merge of parents p1 and p2, which are backrefs
- "/p2" is a merge of the preceding node and p2
- ":tag" defines a local tag for the preceding node
- "@branch" sets the named branch for subsequent nodes
- "#...\n" is a comment up to the end of the line
Whitespace between the above elements is ignored.
A backref is either
- a number n, which references the node curr-n, where curr is the current
node, or
- the name of a local tag you placed earlier using ":tag", or
- empty to denote the default parent.
All string valued-elements are either strictly alphanumeric, or must
be enclosed in double quotes ("..."), with "\" as escape character.
sreading DAG from stdin
isrepository is not emptyR"iiR
tbuilddagi�R<tbuildingtunitt revisionsttotalsnode %s
tmfs
s r%itofsr%i
snf%itnfcs
�i|�S(N(R](R`tcxR{(tfctxs(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytfctxfn�ssr%iR4R7R�RR�R0stag %s
s%s %s
REs
branch %s
t localtagsN(%RZR�RtfintreadR�R�RgRht dagparsertparsedagtxrangeRxR�tlockttransactiontprogresstnoteR�R�tsimplemerget
Merge3Texttmerge_linesRR�R�tcontextt
memfilectxt
startswithtmemctxt commitctxRRyR�R{R�R(,R_R`RFtmergeable_filetoverwritten_filetnew_filetclR�R�R�tlinesperrevR�R�tinitialmergedlinesttagsR�ttrtattatbranchtnodeidstidtpsR�R�tfnR�tpaR�RsR3tlocalRTtm3R�R0R�t
mergedtextR�tparsR�R=R�tnodeidtname((R�sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�es�)
4
(
=-
$%
-
,
$tdebugbundlesshow all detailsc
s.ti�|�}z
ti||��|o��id���fd�}�i�}|d��i�}|d�x�to0�i�}|pPn|d}||�q|Wnd�i�}d}xNtoF�i
|�}|pPn|d} �idt| ��| }q�WWd|i�XdS( slists the contents of a bundles1format: id, p1, p2, cset, delta base, len(delta)
c s��id|�d}x�to��i|�}|pPn|d}|d}|d}|d}|d}|d}�idt|�t|�t|�t|�t|�t|�f�|}qWdS( Ns
%s
RyR�R�tcst deltabasetdeltas%s %s %s %s %s %s
(R�RZR�t
deltachunkRR�( tnamedtchaint chunkdataRyR�R�R�R�R�(R_tgen(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt
showchunkss
#R�tmanifesttfilenameRys%s
N(
turlR'R@t
readbundleR�tchangelogheadertmanifestheaderR�t
filelogheaderRZR�RR�(
R_t
bundlepathR�RbRnR�R�RNR�Ry((R_R�sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s4
tdebugcheckstatec
Cs�|ii�\}}||i�}||i�}d}x�iD]�|i|}|djo8||jo+|itd�||f�|d7}n|djo8||jo+|itd�||f�|d7}n|djoE||jo8||jo+|itd�||f�|d7}qEqEWxS|D]K}|i|}|d jo+|itd
�||f�|d7}q?q?W|otd�} ti| ��ndS(
s0validate the correctness of the current dirstateitnrs%%s in state %s, but not in manifest1
iREs&%s in state %s, but also in manifest1
R-s+%s in state %s, but not in either manifest
tnrms'%s in manifest1, but listed as state %ss8.hg/dirstate inconsistent with current parent's manifestN(R�R�R�R�RRgRh(
R_R`tparent1tparent2tm1tm2terrorsRnR�terror((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�-s4
'
t
debugcommandss [COMMAND]cGs�x�tti��D]q\}}|id�did�}dig}|dD]}||dqP~�}|id||f�qWdS(s'list all available commands and optionst|it^s, is%s: %s
N(RttableRR�RR�R�(R_RR}tvalsR�R�Rb((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�Is
2t
debugcompletetoptionssshow the command optionss[-o] CMDc Ksc|id�o�g}tg}|o0ti|tt�\}}|i|d�nxp|D]h}x_|D]W}d|djoqjn|do|id|d�n|id|d�qjWq]W|idd i|��d
Snti |t�} |i
o8g}
| i�D]}|
di|d�q~
} n|idd it| ���d
S(s=returns the completion list associated with the given commandR�is(DEPRECATED)iis-%ss--%ss%s
s
NRv(
R]t
globaloptsR[tfindcmdR�R^R�R�R�tfindpossibleRtvaluesR(R_RRbR�totablestaliasestentryRNRWtcmdlistR�Rq((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�Qs*
8tdebugdagR�suse tags as labelssannotate with branch namestdotssuse dots for runstspacessseparate elements by spacess[OPTION]... [FILE [REV]...]cs�|id�}|id�}|oStititi�dt�|��td��D�����fd�}n�|o�|i�|id��|id���oOh�xF|i �i
�D].\}} �i�i| �g�i
|�q�Wn����fd�}ntitd ���xXti|�d
|dtdtd
|d|dd�D] }
|i|
�|id�qdWdS(sformat the changelog or an index DAG as a concise textual description
If you pass a revlog index, the revlog's DAG is emitted. If you list
revision numbers, they get labelled in the output as rN.
Otherwise, the changelog DAG of the current repo is emitted.
R�R�Rycssx|]}t|�VqWdS(N(Ru(R�Rj((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pys <genexpr>~sc3skxd�D]\}d|ttd��i|�D���ffV|�jod|d|ffVqqWdS(NR"css*x#|]}|djo |VqqWdS(i�N((R�R=((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pys <genexpr>�sR0sr%i(tlistR�t
parentrevs(Rj(trlogRO(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyteventss
0
R�R!c3s�d}x��D]�}�oF�i�i|��dd}||jod|fV|}q`nd|ttd��i|�D���ffV�o@�i|�}|o&x#|D]}d||ffVq�Wq�q
q
WdS(NR<iR�RER"css*x#|]}|djo |VqqWdS(i�N((R�R=((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pys <genexpr>�sR0(R�RyR�R�R�R](RIRjtnewbtlsR0(R!R�R�tlabels(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s
0sneed repo for changelog dagt addspacest
wraplabelstwrapannotationst
wrapnonlineartusedotstmaxlinewidthiFs
N(R]RzRXR{R�R|R^R�R�R�R+t
setdefaultRkR�RgRhRR�tdagtextlinesR�R�(R_R`tfile_RORbR�R�R�R0R"tline((R�R�ROR�R!R�sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�ls6' *
t debugdataR�sopen changelogR�s
open manifests-c|-m|FILE REVcKs�|id�p|id�od|}}n*|djotidtd���nti|d||�}y#|i|i|i |���Wn,t
j
o titd�|��nXdS(s)dump the contents of a data file revisionR�R�R�sinvalid argumentssinvalid revision identifier %sN(
R]RZR�tCommandErrorRR[t
openrevlogR�R
R�tKeyErrorRgRh(R_R`R�RkRbRj((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s
#t debugdatetextendedstry extended date formatss[-e] DATE [RANGE]cKs�|doti|ti�}nti|�}|id|�|idti|��|o.ti|�}|id||d��ndS(sparse and display a dateR�sinternal: %s %s
s
standard: %s
s
match: %s
iN(RgR�textendeddateformatsR�R�t matchdate(R_R4trangeRbR3R-((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��stdebugdiscoveryRmsuse old-style discoverytnonheadss/use old-style discovery with non-heads includeds([-l REV] [-r REV] [-b BRANCH]... [OTHER]R<c s�ti�i|��id��\}}ti��|���itd�ti|��t i
d�����fd�}�id�}|o�=|D]�t|d�}z�|i�} x�| o�| i
�id�}
|
d}|d jonq|d
jo+||
did�|
d
id��n9|djo+||
d
id�|
did��n|i�} q�WWd|i�Xq�WnDti��|�id��\}}
�id�}|||�dS(s2runs the changeset discovery protocol in isolationR�scomparing with %s
i#0c
s��id�o�|otid��nti��dt�\}}}t|�}�id�p��iddig}|D]}|t |�q�~��t
i�i�}|i
|i|��}|i|i|��}q
nti����\}} }t|�}t|�}
t�i��}�iddig}|D]}|t |�qN~��||jo�id�n|
|jo�id �ndS(
NRms.cannot use localheads with old style discoveryR R�sunpruned common: %s
Rvscommon heads: %s
slocal is subset
sremote is subset
(R]RgRht
treediscoverytfindcommonincomingR�R�R�R�Rtdagutilt revlogdagR�tancestorsettinternalizealltexternalizealltheadsetofconnectedstsetdiscoverytfindcommonheadsR*(
t
localheadstremoteheadsR;t_inthdsR�R"tdagR�tanytrheadstlheadsR�(R`tremoteR_Rb(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytdoit�s*% ;
t serverlogRjt;iRRtcgssiRvitunbNtremote_headt
local_head(R�RERDR]RFR�RRgthidepasswordtrandomtseedR'treadlineRR�R�RG(R_R`t remoteurlRbR!Rt
serverlogsR�R1R�tpartsR�t
remoterevst _checkoutt localrevs((RR`R_RbsA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s6*
+
+tdebugfilesettREVSPECcCsg|io'ti|�d}|i|d�nx/ti|d|�D]}|id|�qHWdS(s'parse and apply a fileset specificationis
s%s
N(RtfilesettparseR�t
getfilesetRZR�(R_R`texprttreeRn((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR!s
tdebugfsinfos[PATH]R�cCs�tidd�|idti|�odpd�|idti|�odpd�|idtid�odpd�tid�dS( s2show information detected about current filesystems.debugfsinfoR
s exec: %s
tyestnossymlink: %s
scase-sensitive: %s
N(Rgt writefileR�t checkexect checklinkt checkcaseR�R�(R_R{((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR(s((tdebuggetbundletHtheadsid of head nodetIDR;sid of common nodesREPO FILE [-H|-C ID]...cKsDti|||�}|id�ptid��nh}|o/g}|D]} |t| �qP~|d<n|o/g}
|D]} |
t| �q�~
|d<n|id|�}|idd�i�}hdd <d
d<dd<}
|
i|�}|t i
jotitd
���nt i|||�dS(s�retrieves a bundle from a repo
Every ID must be a full-length hex node id string. Saves the bundle to the
given file.
RCs.getbundle() not supported by target repositoryR;R*RR�R4R5R6R7R8R9s)unknown bundle type specified with --typeN(
R�RFtcapableRgRhRRCR]R?R@RARRM(R_trepopathR�R1R;RbR`R}R�RPR�R1RPRQ((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR/s//!tdebugignorecOsY|ii}t|dd�}|dj o|id|�ntitd���dS(s#display the combined ignore patternt
includepats%s
sno ignore patterns foundN(R�t_ignoretgetattrRZR�RgRhR(R_R`R�RbtignoreR6((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR56s
t
debugindextformatis
revlog formats[-f FORMAT] -c|-m|FILEc
Ks6ti|d||�}|idd�}|djotitd�|��n|iti@}|o
d}nd}|djo|i d|d �n'|djo|i d
|d�nxh|D]`}|i
|�} |o|i|�}
n|i|�}
|djo�y|i
| �}Wnttg}nX|i d||i|�|i|�|
|i|�t| �t|d�t|d�f�q�|djo}|i|�}|i d
||i|�|i|�|i|�|i|�|
|i|�|d|dt| �f
�q�q�WdS(s"dump the contents of an index fileR:R;iisunknown format %ds deltas bases rev offset length s& linkrev nodeid p1 p2
s' rev flag offset length size s# link p1 p2 nodeid
s"% 6d % 9d % 7d % 6d % 7d %s %s %s
s0% 6d %04x % 8d % 8d % 8d % 6d % 6d % 6d % 6d %s
N(ii(R[R�R]RgRhRRRztREVLOGGENERALDELTAR�Rytdeltaparentt chainbaseR�RtstarttlengthtlinkrevRR�tflagstrawsize(
R_R`R�RbRjR;tgeneraldeltatbasehdrR�RyR3tpptpr((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR:@s@
*/
3t
debugindexdotcCsd}|o*|i|�}t|�o
|}q7n|p+tititi�dt�|�}n|i d�x�|D]�}|i
|�}|i|�}|i d|i|d�|f�|dt
jo(|i d|i|d�|f�q}q}W|i d�dS(s(dump an index DAG as a graphviz dot fileRysdigraph G {
s
%d -> %d
iis}
N(RZRoR�RzRXR{R�R|R^R�RyR�RkR(R_R`R�RjtfilelogR�RyRF((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRHms
+
$,tdebuginstallc
CsTd�}d}|itd�ti�ytid�WnFtij
o7}|id|�|itd��|d7}nX|itd�tii t
��y\d d
k}d d
k}d d
k
}d d
k}t|�t|�t|�t|�fWnVtj
oJ}|id|�|itd��|itd��|d7}nXd d
k}|i�} |itd
�di| ��y|i|id��WnCtj
o7}|id|�|itd��|d7}nX|itd��|i�}
ti|
�pti|
i�d�}|po|
djo*|itd��|itd��q�|itd�|
�|itd��|d7}n|itd��y|i�WnFtij
o7}|id|�|itd��|d7}nX|p|itd��n|itd�|�|S(s;test Mercurial installation
Returns 0 on success.
cSsEtidd�\}}ti|d�}|i|�|i�|S(NRVshg-debuginstall-twb(ttempfiletmkstempR�tfdopenR�R�(tcontentstfdR�Rn((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt writetemp�s
isChecking encoding (%s)...
ttests %s
s* (check that your locale is properly set)
is#Checking installed modules (%s)...
i�Ns* One or more extensions could not be founds* (check that you compiled the extensions)
sChecking templates (%s)...
Rvsmap-cmdline.defaults5 (templates seem to have been installed incorrectly)
sChecking commit editor...
tvis0 No commit editor set and can't find vi in PATH
s6 (specify a commit editor in your configuration file)
s Can't find editor '%s' in PATH
sChecking username...
s1 (specify a username in your configuration file)
sNo problems detected
s1%s problems detected, please check your install!
(R�RRt fromlocalRgRhR�R�R{tdirnamet__file__tbdifftmpatchtbase85tosutiltdirt Exceptiont templaterttemplatepathR�t geteditortfindexeR�tusername(
R_RQtproblemstinstRWRXRYRZR]R=RjtcmdpathR#((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRJ�sd 0, )
t
debugknowns
REPO ID...c
Os�ti|||�}|id�ptid��n|ig}|D]}|t|�qI~�}|iddig}|D]} || odpdq�~��dS(s�test whether node ids are known to a repo
Every ID must be a full-length hex node id string. Returns a list of 0s and 1s
indicating unknown/known.
tknowns*known() not supported by target repositorys%s
R
t1t0N( R�RFR3RgRhRfRR�R�(
R_R4tidsRbR`R�RPRBR�Rn((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRe�s
0tdebugpushkeysREPO NAMESPACE [KEY OLD NEW]cOs�ti|h|�}|oG|\}}}|i||||�} |it| �d�| SnPxL|i|�i�D]5\}
}|id|
id�|id�f�qyWdS(s�access the pushkey key/value protocol
With two args, list the keys in the given namespace.
With five args, set a key to new if it currently is set to old.
Reports success or failure.
s
s%s %s
s
string-escapeN( R�RFtpushkeyR�RxtlistkeysRR�tencode(R_R4t namespacetkeyinfoRbttargettkeyRmtnewRjtkR((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRj�s
t debugpvecsA Bc Cs?ti||�}ti||�}ti|�}ti|�}||jo
d}nD||jo
d}n-||jo
d}n||Bo
d}n|itd�|�|itd�|�|itd�|i|if�|itd�t|i|i�ti|i |i �|i
|�|f�dS( Nt=t>t<R�sa: %s
sb: %s
sdepth(a): %d depth(b): %d
s.delta: %d hdist: %d distance: %d relation: %s
(RXR�tpvectctxpvecR�Rt_depthR�t_hammingt_vectdistance( R_R`RERItcatcbR�tpbR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRt�s$
#(tdebugrebuildstatesrevision to rebuild tos[-r REV] [REV]R�cCsSti||�}|i�}z#|ii|i�|i��Wd|i�XdS(sArebuild the dirstate as it would look like for the given revisionN(RXR�R�R�trebuildRyR�R(R_R`RkR�R�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�s
#tdebugrenamesrevision to debugs
[-r REV] FILEcOs�ti||id��}ti||f||�}x�|i|�D]�}||}|i�i|i��} |i|�}
| o2|i t
d�|
| dt| d�f�qG|i t
d�|
�qGWdS(sdump rename informationRks%s renamed from %s:%s
iis%s not renamed
N(RXR�R]RYR�RItrenamedtfilenodeR�R�RR(R_R`R]RaRbR�R-R�R�RWR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�s
2tdebugrevlogtdumpsdump index datas
-c|-m|FILEc.s�ti|d||�}|id�oQt|�}|id�d}t�}xt|�D]}|i|�} | djo
|} n|i|�}
|i |�\}}|i
|�}
||
}|t|i |��8}|i|�|id||||i|�|i
|�|i| �|i|
�|i|�|i|�|
|||i
|�t|�f
�q]WdSn|i}|d@}g}t}|ti@o|id�n|ti@ot}|id �n|p
d
g}nd}d}d}d}d}d}d}d}g}d+ddg}d+ddg}d+ddg}d�}t|�}x�t|�D]x}|i |�\}}|i|�}|djo||i
|�|�n|tjo|d
7}n|i|�} |tjo(|id�|d
7}|| |�qu|i||d
�|| |�||d
joD|d
7}||jo|d
7}q�||jo|d
7}q�qu||jo|d
7}qu||jo|d
7}qu|tjo|d
7}ququW||}!|||}"|d}#|dc|:<|d}$|dc|:<|d}%|dc||:<|$|%}&t|�|}'|#|&}(d�d��fd�})d�fd�}*d�}+|id|�|iddi|��|id�|*|&�},|)|&�}-|id|-|�|id|,|+||��|id|,|+|||��|id|-|�|id|,|+||��|id|,|+|!|��|id|-|&�|id|,|+|$|&��|id|,|+|%|&��|id�|)t|'|(��},|id|,|'�|id|,|(�|djo(|id�|id t|��n|id!t|��|id"t|��|!djo|id�|*|!�},|*|!d#�}-|id$|,|+||!��|djo^|id%|-|+||��|id&|-|+||��|id'|-|+|"|��n|o^|id(|,|+||!��|id)|,|+||!��|id*|,|+||!��q�nd+S(,s'show data and statistics about a revlogR�R�sV# rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads
ii�s'%d %d %d %d %d %d %d %d %d %d %d %d %d
i�tinlineRDs(none)lcSsc|ddjp||djo||d<n||djo||d<n|dc|7<dS(Niii(RZ(RR0((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytaddsize^s
"iis%%%dd
s%%%dd %s(%%5.2f%%%%)
cs�tt|��S(N(R�Rx(R�(tbasedfmtstr(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytdfmtstr�scs�tt|��d|fS(NRv(R�Rx(R�tpadding(tbasepcfmtstr(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytpcfmtstr�scSs|dt|�|fS(Nid(Re(tvalueR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytpcfmt�ssformat : %d
sflags : %s
s, s
srevisions : s merges : s normal : s full : s deltas : srevision size : savg chain length : scompression ratio : s4uncompressed data size (min/max/avg) : %d / %d / %d
s4full revision size (min/max/avg) : %d / %d / %d
s4delta size (min/max/avg) : %d / %d / %d
isdeltas against prev : s where prev = p1 : s where prev = p2 : s other : sdeltas against p1 : sdeltas against p2 : sdeltas against other : N(R[R�R]R�R�R�R�R=R>R�RCR\R?tendRR^RztREVLOGNGINLINEDATAR�R<R�RZRR@tsumR�R�ttuple(.R_R`R�RbRjtnumrevsttsR*RktdbasetcbaseR�R�trsRR;RBtgdeltat nummergestnumfulltnumprevtnump1tnump2tnumothert nump1prevt nump2prevtchainlengthstdatasizetfullsizet deltasizeR�R�Rt numdeltastnumoprevttotalrawsizet fulltotalt
deltatotalt totalsizetavgchainlent compratioR�R�R�tfmttfmt2((R�R�sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�$s
!+
"
"tdebugrevspeccCs�|iolti|�d}|iti|�d�ti||�}||jo|iti|�d�qvnti||�}x4||tt|���D]}|i d|�q�WdS(s�parse and apply a revision specification
Use --verbose to print the parsed tree before and after aliases
expansion.
is
s%s
N(
RtrevsetR$R�tprettyformattfindaliasesRYR�R�R�(R_R`R&R'tnewtreeR�Rq((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s
!tdebugsetparentssREV1 [REV2]cCseti||�i�}ti||d�i�}|i�}z|i||�Wd|i�XdS(s�manually set the parents of the current working directory
This is useful for writing repository conversion tools, but should
be used with care.
Returns 0 on success.
R:N(RXR�RyR�t
setparentsR(R_R`RR�tr1tr2R�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s
t
debugstatesdo not display the saved mtimetdatesortssort by saved mtimes[OPTION]...c Cszd}|}|o
d�}nd}x t|iii�d|�D]�}}|o{|ddjoGttidtid���} d}|| d | t|�}q�tidti|d��}n|d
d@o
d}
nd
|d
d@t i
@}
|id|d|
|d||f�qFWx@|ii�D]/}|it
d�|ii|�|f�qCWdS(s)show the contents of the current dirstateR
cSs|dd|dfS(iii((Rs((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRu�sRqii�s%Y-%m-%d %H:%M:%S itunsetRvii tlnks%3oi�s%c %s %10d %s%s
iscopy: %s -> %s
N(RZRR�t_mapRR�Rtstrftimet localtimeRgtumaskR�tcopiesRtcopied(R_R`RGR�ttimestrtshowdatetkeyfuncR�tentt
locale_lentmodeRn((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s.
,tdebugsubsrevision to checkcCszti||d�}x^t|ii��D]G\}}|id|�|id|d�|id|d�q+WdS(Nspath %s
s
source %s
is
revision %s
i(RXR�RZRtsubstateR+R�(R_R`RkR�RsR((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR� st debugwalkcOsti|d||�}t|i|��}|pdSndtg}|D]}|t|�qN~�tg}|D]}|t|i|��qx~�f} xX|D]P}| ||i|�|i|�odpdf}
|i d|
i
��q�WdS(s&show how files match on given patternsNsf %%-%ds %%-%ds %%stexactR
s%s
(RXRYRZR�R�R�R�R�R�R�trstrip(R_R`RaRbR-R+R�R�R�R�R�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR� s*:3t
debugwireargstthreetfourtfivesREPO [OPTIONS]... [ONE [TWO]]cOs�ti|||�}xtD]}||d=qWh}x/|i�D]!\}}|o|||<qDqDW|i||�} |i||�}
|id| �| |
jo|id|
�ndS(Nis%s
(R�RFt
remoteoptsRR�R�R�(R_R4R�RbR`toptR}RsRtres1tres2((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�" s
s^difftchangeschange made by revisions6[OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...c
Os5|id�}|id�}|id�}|id�}|o&|otd�}ti|��nU|o5ti||d�i�} || i�i�}
nti ||�\}
} |o| |
}
} nt
i||�}ti|| ||�}t
i||||
| |d|d|id��dS( sQdiff 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.
Alternatively you can specify -c/--change with a revision to see
the changes in that changeset relative to its first 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`.
.. container:: verbose
Examples:
- compare a file in the current working directory to its parent::
hg diff foo.c
- compare two historical versions of a directory, with rename info::
hg diff --git -r 1.0:1.2 lib/
- get change stats relative to the last change on some date::
hg diff --stat -r "date('may 2')"
- diff all newly-added files that contain a keyword::
hg diff "set:added() and grep(GNU)"
- compare a revision and its parents::
hg diff -c 9353 # compare against first parent
hg diff -r 9353^:9353 # same using revset syntax
hg diff -r 9353^2:9353 # compare against the second parent
Returns 0 on success.
RkR�RDRKs2cannot specify --rev and --change at the same timetlistsubreposRTN(R]RRgRhRXR�RZRyR�trevpairR>R�RYR[tdiffordiffstat(
R_R`RaRbROR�RDRKtmsgtnode2tnode1R�R-((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytdiff7 s">!s^exports
switch-parentsdiff against the second parentsrevisions to exports#[OPTION]... [-o OUTFILESPEC] REV...cOs�|t|idg��7}ti||�}|ptitd���nt|�djo|itd��n|itd��t i
||d|id�d|id�d ti||��d
S(s�dump 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, date,
branch name (if non-default), 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 hexadecimal digits)
:``%N``: number of patches being generated
:``%R``: changeset revision number
:``%b``: basename of the exporting repository
:``%h``: short-form changeset hash (12 hexadecimal digits)
:``%m``: first line of the commit message (only alphanumeric characters)
:``%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.
.. container:: verbose
Examples:
- use export and import to transplant a bugfix to the current
branch::
hg export -r 9353 | hg import -
- export all the changesets between two revisions to a file with
rename information::
hg export --git -r 123:150 > changes.txt
- split outgoing changes into a series of patches with
descriptive names::
hg export -r "outgoing()" -o "%n-%m.patch"
Returns 0 on success.
Rks&export requires at least one changesetisexporting patches:
sexporting patch:
R;RXt
switch_parentRbN(
R�R]RXRRgRhRR�R�R[texportR>R�(R_R`RRbRO((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��sAs^forgetcOsp|ptitd���nti|d||�}ti|||dddt�d}|odpdS(sjforget 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`.
.. container:: verbose
Examples:
- forget newly-added binary files::
hg forget "set:added() and binary()"
- forget files that would be excluded by .hgignore::
hg forget "set:hgignore()"
Returns 0 on success.
sno files specifiedRVR
RWiiN( RgRhRRXRYRZR[tforgetR^(R_R`RaRbR-Rc((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s
%tgrafttcontinuesresume interrupted grafttedits invoke editor on commit messagestDtcurrentdates&record the current date as commit datetcurrentusers$record the current user as committers[OPTION]... REVISION...c"Os�|id�o$|id�o|i�|d<n|id�o(|id�odti�|d<nd}|id�o
ti}nt}|do�t}|oti t
d���nyG|iid �i
�}g}|D]}|||i�q�}Wq�tj
o8} | itijo�nti t
d
���q�Xn@ti|�|pti t
d���nti||�}x>|id|�D]*}
|it
d
�|
�|i|
�q�W|pdSnx>|id|�D]*}
|it
d�|
�|i|
�q�pdSnh}x`|id|�D]L}|i�||i�<|i�id�}
|
o|i�||
<qRqRW|id�x#|id|�D]}|i�id�}
|
|jo�||
i�}||jo(|it
d�|�|i|�q�||
|jo6|it
d�||
|f�|i||
�q�q�|i�|joD||i�}|it
d�||i�f�|i|�q�q�W|pdSn|i�}z}xvt|id|��D]\\}}|d}|it
d�|i��|id�oqn|pzV|ii dd|idd��t!i"||i#�ttt|i$�i#��}Wd|ii ddd�X|o�|d d!jotg}||D]}
|||
i�d"q�}|ii%d di&|��ti t
d#�d$t
d%���qcnt}|i'|i#�t(�|i)i%�ti*||i�|i$�i��|i�id�}|p|i�}nh|d<}|i+�}|id�o|d}n|i,�}|id�o|d}n|i-d&|i.�d|d|d'|d(|�qWWd|i/�X|id�o6t0i1i2|i&d ��oti3|i&d ��nd!S()s+copy changes from other branches onto the current branch
This command uses Mercurial's merge logic to copy individual
changes from other branches without merging branches in the
history graph. This is sometimes known as 'backporting' or
'cherry-picking'. By default, graft will copy user, date, and
description from the source changesets.
Changesets that are ancestors of the current revision, that have
already been grafted, or that are merges will be skipped.
If a graft merge results in conflicts, the graft process is
interrupted so that the current merge can be manually resolved.
Once all conflicts are addressed, the graft process can be
continued with the -c/--continue option.
.. note::
The -c/--continue option does not reapply earlier options.
.. container:: verbose
Examples:
- copy a single change to the stable branch and edit its description::
hg update stable
hg graft --edit 9393
- graft a range of changesets with one exception, updating dates::
hg graft -D "2085::2093 and not 2091"
- continue a graft after resolving conflicts::
hg graft -c
- show the source of a grafted changeset::
hg log --debug -r tip
Returns 0 on successful completion.
R7R�R4R�s%d %dR�R�s&can't specify --continue and revisionst
graftstates$no graft state found, can't continuesno revisions specifieds%ld and merge()s'skipping ungraftable merge revision %s
i�s::. and %ldsskipping ancestor revision %s
s%ldResscanning for duplicate grafts
s::. - ::%lds%skipping already grafted revision %s
s6skipping already grafted revision %s (same origin %d)
s;skipping already grafted revision %s (was grafted from %d)
R�sgrafting revision %s
RUR_R�ROR
Niis
s$unresolved conflicts, can't continueR s&use hg resolve and hg graft --continueRFRRj(4R]RaRgtmakedateRZR[RlR^R�RhRR{R�t
splitlinesRktIOErrorterrnotENOENTR�RXRROR�tremoveR�RRRR�t enumerateR�R_R�tmergemodR�RyR�R�R�R�RR�tduplicatecopiesR7R4R�RkRR�R{R�t
unlinkpath(R_R`RORbRjtcontR�R�RyRcRkRiR�R"RjR�tposRtstatsR�t nodelinesReRR7R4((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s�6!!
/
"3
%-tgrepRhtprint0send fields with NULsprint all revisions that matchsCfollow changeset history, or file history across copies and renamessignore-casesignore case when matchingsfiles-with-matchess-print only filenames and revisions that matchsprint matching line numberss/only search files changed within revision ranges[OPTION]... PATTERN [FILE]...cs�ti}�id�o|tiO}nyti||��Wn3tij
o$}�itd�|�dSnXd\���id�od��nti |i
���fd��d tfd
��Y�h�h����fd��d��������fd
�}h�h�ti
|d|��}t} �id���������fd�}
xUti||�|
�D];}|i�}|i�i�}
xt�i|g��D]��||}�i|h�i|�}|�jo|ot�|<q�q�n�i|
h�i|p|g�}|p|oa|||||�}| p|} |o4�id�o#t�|<|ot�|<q�q�q�q�W�|=�|=q�W| S(s�search for a pattern in specified files and revisions
Search revisions of files for a regular expression.
This command behaves differently than Unix grep. It only accepts
Python/Perl regexps. It searches repository history, not the
working directory. It always prints the revision number in which a
match appears.
By default, grep only prints output for the first revision of a
file in which it finds a match. To get it to print every revision
that contains a change in match status ("-" for a match that
becomes a non-match, or "+" for a non-match that becomes a match),
use the --all flag.
Returns 0 if a match is found, 1 otherwise.
tignore_cases grep: invalid match pattern: %s
iR}s
R�tc3s�d}d}x�to��i||�}|pPn|i�\}}||id||�d7}|id||�dp|}|id|�dpt|�d}|d}||||||||!fVqWdS(Nis
i(R�tsearchtspantcounttrfindtfindR�(tbodytbegintlinenumRYtmstarttmendtlstarttlend(tregexp(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt
matchlines�s
'
t linestatecBs#eZd�Zd�Zd�ZRS(cSs(||_||_||_||_dS(N(R�Rtcolstarttcolend(tselfR�RR
R((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt__init__�s cSst|i|if�S(N(thashRR�(R((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt__hash__�scSs|i|ijS(N(R�(RRT((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt__eq__�s(t__name__t
__module__R
RR(((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR �s c sk�|i|g��||}xB�|�D]4\}}}}�||||�}|i|�q/WdS(N(R�R�( R�RkRR-tlnumtcstarttcendR�RP(tmatchesRR (sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytgrepbodys
c sstid||�}x�i�D]�}}}}}|djo-x�t||�D]}d||fVqTWq"|djo-x�t||�D]}d||fVq�Wq"|djoVx&t||�D]}d||fVq�Wx*t||�D]}d||fVq�"q"WdS(Ntinsertt+RR�treplace(tdifflibtSequenceMatcherRZtget_opcodesR�( RERItsmR%talotahitblotbhiR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytdifflinestatess$
cs��i�}�io
tipti}t}h}���fd�}�id�o�||�} n(g}
|D]}|
d|fqx~
} x� D]�}}�t|�g}
d
\}}}�id�o|
i t|i
��n�id�o|
i |�n�id�o |
i �i�i���n�id�o|
i |�i
���n�id�o.�|f}||joq�nd||<n7|i|i }|i|i|i!}|i|i}�i�i|
��|dj oe�id �o|�o�i�d
�ql�i�|��i|dd��i|�n�i��t}q�W|S(Ncs+���}ti|i�i����S(N(RgR�R�R�(tflog(tgetfileR�R�(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�sR�R
R|R7R4tfiles_with_matchesiRFs Binary file matchesRs
grep.match(NNN(RkRRgR�R�R^R]RxRZR�RRwR7R4R�R
RR�R�R�(R�R�tpstateststatesRkRttfoundtfilerevmatchesR�titerR�R0R�tcolstbeforeRYRwRq(R�R%R#teolR_Rb(R�R�sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytdisplaysL'
Rmcs�|i�}|i�}|i�}�i|h��i|h��i|g�}x\|D]T}�|�}y|i|�}Wntij
o
q]nX|i|�} �o| o| d}
|
o|
�i|h�|<n|�jo|
ot�|
<q]q]n|i|�|�|jo�|||i |��n|
p|}|�|joIy,|i|�}�|||i |��Wq�tij
oq�Xq]q]WdS(Ni(
RkR�R�R�R�tLookupErrorR�R�R�R�(R�tfnsRktpctxR�R�R�R$tfnodeR�R�tpfn(RRR�trevfilesRmR%R�(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytprepIs>
R�(R}s
N(treRCR]R(tcompileR�R�RRgtlrucachefuncRotobjectRXRYRZR^R[twalkchangerevsRkR�RR�(R_R`tpatternRaRbtreflagsRcR/R�R)R6R�RkR�R�R(R�R'Rj((R�R�RmR%R R#RR�R5RRRR.R_RbsA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s`#
-!#
%
R*s1show only heads which are descendants of STARTREVtSTARTREVttoposshow topological heads onlys)show active branchheads only (DEPRECATED)s#show normal and closed branch headss[-ct] [-r STARTREV] [REV]...c
s�d}d|jo#ti�|dd�i�}n|id�o2g}�i|�D]}|�|qZ~}neg}x6�i�D](}|�i|||id��7}q�Wg} |D]}| �|q�~ }|oXt�fd�|D��}
g}|D]$}|i �|
jo||q
q
~}n|id�oR|oK�i|�}g}
|D]$}|i�|jo|
|qlql~
}n|o�td�|D��}|
|ondi
d�|
|D��}td �}|id�o|td
�|d7}n|i|d|�q7n|pdSnt
|d
d��}ti|�|�}x|D]}|i|�qwW|i�dS(s�show current repository heads or show branch heads
With no arguments, show all repository branch heads.
Repository "heads" are changesets with no child changesets. They are
where development generally takes place and are the usual targets
for update and merge operations. Branch heads are changesets that have
no child changeset on the same branch.
If one or more REVs are given, only branch heads on the branches
associated with the specified changesets are shown. This means
that you can use :hg:`heads foo` to see the heads on a branch
named ``foo``.
If -c/--closed is specified, also show branch heads marked closed
(see :hg:`commit --close-branch`).
If STARTREV is specified, only those heads that are descendants of
STARTREV will be displayed.
If -t/--topo is specified, named branch mechanics will be ignored and only
changesets without children will be shown.
Returns 0 if matching heads are found, 1 if not.
RkR?R#c3s#x|]}�|i�VqWdS(N(R�(R�tbr(R`(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pys <genexpr>�sR"cssx|]}|i�VqWdS(N(R�(R�R ((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pys <genexpr>�ss, cssx|]}|VqWdS(N((R�RI((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pys <genexpr>�ss)no open branch heads found on branches %ss (started at %s)s
iRqcSs|i�S((Rk(Rs((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRu�sN(RZRXR�RyR]R*t branchmapR$R�R�R�RR�RR[R�R�R�(R_R`t
branchrevsRbR?R�R R*R�R�R!R�tdagheadsR�t haveheadstheadlessR�R�R�((R`sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR*�s@#
#2
&%<<t extensionsshow only help for extensionssshow only help for commandss
[-ec] [TOPIC]c
s�t�i�d�d��fd���fd�����fd��������fd�}d�����fd����fd�}���fd �}��fd
�}�o��djo�d} �o
|f}
nM|id�o
|f}
n0|id
�o
|f}
n||||f}
xD|
D]<}y|��d} PWqBtij
o}|} qBXqBW| o
| �q�n(�itd���id���dS(s�show 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.
Returns 0 if successful.
iPicsog}t}x/|D]'}t|�djo|\}}}}}n|\}}}}td�}td�|jo�ioqnd} |od|} nd|}
|o|td�|7}nt|t�o|
d|7}
t}n1|dj o#t|t�o|
d |7}
n|i | |
|f�qWt
i|d
�}|o|td�7}n|S(NitVALUEt
DEPRECATEDR
R�s--s (default: %s)s %s [+]s %sis3
[+] marked option can be specified multiple times
(R^R�RRt
isinstanceR�R�RZR�R�tminirstt maketable(R�R�t
multioccurtoptiontshortopttlongoptR<tdesctoptlabeltsotlotrst(R_(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytoptrst�s4
cs}d}|pdSnxQ|D]I\}}|d|7}|o(|d7}|�|�7}|d7}qqWdti||�S(NR
s
%s
s
(RJR;(toptlisttwidthRTttitleR�(RU(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytopttexts
cs��iogSn�ioG|itd�tf��djo|itd�d
f�q���djotd�}na�o�otd��}n>|o&td��od�pd}ntd ��}|i|df�dS(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 detailss+use "hg help %s" to show the full help texts=use "hg -v help%s" to show builtin aliases and global optionsRvR
s%use "hg -v help %s" to show more info(((RRR�RR�(RVR�R�(tfullR�R_(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt
addglobaloptss
c
s�y"ti|td��\}}WnBtij
o3}|id��fd�}�|�dSnXt|ddt�o!�p|d��ndSnd}t|�djoJ|di d�o|d|d7}q|d |d|df7}n|d
|d7}�oC�i
o8t|�djo%|td�d
i|d�7}nt
|di�}|ptd�}nti|dd�oW|dii d�otd�|did}q�d�|di|f}n�i
p�o|i�d}n|d|d7}ydti|�}t
|i�pd}d|i�jo(td�||f}|d|7}nWntj
onX�i
oG|do<|d7}|td�7}|d7}|�|d�7}n�io8|d7}|td�7}|d7}|�t�7}n�io
dgpg} ti|�d| �\}
}�i|
��ipK�p�itd�|�q��i
p�itd�|�q�ndS(Ntstrictics|id�i��S(R�(tlstripR�(Rq(RV(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRu,stbadaliasR
iR�s%s
s hg %s %s
shg %s
is
aliases: %s
s, s(no help text available)t
definitiont!sshell alias for::
%ssalias for: hg %s
%ss
s5use "hg help -e %s" to show help for the %s extensions
%s
soptions:s
sglobal options:Rtkeeps-
use "hg help %s" to show the full help text
s'
use "hg -v help %s" to show more info
(R[R�R�R�tAmbiguousCommandR}R8R^R�R�RRR�Rt__doc__RgtsafehasattrR`R�t
extensionsR�RR�RR�RJR;R�(R�R�R�RctselectRTtdoctmodR�Rbt formattedtpruned(t textwidtht
unknowncmdRUR[thelplistR_(RVsA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pythelpcmd%sr"
%%!
cs��djotd�}n
td�}h}h}xUti�D]G\}}|idd�d}|o||�oqBn|o(�djo|ditjoqBn�djo|id�oqBn|id�}�io|id�oqBn|di }|od |jo�i
oqBnt|�}|ptd
�}n|i�di
�||<|id�||<qBW|p�itd��dSn�i|�t|�}ttt|��} x�|D]�}�i
o5||idd�}
�id
|
||f�q��idti||�dd| |fdd| d��q��ptitd�ti��}|o!�idti|���n�itd��g}xCtiD]8\}
}}|it|
dtdt�d|f�q�Wtg}|D]}|t|d�q&~�}x2|D]&\}}�id|||f�qPWng}�|t��i�|���dS(NRZsbasic commands:
slist of commands:
R�iiR�RRHs(no help text available)sno commands defined
s, s %s:
%s
s%s
t
initindents %-*s t
hangindentRvisenabled extensions:s
%ss
additional help topics:
RqRKs %-*s %s
( RR�RR�RRR�R^R�RdRRR�R�R�RR�RBR�RR�RgtwrapR!tlistextsRftenabledRJR;t helptableR�R�(RgtheaderR tcmdsRqR#RnRhR1R-tcommandsRFttopicstnamesR�RPt
topics_lenRNRPRV(RlRYR\R�R_(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRnwsp
!
-1"
c s�x;tiD]!\}}}||joPq
q
Wti|��|ptd�}nti|d�o
|�}n�id|��idti |�dd��y1t
i|t��itd�||f�Wntij
onXdS(Ns(no help text available)t__call__s%s
s%stindentis4
use "hg help -c %s" to see help for the %s command
(
R!RuR�tUnknownCommandRRgReR�RJR;R[R�R�(R�RzRvRh(RlR_(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt helptopic�s"
#c
s�y/ti|�}t|i�p
td�}WnBtj
o6d}ti|�}|pti |��qtnXd|jo|d}}n|i
dd�\}}�itd�|i
d�d|f�|o*�iti
|����id�n|oqy
|i}Wntj
o
h}nXtg}|D]}||i
dd�d qC~�}�|i�n�itd
��dS(Nsno help text availables
R
is%s extension - %s
R�i�R�is@use "hg help extensions" for information on enabling extensions
(RfR�RRdRR�RZtdisabledextR�R~R�R�RJR;R�tcmdtabletAttributeErrorR�t__contains__( R�RiRhR1ttailtctR�Rqtmodcmds(RnRlR_(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pythelpext�s.
*
7cs�ti�|�idd��\}}}t|i�i�d}titd�|h||<dd�}�i t
i|����i d��i td��dS( NR_R]is,'%s' is provided by the following extension:R}is
s@use "hg help extensions" for information on enabling extensions
(RftdisabledcmdRoRRdR�R!RsRR�RJR;(R�RtextRiRhR�(RlR_(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt
helpextcmd�s
RZRFR�sMercurial Distributed SCM
s
N(tmint termwidthRZR]R�R~R�R(
R_R�RmR[RbRoRR�R�R�tqueriesRnRc(( RlRmRUR[R\RYRnR�R_sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pythelp_�s>$R?
sidentify|idsidentify the specified revisionR�sshow local revision numberR�sshow global revision idsshow branchs show tagssshow bookmarkss[-nibtB] [-r REV] [SOURCE]c
sR�o!|otitd���n|iotpt}
|p|p|p|p|}g}g}
|oUti|i|��\}}ti || |��ti
��|d�\}
}n�i�p�p|p|otitd���n|o|
o|
d}n|p
d}n�i
|��|p|o|
��g}n��fd�}|o|i|��q4|o9|io.di|��}|o|i|�q�q4n`|p�d}|i�}d}|p|p|o'ti�i��odpd}n|p|oGd dig}|D]}||
|i��qV~�|fg}n|oK|id dig}|D]}|t|i��q�~�|f�q<n^ti�|�}|p|o|
|i��g}n|o|it|i���n|o�|io�|i�}|d
jo|id|�ndi|i��}|o|i|�ndi|i��}|o|i|�q4n[|o|i|i��n|o|i|i��n|o|i|i��n|idd
i|��dS(szidentify the working copy or specified revision
Print a summary identifying the repository state at REV using one or
two parent hash identifiers, followed by a "+" if the working
directory has uncommitted changes, the branch name (if not default),
a list of tags, and a list of bookmarks.
When REV is not given, 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.
.. container:: verbose
Examples:
- generate a build identifier for the working directory::
hg id --id > build-id.dat
- find the revision corresponding to a tag::
hg id -n -r 1.3
- check the most recent revision of a remote repository::
hg id -r tip http://selenic.com/hg/
Returns 0 if successful.
s5there is no Mercurial repository here (.hg not found)s3can't query remote revision number, branch, or tagsiR�cswg}d�id�joWt��}g}�id�i�D]$\}}||jo||qBqB~}n|S(NRt
namespaces(RlRR(tbmsthexremoterevR�tbmtbmr(R`t remoterev(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytgetbmsW
s&%t/R
Rs%s%sR<s(%s)s%s
RvN(RgRhRR�RRR�RERDRFRGRZR�R�R�RR�R�R�RR�RyRxRkRXR�R�R�RR�(R_R`ReRkR�R�R�R�RRbR-R<RXROR!RUR�R�R�R�tchangedR�R=R�RIRN((R�R`sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytidentify
s|,#"
'D F
simport|patchRis]directory strip option for patch. This has the same meaning as the corresponding patch optionsbase path (DEPRECATED)tPATHs.skip check for outstanding uncommitted changess no-commits/don't commit, just update the working directorytbypasss2apply patch without touching the working directoryR�s4apply patch to the nodes from which it was generateds
import-branchs8use any branch information in patch (implied by --exact)s[OPTION]... PATCH...cs�|ptitd���n|f|}�id�}|oti|��d<nti��id�o
ti�n�id���o)�id�otitd���ny t�id�pd��Wn(t j
otitd ���nX�djp
�d
jotitd���n�o!�otitd���n�id
�p�id�o�oti
��n�d}�d�d}}} g��fd����������fd�}
z�y��i�}�id�p�i
�}�id�} n�i�}x1|D])}|djo&|itd��|i}
d}n?tii||�}|itd�|�ti||�}
t}x�ti|
�D]t}|
|||�\}}|ot}|i|d�n�p�id
�o�i�}q��|g}q�W|ptitd�|��qOqOW| o| i�n�o�idi���nWn�ii��nXWd| o| i �nt ||�XdS(s�import an ordered set of patches
Import a list of patches and commit them individually (unless
--no-commit is specified).
If there are outstanding changes in the working directory, import
will abort unless given the -f/--force flag.
You can import a patch straight from a mail message. Even patches
as attachments work (to use the body part, it must have type
text/plain or text/x-patch). From and Subject headers of email
message are used as default committer and commit message. All
text/plain body parts before first diff are added to commit
message.
If the imported patch was generated by :hg:`export`, user and
description from patch override values from message headers and
body. Values given on command line with -m/--message and -u/--user
override these.
If --exact is specified, import will set the working directory to
the parent of each patch before applying it, and will abort if the
resulting changeset has a different ID than the one recorded in
the patch. This may happen due to character set problems or other
deficiencies in the text patch format.
Use --bypass to apply and commit patches directly to the
repository, not touching the working directory. Without --exact,
patches will be applied on top of the working directory parent
revision.
With -s/--similarity, hg will attempt to discover renames and
copies in the patch in the same way as :hg:`addremove`.
To read a patch from standard input, use "-" as the patch name. If
a URL is specified, the patch will be downloaded from it.
See :hg:`help dates` for a list of formats valid for -d/--date.
.. container:: verbose
Examples:
- import a traditional patch from a website and detect renames::
hg import -s 80 http://example.com/bugfix.patch
- import a changeset from an hgweb server::
hg import http://www.selenic.com/hg/rev/5ca8c111e9aa
- import all the patches in an Unix-style mbox::
hg import incoming-patches.mbox
- attempt to exactly restore an exported changeset (not always
possible)::
hg import --exact proposed-fix.patch
Returns 0 on success.
s!need at least one patch to importR4R�R�t no_commits$cannot use --no-commit with --bypassRQissimilarity must be a numberids$similarity must be between 0 and 100s%cannot use --similarity with --bypassR�R R3RcsJ�id�o6t|�|jo#|i�titd���ndS(NR�s%patch is damaged or loses information(R]RtrollbackRgRhR(R`R"R�(Rb(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt
checkexacts#
cs�ti||�\}}}}}}} }
|pdSntd�}zkti|��}|o
|}n|o|i�}nd}|id|�t|�djo|i �t
�n�id�oH|p| oti
td���n�| } �|
pt
}
n~|
ojyA�| } �|
}
| |djo|d} �t
}
nWq�tij
o|\} }
q�Xn
|\} }
d}
�o�| |djoti�| i��n|
|djo �i| i�|
i��n�id�p�id�o�ii|pd�nt�}ti|�|d �d
|ddd�d
�t|�}�id�o|o�i |�q5q��id�p|
o
d}nti�|pg�}�i|�id�p|�id�p|d|d��}
��|
|�nL�id�p�id�o|pd}n
| i�}ti�}z��}y)ti|�| ||�|dd�Wn-tij
o}ti
t|���nXti �| i�|
i�f|�id�p|�id�p||||dti!�}�i"|i#��|i�}
��|
|�Wd|i$�X|
otd�t%|
�}n||
fSWdt&i'|�XdS(Nsapplied to working directorysmessage:
%s
iR�snot a Mercurial patchit
import_branchR<RR�teolmodeRQgY@R�R7R4RYRjs
created %s(NN((R>textractRZRR[t
logmessageRRR�R�RR]RgRhR�t RepoErrorR�R�RyR�R�R�R�R�RXt
matchfilesR�R�t filestoret patchrepot
PatchErrorRxt
makememctxRttsavecommitmessageRkR�RR�R�(R_thunkR�ttmpnameR.R7R4R�R�R�R�R�tcmdline_messageR"R�R-tstoreR#R�(tmsgsRR�RjR�R`RiRb(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyttryones�*
timportR�sapplying patch from stdin
tstdinsapplying %s
s
s%s: no diffs founds
* * *
N(!RgRhRR]R�R[RtRlReRfR�RZR�R�R�R�R�R�R�R{R�R�R'R^R>R�R�R�R�R�R�t
invalidateR(R_R`tpatch1tpatchesRbR4R3R�R�R�R�R�tpatchurlt patchfilethaspatchR�R�Ry((R�RR�RjRiR�R`RbsA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytimport_�s�P
(
$g
!
sincoming|ins*run even if remote repository is unrelatedsnewest-firstsshow newest record firstsfile to store the bundles intos'a remote changeset intended to be addedscompare bookmarkss(a specific branch you would like to pulls<[-p] [-n] [-M] [-f] [-r REV]... [--bundle FILENAME] [SOURCE]cKs*|id�o)|id�otitd���n|id�o�ti|i|�|id��\}}ti|||�}d|id�jo|i td��dSn|i
td �ti|��ti
|||�Sn|i|�|_zti||||�SWd
|`Xd
S(s�show 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.
Returns 0 if there are incoming changes, 1 otherwise.
R1RTs&cannot combine --bundle and --subreposRR�R�s!remote doesn't support bookmarks
iscomparing with %s
N(R]RgRhRR�RERDRFRlR�R�RRR�t_subtoppathtincoming(R_R`ReRbR!RT((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s s^inits![-e CMD] [--remotecmd CMD] [DEST]cKs&ti|||i|�dt�dS(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.
Returns 0 on success.
tcreateN(R�RFRDR�(R_R�Rb((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytinit�stlocates%search the repository as it is in REVs*end filenames with NUL, for use with xargstfullpaths-print complete paths from the filesystem roots[OPTION]... [PATTERN]...c Os
|id�odpd}ti||id�d�i�}d}ti||||dd�}d�|_x�||i|�D]}|o||ijoq�n|id �o|i |i
|�|�n(|i |o|i|�p||�d
}q�W|S(s�locate 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.
Returns 0 if a match is found, 1 otherwise.
R�R�s
RkiR<trelglobcSstS((R^(RsR((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRu�sR�iN(R]RXR�RZRyRYR~R�R�R�twjoinR�( R_R`RaRbR�RktretR-R�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s$'
s^log|historysfollow-firsts=only follow the first parent of merge changesets (DEPRECATED)s!show revisions matching date specR�sshow copied filesRstkeywords+do case-insensitive search for a given texts$show the specified revision or rangetremoveds*include revisions where files were removedsonly-mergessshow only merges (DEPRECATED)srevisions committed by usersonly-branchs?show only changesets within the given named branch (DEPRECATED)s-show changesets within the given named branchtPtprunes/do not display revision or any of its ancestorsthiddens#show hidden changesets (DEPRECATED)s[OPTION]... [FILE]cs�ti�d
|���ti��}d}d\�}�id�oR�id�o)tti��id���d}nti �d|��nt
��doti�d��n�idg��idg�}g}|D]} |�i
| �q��d<ti|��t��������fd �}
xVti���|
�D]<}||joPn�i|i��o|d7}qcqcW�i�d
S(s
show revision history of entire repository or files
Print the revision history of the specified files or the entire
project.
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.
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.
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:.
.. note::
for performance reasons, log FILE may omit duplicate changes
made on branches and will not show deletions. To see all
changes including duplicates and deletions, use the --removed
switch.
.. container:: verbose
Some examples:
- changesets with full descriptions and file lists::
hg log -v
- changesets ancestral to the working directory::
hg log -f
- last 10 commits on the current branch::
hg log -l 10 -b .
- changesets showing all modifications of a file, including removals::
hg log --removed file.c
- all changesets that touch a directory, with diffs, excluding merges::
hg log -Mp lib/
- all revision numbers that match a keyword::
hg log -k bug --template "{rev}\n"
- check if a given changeset is included is a tagged release::
hg log -r "a21ccf and ancestor(1.9)"
- find all changesets by some user in a date range::
hg log -k alice -d "may 2008 to jul 2008"
- summary of all changesets after the last tag::
hg log -r "last(tagged())::" --template "{desc|firstline}\n"
See :hg:`help dates` for a list of formats valid for -d/--date.
See :hg:`help revisions` and :hg:`help revsets` for more about
specifying revisions.
See :hg:`help templates` for more about pre-packaged styles and
specifying custom templates.
Returns 0 on success.
iR�RkitendrevR4R�tonly_branchcsI|i�}g}�ii|�D]}|tjo||q#q#~}�id�ot|�djodSn�id�ot|�djodSn�id�o|i��djodSn�id�o|i�odSn�o �|i�d�odSnt i
}�id�ob||i��}xMg}�dD]} ||| �qY~D]}
|
|joPqsqsWdSn�id�o�||i��}||i��}|d i
|i���}xgg}
�dD]} |
|| �q�D]2}
|
|jp|
|jp
|
|joPqqWdSnd}�dj oY|oRg}xI|i�D]7}�||�}|o|i||df�q}q}Wnd}�id
�p�id�oJ�id�p�id
�o ti�d|dd�}q,�}n�i|d|d|�dS(Nt no_mergesitonly_mergesR�R�iR7R�RvR>RDRmtfollow_firstR<R{R�R�(RkR�R�RR]R�R�R�R4RR?R7RkR�R�RZR�RXRYR�(R�R1RkR�R=R�R?tluserR�RsRstldesctlfilesR�R�R�Rt
revmatchfn(R�R�tdfR`t
getrenamedRb(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR6�sX!##' ,
,'
#
N(NN(RXRYRZR[tloglimitR]R�Rt
templatekwtgetrenamedfnR^RgR�tlookupbranchR�R�R;tflushRkR�(R_R`RaRbRAR�R�R!R�RIR6R�((R�R�R�R`R�RbsA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytlog
s,j)".3
srevision to displayslist files from all revisionss[-r REV]c
Ks|id�o|p|otitd���ng}d}d}t|�}t|�} |i�}
zpxi|ii�D]X\}}}
|
djo<|| |jo*|| |jo|i||| !�q�q�WWd|
i �Xx%t
|�D]}|id|�q�Sn|o |otitd���n|p
|}nhd d
<dd<d
d<}ti
||�}xv|D]n}|io%|idt|i�|��n|io|i||i|��n|id|�q�WdS(s output 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.
If option --all is specified, the list of all files from all revisions
is printed. This includes deleted and renamed files.
Returns 0 on success.
R�s#can't specify a revision with --allsdata/s.iiNs%s
s please specify just one revisions644 @ R0s755 * Rss644 R
s%40s (R]RgRhRR�R�R�t datafilesR�RRR�RXR�R�RR�RRB(R_R`RyRkRbtresRVtsuffixtplentslenR�R�RIRRntdecorR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s@0!
!
%
s^merges&force a merge with outstanding changessrevision to mergetpreviews1review revisions to merge (no merge is performed)s[-P] [-f] [[-r] REV]c
Ks�|id�o |otitd���n|p|id�}n|py|di�}|i|�}t|�djo5titd�|t|�fdtd���n|ii �}t|�djo�t|i
��djo)titd�|dtd ���ntd
�d}}||i|�jotd�}nti|d|��n||jo%titd�dtd
���n||djo|dp|d}nti
||�i�}|id�o�|id�} |i|�}
|iid| gd|
g�}ti|||�}x|D]}|i||�qMW|i�dSnzE|iidd|idd��ti||d|id��SWd|iddd�XdS(s�merge 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.
``--tool`` can be used to specify the merge tool used for file
merges. It overrides the HGMERGE environment variable and your
configuration files. See :hg:`help merge-tools` for options.
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.
:hg:`resolve` must be used to resolve unresolved files.
To undo an uncommitted merge, use :hg:`update --clean .` which
will check out a clean copy of the original merge parent, losing
all changes.
Returns 0 on success, 1 if there are unresolved files.
Rks please specify just one revisionis<branch '%s' has %d heads - please merge with an explicit revR srun 'hg heads .' to see headsis<branch '%s' has one head - please merge with an explicit revsrun 'hg heads' to see all headssnothing to mergesuse 'hg update' insteads(working directory not at a head revisions2use 'hg update' or merge with an explicit revisionii�R�R�R;R*R_R�ROR
R N(R]RgRhRRZR�R$R�R�R�R*R�RXR�RyR�tfindmissingR[R�R�R�R_R�R�R�(
R_R`RyRbR�RvR�R�R R�R�R�R�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��sP$
*!
"#soutgoing|outs6a changeset intended to be included in the destinations(a specific branch you would like to pushs&[-M] [-p] [-n] [-f] [-r REV]... [DEST]cKs|id�o�|i|pd|pd�}ti||id��\}}ti|||�}d|id�jo|itd��dSn|itd�t i
|��ti|||�Sn|i|pd|pd�|_
zti||||�SWd |`
Xd S(
sXshow changesets not found in the 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 details of valid destination formats.
Returns 0 if there are outgoing changes, 1 otherwise.
Rsdefault-pushR<R�R�s!remote doesn't support bookmarks
iscomparing with %s
N(R]RDR�RERFRlR�RR�RgRRR�R�RS(R_R`R�RbR!RT((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRSOs ! #R�s&show parents of the specified revisions[-r REV] [FILE]c Ks�ti||id�d�}|o8ti||f|�}|i�pt|i��djoti t
d���n|i�d}g}xU|i�D]G}|pq�ny|i|i
|��Wq�tij
oq�Xq�W|pti t
d�|��n|i|�}g} |D](}
| |i|i|i|
���q(~ }n.g}|i�D]}||i�qn~}ti|||�}
x0|D](}|tjo|
i||�q�q�W|
i�dS(s�show 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.
Returns 0 on success.
Rkis%can only specify an explicit filenameis'%s' not found in manifest!N(RXR�R]RZRYtanypatsR�R�RgRhRR�R�R�R�R0RoR�RARkRyR[R�RR�R�(R_R`R�RbR�R-t filenodestcptflR�R�R=R�R�R"((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�us4&
@-
tpathss[NAME]cCs�|oxxL|id�D];\}}||jo"|idti|��dSqqW|ip|itd��ndSn`x\|id�D]K\}}|io|id|�q�|id|ti|�f�q�WdS(s�show aliases for remote repositories
Show definition of symbolic path name NAME. If no name is given,
show definition of all available names.
Option -q/--quiet suppresses all output when searching for NAME
and shows only the path names when listing all definitions.
Path names are defined in the [paths] section of your
configuration file and in ``/etc/mercurial/hgrc``. If run inside a
repository, ``.hg/hgrc`` is used, too.
The path names ``default`` and ``default-push`` have a special
meaning. When performing a push or pull operation, they are used
as fallbacks if no location is specified on the command-line.
When ``default-push`` is set, it will be used for push and
``default`` will be used for pull; otherwise ``default`` is used
as the fallback for both. When cloning a repository, the clone
source is written as ``default`` in ``.hg/hgrc``. Note that
``default`` and ``default-push`` apply to all inbound (e.g.
:hg:`incoming`) and outbound (e.g. :hg:`outgoing`, :hg:`email` and
:hg:`bundle`) operations.
See :hg:`help urls` for more information.
Returns 0 on success.
R�s%s
Nsnot found!
is%s = %s
(tconfigitemsR�RgRRR�RR�(R_R`R�R�R{((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s
s^phaseRrsset changeset phase to publictdraftsset changeset phase to drafttsecretsset changeset phase to secretsallow to move boundary backwardstarget revisions[-p|-d|-s] [-f] [-r] REV...cs�d }xXtti�D]G\}}||o0|d j otitd���n|}qqWt|�}|i|d�|ptitd���nt i
||�}d }d}|d joBx�D]3} || }
|id|
i�|
i
�f�q�Wn�|i�}z�g}|id|�D]}
||
i�q1~}|ptitd���n|i}
ti|||�|doti|||�nWd |i�X|
d j o�}|i�t�fd
�t|
�D��}g}|D],}�||i�|jo||qq~}|o'|itd�t|��d}n|o9td
�|}|o|i|�q�|i|�q�|itd��d}n|S(s�set or show the current phase name
With no argument, show the phase name of specified revisions.
With one of -p/--public, -d/--draft or -s/--secret, change the
phase value of the specified revisions.
Unless -f/--force is specified, :hg:`phase` won't move changeset from a
lower phase to an higher phase. Phases are ordered as follows::
public < draft < secret
Return 0 on success, 1 if no phases were changed or some could not
be changed.
sonly one phase can be specifiedRksno revisions specifiedis%i: %s
s%ldsempty revision setR Nc3s)x"|]\}}|�|jVqWdS(N((R�R�RW(tnewdata(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pys <genexpr>ssBcannot move %i changesets to a more permissive phase, use --force
is phase changed for %i changesets
sno phases changed
(RZR�Rqt
phasenamesRgRhRR�R�RXRR�RktphasestrR�R�Ryt _phaserevtadvanceboundarytretractboundaryRR�R�R�R�R�(R_R`RORbttargetphasetidxR�R�R�RjR�R�R�tolddatatchangesR�R"RcR�((R�sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRp�s^
+3
"/
c Csp|djodSn|o�|di�}yti||�}Wn9tij
o*}|itd�t|��dSnX|oM|oEti||g|di��o|i td�|i
�q�n|Sn|djoqt|i��}||jo|i td��ql|djo|i td��ql|i td��n|i td ��dS(
NiR�snot updating: %s
supdating bookmark %s
is3(run 'hg heads' to see heads, 'hg merge' to merge)
s5(run 'hg heads .' to see heads, 'hg merge' to merge)
s(run 'hg heads' to see heads)
s((run 'hg update' to get a working copy)
(
RyR�R�RgRhR�RRxRR�RR�R$( R_R`tmodheadst optupdateRUtmovemarkfromR�Rctcurrentbranchheads((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytpostincomings*
#"
s^pullR�s3update to new branch head if changesets were pulleds,run even when remote repository is unrelatedRsbookmark to pulltBOOKMARKs9[-u] [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [SOURCE]cKs�ti|i|�|id��\}}ti|||�}|itd�ti|��ti ||||id��\}}|id�ot|p
g}n|i
d�}xQ|dD]A} | |jotitd�| ��n|i|| �q�Wn|ofy.g}
|D]}|
|i
|�q~
}Wqwtij
o"td�}ti|��qwXn|i|d|d |id ��}
ti||||�|o%t|ii|i
|���}n||_z%t|||
|id
�|�}Wd|`X|id�oXxD|dD]8} |itd�| �||| i�|i| <q0Wti|�n|S(
s!pull 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 add those changes to the repository, you should use :hg:`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.
Returns 0 on success, 1 if an update had unresolved files.
R�spulling from %s
RkRRsremote bookmark %s not found!sOother repository doesn't support revision lookup, so a rev cannot be specified.R*R R�Nsimporting bookmark %s
(R�RERDR]RFR�RRgRRGRlRhR�R�R�tCapabilityErrorRaRtupdatefromremoteRxR�RkR�R�RyRR�(R_R`ReRbR!RTRORUtrbRIR�RkR^R�R�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRa7sD* '
.$% %s^pushs
force pushsbookmark to pushs
new-branchsallow pushing a new branchs2[-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]cKs�|id�o_x\|dD]L}||ijo|idg�i|�q|idg�id�qWn|i|pd|pd�}ti||id��\}}|itd�t i
|��ti||||id��\}}ti|||�}|o.g} |D]}
| |i
|
�q~ }n||_zU|d}|i}x;t|�D]-}
|i|
�i|�d jotSqmqmWWd
|`X|i||id�d|d
|id��}|}|id�o |id�}x�dD]�||ijo+|itd�|�||i�}nJ||jo!|itd�|�d}n|itd�|�dS|i|d�}|id|||�}|p,|itd�|�|p
d}q�
q
Wn|S(sApush changes to the specified destination
Push changesets from the local repository to the specified
destination.
This operation is symmetrical to pull: it is identical to a pull
in the destination repository from the current one.
By default, push will not allow creation of new heads at the
destination, since multiple heads would make it unclear which head
to use. In this situation, it is recommended to pull and merge
before pushing.
Use --new-branch if you want to allow push to create a new named
branch that is not present at the destination. This allows you to
only create a new branch without forcing other changes.
Use -f/--force to override the default behavior and push all
changesets on all branches.
If -r/--rev is used, the specified 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.
Returns 0 if push was successful, 1 if nothing to push.
RRkR:sdefault-pushR<R�spushing to %s
R
iNR ROt newbrancht
new_branchRsexporting bookmark %s
sdeleting remote bookmark %s
s>bookmark %s does not exist on the local or remote repository!
isupdating bookmark %s failed!
(R]RR�R�RDR�RER�RRgRRGRFR�R�R�RtsubtpushR^RlRR�Rk(R_R`R�RbRIR!RORURTR�RkRqtsubsRPtresultR�RrRmRj((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��sZ)! ! '.
trecovercCs"|i�oti|�SndS(s6roll 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.
Returns 0 if successful, 1 if nothing to recover or verify fails.
i(RR�tverify(R_R`((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�s
s
^remove|rmsrecord delete for missing filess2remove (and delete) file even if added or modifiedcOs%d}|id�|id�}}|o!|otitd���nti|d||�}|id|dt�}|d|d|d|d f\} }
}}x�|i �D]}}
|
|i
jogtii
|i|
��oJtii|i|
��o$|itd
�|i|
��nd}q�q�W|o| |||
}n�|oI|}x�| |
|D],}
|itd�|i|
��d}qtWny||}x4| D],}
|itd�|i|
��d}q�Wx4|
D],}
|itd
�|i|
��d}q�St|�D]E}
|ip|i|
�o$|itd�|i|
��q-q-W|i�}z�|puxr|D]f}
|
|
joq�nyti|i|
��Wq�tj
o#}|itijo�q��Xq�Wn|di|�Wd|i�X|S(sremove the specified files on the next commit
Schedule the indicated files for removal from the current branch.
This command schedules the files to be removed at the next commit.
To undo a remove before that, see :hg:`revert`. To undo added
files, see :hg:`forget`.
.. container:: verbose
-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
======= == == == ==
Note that remove never deletes files in Added [A] state from the
working directory, not even if option --force is specified.
Returns 0 on success, 1 if any warnings encountered.
iRwR sno files specifiedRYR�iiis#not removing %s: file is untracked
s=not removing %s: file still exists (use -f to force removal)
s<not removing %s: file is modified (use -f to force removal)
sCnot removing %s: file has been marked for add (use forget to undo)
sremoving %s
N(R]RgRhRRXRYRZR�R�R�R�R�R{tisdirR�R�R�RRR�R�R�R�tOSErrorR�R�R�R(R_R`RaRbR�RwR R-RPtmodifiedtaddedtdeletedR�RnR�R�Rc((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��sh+.
-$
(
srename|move|mvs)record a rename that has already occurreds[OPTION]... SOURCE... DESTc
OsA|it�}z ti||||dt�SWd|i�XdS(s?rename 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`.
Returns 0 on success, 1 if errors are encountered.
RN(R�R^R[R�R�R(R_R`RaRbR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRSs tresolvesselect all unresolved filesR�s!list state of files needing mergeRsmark files as resolvedtunmarksmark files as unresolveds no-statusshide status prefixcOs�g}di�D]}||i|�q~\}}}} }
| o|p|p|o |otitd���n|o |otitd���n|p|p| p|p|ptitd���nti|�}ti|d||�}d}
xp|D]h}||�oU| oe|
o|i
d|�qw|i
d||i�|fdd hd
d<dd
<||�q{|o|i|d
�q{|o|i|d�q{|d}|i
�d}|i|�}ti||d�zC|idd|idd��|i|||�o
d}
nWd|iddd�Xti|d|d�qqW|i�|
S(s�redo merges or set/view the merge status of files
Merges with unresolved conflicts are often the result of
non-interactive merging using the ``internal:merge`` configuration
setting, or a command-line merge tool like ``diff3``. The resolve
command is used to manage the files involved in a merge, after
:hg:`merge` has been run, and before :hg:`commit` is run (i.e. the
working directory must have two parents). See :hg:`help
merge-tools` for information on configuring merge tools.
The resolve command can be used in the following ways:
- :hg:`resolve [--tool TOOL] FILE...`: attempt to re-merge the specified
files, discarding any previous merge attempts. Re-merging is not
performed for files already marked as resolved. Use ``--all/-a``
to select all unresolved files. ``--tool`` can be used to specify
the merge tool used for the given files. It overrides the HGMERGE
environment variable and your configuration files. Previous file
contents are saved with a ``.orig`` suffix.
- :hg:`resolve -m [FILE]`: mark a file as having been resolved
(e.g. after having manually fixed-up the files). The default is
to mark all unresolved files.
- :hg:`resolve -u [FILE]...`: mark a file as unresolved. The
default is to mark all resolved files.
- :hg:`resolve -l`: list files which had or still have conflicts.
In the printed list, ``U`` = unresolved and ``R`` = resolved.
Note that Mercurial will not let you commit files with unresolved
merge conflicts. You must use :hg:`resolve -m ...` before you can
commit after a conflicting merge.
Returns 0 on success, 1 if any files fail a resolve attempt.
sall mark unmark list no_statusstoo many options specifieds can't specify --all and patternssAno files or directories specified; use --all to remerge all filesis%s
s%s %s
Rsresolve.t
unresolvedR6tresolvedRji�s.resolveR_R�ROR
iNs.orig(R�R]RgRhRR�t
mergestateRXRYRZR�tupperRR�R�tcopyfileR�RRR�(R_R`RaRbR�RWR�RRR�tnostatustmsR-R�RntwctxtmctxRE((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRnsF/?##
&
R�s*revert all changes when no arguments givenstipmost revision matching dates revert to the specified revisions no-backups"do not save backup copies of filess[OPTION]... [-r REV] [NAME]...cOs�|id�oJ|id�otitd���nti|||d�|d<n|ii�\}}|id�o2|tjo%titd�dtd���nt i
||id��}|o�id�o�td�}|tjo%td �}ti|d|��nti|i��} |i
�}
|
|jo;| otd
�|i�}q�td�|i�}n$| otd�}n
td
�}ti|d|��nti|||||f||�S(sprestore files to their checkout state
.. note::
To check out earlier revisions, you should use :hg:`update REV`.
To cancel a merge (and lose your changes), use :hg:`update --clean .`.
With no revision specified, revert the specified files or directories
to the contents they had in the parent of the working directory.
This restores the contents of files to an unmodified
state and unschedules adds, removes, copies, and renames. If the
working directory has two parents, you must explicitly specify a
revision.
Using the -r/--rev or -d/--date options, revert the given files or
directories to their states as of a specific revision. Because
revert does not change the working directory parents, this will
cause these files to appear modified. This can be helpful to "back
out" some or all of an earlier change. See :hg:`backout` for a
related method.
Modified files are saved with a .orig suffix before reverting.
To disable these backups, use --no-backup.
See :hg:`help dates` for a list of formats valid for -d/--date.
Returns 0 on success.
R4Rks'you can't specify a revision and a dates,uncommitted merge with no revision specifiedR s'use "hg update" or see "hg help revert"R�s!no files or directories specifieds[uncommitted merge, use --all to discard all changes, or 'hg update -C .' to abort the mergesRuncommitted changes, use --all to discard all changes, or 'hg update %s' to updates:use --all to revert all files, or 'hg update %s' to updates5uncommitted changes, use --all to discard all changessuse --all to revert all files(R]RgRhRR[tfinddateR�R�RRXR�RR�RyRkR�(R_R`RaRbR�R�R�R�R tdirtyRy((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s6$!
R�signore safety measurescKs(|id|id�d|id��S(s0roll back the last transaction (dangerous)
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 the destination)
- unbundle
To avoid permanent data loss, rollback will refuse to rollback a
commit transaction if it isn't checked out. Use --force to
override this protection.
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.
Returns 0 on success, 1 if no rollback data is available.
tdryrunRUR (R�R](R_R`Rb((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�s#R�cCs|i|id�dS(s�print the root (top) of the current working directory
Print the root directory of the current repository.
Returns 0 on success.
s
N(R�R�(R_R`((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR�<ss^servet accesslogs#name of access log file to write totdaemonsrun server in backgroundsdaemon-pipefdssused internally by daemon modetEterrorlogs"name of error log file to write totports!port to listen on (default: 8000)tPORTtaddresss.address to listen on (default: all interfaces)tADDRs0prefix path to serve from (default: server root)R�s6name to show in web pages (default: working directory)sweb-confs3name of the hgweb config file (see "hg help hgweb")swebdir-confs*name of the hgweb config file (DEPRECATED)spid-files#name of file to write process ID totstdiosfor remote clientst cmdservert templatessweb templates to usestemplate style to uset6tipv6suse IPv6 in addition to IPv4tcertificatesSSL certificate filec
s-�do$�dotitd���n�fd�}�do'|�ti���}|i�n�do.|�ti���d�}|i�Sn�id�o ti �id���d<n�o
�i
p�}d}x~|i�D]p}�i|d�}|djoqn|i
d||��o*�i|jo�ii
d||�qqW�id �p
�id
�}|p-�ptitd���n�i}nti|d���d
tf���fd��Y} | �} ti�d| id| i�dS(s�start stand-alone webserver
Start a local HTTP repository browser and pull server. You can use
this for ad-hoc sharing and browsing of repositories. It is
recommended to use a real web server to serve a repository for
longer periods of time.
Please note that the server does not implement access control.
This means that, by default, anybody can read from the server and
nobody can write to it by default. Set the ``web.allow_push``
option to ``*`` to allow everybody to push to the server. You
should use a real web server if you need to authenticate users.
By default, the server logs accesses to stdout and errors to
stderr. Use the -A/--accesslog and -E/--errorlog options to log to
files.
To have the server choose a free port number to listen on, specify
a port number of 0; in this case, the server will print the port
number it uses.
Returns 0 on success.
RRs#cannot use --stdio with --cmdservercs*�djotitd���ndS(Ns5There is no Mercurial repository here (.hg not found)(RZR�R�R((R`(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt checkrepo|s
RsUname templates style address port prefix ipv6 accesslog errorlog certificate encodingR
twebtweb_conftwebdir_confs5There is no Mercurial repository here (.hg not found)tbaseuitservicecs&eZ���fd�Zd�ZRS(csJti�tii���|_�do�iodSn|iio|iiid�d}nd}d|ii }|djo
d}n|ii
}|djo
d}nd|jod |}n|ii}d|jod |}n�do
�i}n
�i
}|td
�|||||ii f�dS(NRR�R
s:%ds:80s0.0.0.0RR}s[%s]s-listening at http://%s%s/%s (bound to %s:%d)
(Rgtsetsignalhandlerthgwebtservert
create_serverthttpdRRVRRtaddrtfqaddrR�R�R(RRVRtbindaddrR/R�(R_tappRb(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s.
cSs|ii�dS(N(R-t
serve_forever(R((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytrun�s(RRR�R3((R_R1Rb(sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR(�s tinitfntrunfnN(NR
(RgRhRt sshserverR2t
commandserverR+tserveR]tgetportR'R�RZR�R_R�R�R�R*R:R[R(R�R3(
R_R`RbR#RPR'RVRWtvalR(((R1R`R_RbsA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR8Fs@3
"$ sshowconfig|debugconfigt untrusteds$show untrusted configuration optionss[-u] [NAME]...cOsx%ti�D]}|id|�q
Wt|id��}|o�g}|D]}d|jo||qOqO~}g} |D]}d|jo| |q�q�~ }
t|
�djp|
o |otitd���q�nx%|i d|�D]\}}}
t
|
�idd�}
|d|}|o�x�|D]�}||jo;|id|i|||��|i
d ||
f�q<||jo4|id|i|||��|i
|
d�q<q<Wq�id|i|||��|i
d ||
f�q�
S(s�show combined config settings from all hgrc files
With no arguments, print names and values of all config items.
With one argument of the form section.name, print just the value
of that config item.
With multiple arguments, print names and values of all config
items with matching section names.
With --debug, the source (filename and line number) is printed
for each config item.
Returns 0 on success.
sread config from: %s
R;R�isonly one config item permitteds
s\ns%s: s%s=%s
N(RXtrcpathRR�R]R�RgRhRt
walkconfigRxRtconfigsourceR�(R_R`R�RbRnR;R�RtsectionsR�R+R�R�R�tsectname((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyt
showconfig�s6
22!
s
^status|stsshow status of all filesRsshow only modified filesRsshow only added filessshow only removed filesRs%show only deleted (but tracked) filessshow only files without changestunknowns%show only unknown (not tracked) filestignoredsshow only ignored filessshow source of copied filessshow difference from revisions$list the changed files of a revisioncOs/|id�}|id�}|o&|otd�}ti|��nU|o5ti||d�i�}||i�i�}nti ||�\}}|o
|i
�pd} |id�odpd}
h}di�}g}
|D]!}|i|�o|
|q��}|id �o*||io|d
dgp|7}n|p#|io|d
p|d }n|i
||ti||||�d
|jd|jd|j|id��}t|d|�}|id �p|id�o/|id�oti||||�}n|id|�}d|
}|id�od|
}nx�|D]�\}}}||jo�d|}x�|D]v}|i�|id|||i|| �d|�||jo1|idd|
|i||| �dd�q�q�WqrqrW|i�dS(s�show changed files in the working directory
Show status of files in the repository. If names are given, only
files that match are shown. Files that are clean or ignored or
the source of a copy/move operation, are not listed unless
-c/--clean, -i/--ignored, -C/--copies or -A/--all are given.
Unless options described with "show only ..." are given, the
options -mardu are used.
Option -q/--quiet hides untracked (unknown and ignored) files
unless explicitly requested with -u/--unknown or -i/--ignored.
.. note::
status may appear to disagree with diff if permissions have
changed or a merge has occurred. The standard diff format does
not report permission changes and diff only reports changes
relative to one merge parent.
If one revision is given, it is used as the base revision.
If two revisions are given, the differences between them are
shown. The --change option can also be used as a shortcut to list
the changed files of a revision from its first parent.
The codes used to show the status of files are::
M = modified
A = added
R = removed
C = clean
! = missing (deleted by non-hg command, but still tracked)
? = not tracked
I = ignored
= origin of the previous file listed as A (added)
.. container:: verbose
Examples:
- show changes in the working directory relative to a
changeset::
hg status --rev 9353
- show all changes including copies in an existing changeset::
hg status --copies --change 9353
- get a NUL separated list of added files, suitable for xargs::
hg status -an0
Returns 0 on success.
RkR�s2cannot specify --rev and --change at the same timeR
R�R�s
s4modified added removed deleted unknown ignored cleanR�iR�iRCRBRTsMAR!?ICR�t no_statusR�s%s %ss%.0s%ssstatus.sstatus pathRR�s %ss
status.copiedN(R]RRgRhRXR�RZRyR�R�R|R�RR�RYR�R�t
pathcopiest formattert startitemR�tpathtoR�(R_R`RaRbROR�R�R�R�RR�R�R(R�RsR�RDtchangestatestfmR;R�tcharR�RRn((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��sRG5*#"1
&s^summary|sumRscheck for push and pulls
[--remote]c2&Ks�|dF}|i�}|di�}g}x |D]}|itd�|i�t|�fdd�|idi|i��dd�|i �o|i
|i ��n|i�djo;t|�p|itd��q�itd ��n|id
�|i�o5|i
d|i�i�di�d
dd�q3q3W|i�}|i|�} td�|}
|d
jo|i|
dd�n|i
|
dd�|o�|i}|itd�dd�|dFj oBy(|i|�|id|dd�Wq)tj
oq)Xnx%|D]}
|id|
dd�q0W|id
dd�nt|i
dt��d }|ii�}
gg}}x�|
i�D]r\}}||djo"|di|�|i|�n|i|�||djo|di|�q�q�W|id|�|id|�ti|�}|ig}|D]"}||djo||qcqc~�g}|iD]'}|i|�i �o||q�q�~}|i|�|i!td�d�|i!td�d�|i!td�d�|i!td �d!�|i!td"�d!�|i!td#�d$�|i!td%�d&�|i!td'�d(�|i!td)�d*�|i!td+�d�g
}g}x?t"||�D].\}}|o|i|t|��q�q�Wd,i|�}t#}t|�djo|td-�7}n�|di�jo|td.�7}n�|di$�i%d/�o0||i|d0t�jo|td1�7}n~|dp4|dp)|dp|dp|dp|d2p|td3�7}t}n"|| jo|td4�7}n|o!|i
td5�|i��n|itd5�|i��dgt|�}|i&}x<g}| D]}||i|�q�~D]}d||<q�WxE|i'g} | D]}| |i|�q�~ �D]}d||<q�Jg}!|D]}|!|i�q~!D]!}|djod||<q8q8WxB|i'g}"|D]}|"|i�qq~"�D]}d||<q�Wt(|�}|djo|i
td6��nL|| jo|itd7�|�n$|itd8�|t| �f�|i%d9�o�g}t)i*|i+d
��\}#}$t)i,|h|#�}%t)i-||%|$|i%d:��\}&}'|i.d;t/i0|#��|i1i2�t3i4||%�}(|(\})}*}+|i1i5�|*o|itd<��nt)i*|i+d=d
��\},}$t)i-|||$dF�\}&}'|#|,jo9t)i,|h|,�}%dF}(|i.d;t/i0|,��n|i1i2�t3i6||%d>|(�}-|i1i5�|-i7}.|.o!|itd?�t|.��nd@|%i8dA�jo�|i8d@�}/|%i8d@�}0t9|0�t9|/�}1t|1�djo!|itdB�t|1��nt9|/�t9|0�}1t|1�djo!|itdC�t|1��q�n|o$|itdD�d,i|��q�i
tdE��ndFS(GsNsummarize working directory state
This generates a brief summary of the working directory state,
including parents, branch, commit status, and available updates.
With the --remote option, this will check the default paths for
incoming and outgoing changes. This can be time-consuming.
Returns 0 on success.
isparent: %d:%s Rs
log.changesetRvslog.tagi�s (empty repository)s (no revision checked out)s
slog.summarysbranch: %s
R<s
log.branchs
bookmarks:slog.bookmarks *sbookmarks.currentRBiiiiiR6s%d modifiedsstatus.modifieds%d addedsstatus.addeds
%d removedsstatus.removeds
%d renameds
status.copieds %d copieds
%d deletedsstatus.deleteds
%d unknownsstatus.unknowns
%d ignoredsstatus.ignoreds
%d unresolvedsresolve.unresolveds%d subreposs, s (merge)s
(new branch)R�R#s (head closed)i s (clean)s (new branch head)scommit: %s
supdate: (current)
s#update: %d new changesets (update)
s3update: %d new changesets, %d branch heads (merge)
RRkscomparing with %s
s1 or more incomingsdefault-pusht commonincs%d outgoingRR�s%d incoming bookmarkss%d outgoing bookmarkssremote: %s
sremote: (synced)
N(:RZR�RyR�RRkRxR�R�RR�R�RkR�R�RR�R$RR�RfR�R�R�R�RR�RR�RR�R�RRR�R^RR]R�t ancestorsR�R�RERDRFRGRRgRR_t
pushbufferRHR�t popbufferRItmissingRlR�(2R_R`RbR�R�tpnodeRR=R�RvR-RtstRqR�R�R3RPRR�RnR�R�R�RNR0tcleanworkdirRrR�R�R"RER�R�t_[6]ReR!RTRORURLt_commonR�t_rheadsR�RSRWtlmarkstrmarksR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytsummaryos$
("
*
=>
B
! +4(
1
'
!
!!%$R%s force tagR�smake the tag localsrevision to tagR�sremove a tagsedit commit messagesuse <text> as commit messages8[-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...cOsd}}z�i�}|i�}d}g}|f|D]} || i�q=~}t|�tt|��jotitd���nxX|D]P}
|
djotitd�|
��n|
ptitd���q�q�W|i d�o)|i d�otitd ���n|i d�o|d}n|i d
�}|i d�o�|i d�odpd}x�|D]�}
|i
|
�ptitd
�|
��n|i
|
�|joG|djotitd�|
��qtitd�|
��q�q�Wt}|pddi|�}q�nV|i d�pExB|D]6}
|
|i
�jotitd�|
��qYqYWn|i d�p�|ii�\}
}|tjotitd���n|i�}|i d�o-|o&|
|jotitd���q0nti||�i�}|p#ddi|�t|�f}n|i d�}|oti|�}n|i d�o|i||i��}n|i||||i d�|i d�|�Wdt||�XdS(s2add one or more tags for the current or given revision
Name a particular revision using <name>.
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. Changing
an existing tag is normally disallowed; use -f/--force to override.
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. This
also means that tagging creates a new commit. The file
".hg/localtags" is used for local tags (not shared among
repositories).
Tag commits are usually made at the head of a branch. If the parent
of the working directory is not a branch head, :hg:`tag` aborts; use
-f/--force to force the tag commit to be based on a non-head
changeset.
See :hg:`help dates` for a list of formats valid for -d/--date.
Since tag names have priority over branch names during revision
lookup, using an existing branch name as a tag name is discouraged.
Returns 0 on success.
R�stag names must be uniqueR�R:sthe name '%s' is reserveds/tag names cannot consist entirely of whitespaceRkR�s#--rev and --remove are incompatibleR.R�tglobalstag '%s' does not existstag '%s' is not a global tagstag '%s' is not a local tagsRemoved tag %ss, R s)tag '%s' already exists (use -f to force)suncommitted merges¬ at a branch head (use -f to force)sAdded tag %s for changeset %sR4R�R7N(stipR�snull(RZR�R�RR�R�RgRhRR]ttagtypeRR�R�R�R�R$RXR�RyRR�R�RaR%R(R_R`tname1RzRbR�R�trev_R�RNR"R.texpectedtypeR�R�RvRjR4((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR%"sp*
.
!
% 2cCs2|iotpt}d}xt|i��D]�}}|io|id|dd�q0n||�}d|ii|�|f}|i |d�}ddt
i|�} |i |d�}
|io<|i
|�d jod
}|i |d�}
q
d}n|id|
| ||f�q0Wd
S(s�list 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.
Returns 0 on success.
R
s%s
Rstags.normals%5d:%ss
log.changesetRviR�s locals
tags.locals
%s%s %s%s
N(R�RRtreversedttagslistRR�R�RkRRR�RR[(R_R`R-R[RNR"R/RjRkR�R%((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��s$
s [-p] [-g]cKs>ti|||�}|i|t|�d�|i�dS(s�show 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.
Returns 0 on success.
iN(R[R�R�R�R�(R_R`RbR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��stunbundles6update to new branch head if changesets were unbundleds[-u] FILE...cOs�|f|}|i�}|d}zqxK|D]C}ti||�}ti||�} |i| dd|�}
q-Wti||i�|i ��Wd|i
�Xt|||
|id�d�S(s�apply one or more changegroup files
Apply one or more compressed changegroup files generated by the
bundle command.
Returns 0 on success, 1 if an update has unresolved files.
R�Rasbundle:NR�(R�R�R'R@R�taddchangegroupRtupdatecurrentbookmarkRyR�RR�R]RZ(R_R`tfname1tfnamesRbR�twcRNRnR�R�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyRa�s
#s^update|up|checkout|cos'discard uncommitted changes (no backup)tchecks0update across branches if no uncommitted changess[-c] [-C] [-d DATE] [[-r] REV]cCs]|o |otitd���n|d
jp
|djo
|}nd
}|d
jp
|djo|di�}n|}ti|||�i�}|o |otitd���n|o?|d
j otitd���nti |||�}n|o�|d
} | i
dtdt�otitd���n|d
jo||d
i�i�}nt
i||d
||�n|oti||�}
nti||�}
|
oL|oEti||g|di��o|itd �|i�qYn=||ijoti||�n|oti|�n|
S(supdate working directory (or switch revisions)
Update the repository's working directory to the specified
changeset. If no changeset is specified, update to the tip of the
current named branch and move the current bookmark (see :hg:`help
bookmarks`).
If the changeset is not a descendant or ancestor of the working
directory's parent, the update is aborted. With the -c/--check
option, the working directory is checked for uncommitted changes; if
none are found, the working directory is updated to the specified
changeset.
Update sets the working directory's parent revison to the specified
changeset (see :hg:`help parents`).
The following rules apply when the working directory contains
uncommitted changes:
1. If neither -c/--check nor -C/--clean is specified, and if
the requested changeset is an ancestor or descendant of
the working directory's parent, the uncommitted changes
are merged into the requested changeset and the merged
result is left uncommitted. If the requested changeset is
not an ancestor or descendant (that is, it is on another
branch), the update is aborted and the uncommitted changes
are preserved.
2. With the -c/--check option, the update is aborted and the
uncommitted changes are preserved.
3. With the -C/--clean option, uncommitted changes are discarded and
the working directory is updated to the requested changeset.
Use null as the changeset to remove the working directory (like
:hg:`clone -U`).
If you want to revert just one file to an older revision, use
:hg:`revert [-r REV] NAME`.
See :hg:`help dates` for a list of formats valid for -d/--date.
Returns 0 on success, 1 if there are unresolved files.
s please specify just one revisionR
R�s-cannot specify both -c/--check and -C/--cleans'you can't specify a revision and a dateR�R�suncommitted local changessupdating bookmark %s
N(RgRhRRZRyRXR�RkR[RRR^R�R�t
_checkunknownR�R�R�RR�RRRtunsetcurrent(R_R`RyRkR�R4RgR�tbrevRqR�((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR��sB4
#"RcCs
ti|�S(s�verify 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.
Returns 0 on success, 1 if errors are encountered.
(R�R(R_R`((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pyR>s
cCs4|itd�ti��|itd��dS(s(output version and copyright informations'Mercurial Distributed SCM (version %s)
s�(see http://mercurial.selenic.com for more information)
Copyright (C) 2005-2012 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(R�RRgRR�(R_((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pytversion_Ms s�clone init version help debugcommands debugcomplete debugdate debuginstall debugfsinfo debugpushkey debugwireargs debugknown debuggetbundle debugbundleseidentify paths serve showconfig debugancestor debugdag debugdata debugindex debugindexdot debugrevlog(�RyRRRRRR�Rti18nRRR�R7RRRLR�R�RXRgRzRfR�R�RR>R!R�RR�RHR�R@R[R�R6R*thgweb.serverR7R�R�RJR�R#R�R�R�RRR�R�RxRqR�R�RZRR�t
dryrunoptsR�twalkoptst
commitoptstcommitopts2ttemplateoptstlogoptsR�t
diffwsoptst diffopts2t
mergetooloptstsimilarityoptstsubrepooptsR\RdR�R�R�R^R�RR�R!R1RVRdR�R�RxR�R�R�R�R�R�R�R�R�R!R(R/R5R:RHRJReRjRtR�R�R�R�R�R�R�R�R�R�R�R�R�R�R*R�R�R�R�R�R�R�R�R�RSR�R�RpR�RaR�RR�RRR�R�R�R8RAR�RYR%R�R�RaR�RRktnorepotoptionalrepo(((sA/sys/lib/python/lib/python2.5/site-packages/mercurial/commands.pys<module>s�(H`H00$$< 1 "�RzAdn �d 21 !@ hR�5!�15 :
!
!(!P!
!! !� !OP !G!#l� � B� {��"&��2 R�!(+!J ? V ]5tYqB (%
!l,�g*�!` ![
|