Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/site-packages/mercurial/commands.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�ܬQc@s:*ddlmZmZmZmZmZddlmZddlm	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl!Z!ddl"Z!ddl#Z#ddl$Z%ddl&Z&ddl'Z'ddl(Z(ddl)Z)ddl*Z*ddl+Z+ddl,Z,ddl-Z-ddl.Z.ddl/Z/ddl0Z0ddl1Z1ddl2Z2ddl3Z3ddl4Z4iZ5ej6e5�Z6ddde	d�e	d	�fdd
de	d�e	d�fd
de7e	d�fdde7e	d�fdde7e	d�fddge	d�e	d�fdde7e	d�fdde7e	d�fddeje	d�e	d�fdd ej8e	d!�e	d"�fdd#e7e	d$�fdd%e7e	d&�fdd'e7e	d(�fdd)e7e	d*�fd+d,e7e	d-�fdd.e9e	d/�fgZ:d0d1e7e	d2�fgZ;d3d4de	d5�e	d6�fdd7de	d8�e	d6�fdd9e7e	d:�fgZ<d;d<ge	d=�e	d>�fd?d@ge	dA�e	d>�fgZ=dBdCde	dD�e	dE�fdFdGde	dH�e	dI�fgZ>dJdKde	dL�e	dM�fdNdOde	dP�e	dQ�fgZ?ddRde	dS�e	dT�fddUde	dV�e	dW�fgZ@dXdYe7e	dZ�fd[d\e7e	d]�fdFd^de	d_�e	d`�fdadbe7e	dc�fddde7e	de�fdfdge7e	dh�fge@ZAdidje7e	dk�fd[d\e7e	d]�fddle7e	dm�fgZBdndoe7e	dp�fdqdre7e	ds�fdtdue7e	dv�fgZCdXdwe7e	dx�fddye7e	dz�fgeCd{d|de	d}�e	d`�fddde7e	de�fgZDd~dde	d��fgZEd�d�de	d��e	d��fgZFd�d�e7e	d��fgZGe6d�e=eGe;e	d���d���ZHe6d�eFe=e;e	d���d���ZIe6d�d�d�de	d��e	d��fdd�e7e	d��fdd�e7e	d��fdidje7e	dk�fdNdOe7e	d��fd�d�e7e	d��fdJdKe7e	d��fd0d�e7e	d��fd�d�e7e	d��fdFd�e7e	d��fg
eCe=e	d���d���ZJe6d�dd�e7e	d��fdXd�de	d��e	d��fd�d�de	d��e	d��fd~d�de	d��e	d��fgeGe=e	d���d���ZKe6d�dd�e7e	d��fdd�de	d��e	d��fd�d�de	d��e	d��fgeEe=e>e?e	d���e7e7d���ZLe6d�d�d�e9e	d��fd[d�e9e	d��fdqd�e9e	d��fd�d�e9e	d��fd3d�e9e	d��fd�d�de	d��e	d6�fd{d�e9e	d��fge	d���e7e7e7e7e7e7e7e7e7d���ZMe6d�d�d�e9e	d��fd�d�de	d��e	d��fdJd�e9e	d��fdBd�de	d��e	d��fd�d�e9e	d��fge	d���e7e7e9e9e7e9d���ZNe6d�d�d�e7e	d��fd�d�e7e	d��fge	d���e7d���ZOe6d�did�e9e	d��fd�d�9e	d�fge	d��e9e9d��ZPe6d��d�e7e	d�fd�d�ge	d�e	d��fdqd�ge	d�e	d�fdd�e	d�e	d��fdid�7e	d�fd~d�d�	d�e	d��fge<e	d��e7d��ZQe6d�d�e	d�e	d�fd�d�de	d�e	d��fdd�e	d�fge=e	d��d��ZRe6d�d�e7e	d�fdNd�e	d�e	d��fd�d�ge	d�e	d��fdqd�ge	d�e	d�fdde7e	d�fdde7e	d�fge<e	d��e7d��ZSe6ddd�e7e	d	�fdd
e7e	d�fdde7e	d
�fge=e>e?eGe	d���d��ZTe6ddde7e	d�fd�d�e7e	d�fge=e;e	d��d��ZUe6dge	d��d��ZVe6ddBde7e	d�fd�e7e	d�fd0de7e	d�fge	d��e7e9e9e9d ��ZWe6d!did�7e	d"�fge	dI��e7d#��ZXe6d$gd�d%��ZYe6d&ge	d'��dd(��ZZe6d)d�e7e	d+�fge	d,��dd-��Z[e6d.d~d/e7e	d0�fdqd�e7e	d1�fdd2e7e	d3�fd�d4e7e	d5�fge	d6��e7d7��Z\e6d8d�d9e9e	d:�fdBd;e9e	d<�fge	d=��e7d>��Z]e6d?d3d@e7e	dA�fge	dB��e7dC��Z^e6dDddEe7e	dF�fddGe7e	dH�fge<e	dI��dJdK��Z_e6dLd�d�de	dM�e	d��fge	dN��dO��Z`e6dPge	dQ��dRdS��Zae6dTdUdVge	dW�e	dX�fd�dYge	dZ�e	dX�fd~d�d�	d�e	d��fge	d[��e7e7d\��Zbe6d]gd�d^��Zce6d_d�d9e9e	d:�fdBd;e9e	d<�fd�d`dae	db�e	d�fge	dc��e7dd��Zde6dege	dI��df��Zee6dggd�dh��Zfe6dige	dj��dk��Zge6dlge	dm��dn��Zhe6doddpdae	dq�fge?e	dr��e7ds��Zie6dtd�due7e	dv�fd0dwe7e	dx�fdidye7e	dz�fd�d{e7e	d|�fge	d}��d~��Zje6dge	d���d���Zke6d�ge	d���e7d���Zle6d�d�d�de	d��e	d��fge	d���d���Zme6d�d�d�de	d��e	d��fge	d���d���Zne6d�d�d9e9e	d:�fdBd;e9e	d<�fdJd�e9e	d��fge	d���e7d���Zoe6d�gd��d���Zpe6d�ge	d���e7d���Zqe6d�ddle7e	d��fdd�e7e	d��fge	d���e7e7d���Zre6d�d�d�de	d��e	d��fge	d���e7d���Zse6d�ge	d���d���Zte6d�e=e	d���d���Zue6d�dd�dd�fdd�dd�fdd�dd�fge<e	d���d���Zve6d�d�d�ge	d��e	d��fd�d�de	d��e	d��fgeBeDe=eGe	d���d���Zwe6d�d�de	d�e	d�fdd�e7e	d��fd�d�ge	d��e	d��fgeBe	d���d���Zxe6d�e=e	d��d���Zye6d�d�d�ge	d��e	d��fd�d�e9e	d��fd3d�e9e	d��fdd�e7e	d��fd�d�e9e	d��fd{d�e9e	d��e	dM�fge?eEe;e	d���d���Zze6d�d�d�e7e	d��fdd�7e	d��fdidje7e	dk�fd�d�e7e	d��fd�d�e7e	d��fdFd�e7e	d��fd0d�e7e	d��fd�d�ge	d��e	d��fdNdOe7e	d��fdJdKe7e	d��fg
e=e	d���d���Z{e6d�d�d�de	d��e	d��fd~d�e9e	d��fdid�e9e	d��fd�d�9e	d��fge@e	d���d���Z|e6d,d3d�7e	d�fd�d�e7e	d�fd��e	d�fge	d��e7d��Z}e6d��d�de	d�e	d��fd0d�7e	d�fd�d�7e	d�fdqd�e7e	d�fd~d/e7e	d�fdtd�e	d�fge<e	d��e7e7e7e7e7e7e7d��Z~e6d�d�e	d�e	d`�fdqd�e	d�e	d�fd3d�e9e	d��fd�d�e7e	d�fdd�e	d�fdd�e	d�fdd�e	d�fdde7e	d�fge>e?eFe	d��e7d��Ze6dd�d�e7e	d�fd0de7e	d�fdd�e	d	�e	dI�fd�d�ge	d
�e	d��fdtd�e	d�fdqd�ge	d�e	d�fgeAe<eGe	d
��dJd��Z�e6de<e	d��dRd��Z�e6dd�d�de	d�e	d��fd�d�e7e	d�fd�de7e	d�fge=e	d��d��Z�e6dd�d�e7e	d��fdde7e	d�fdJdKde	d�e	dM�fd�de7e	d�fd��e	d�e	dE�fd�d�ge	d �e	d��fdd{e7e	d!�fdBd"e7e	d#�fdNdOge	d$�e	dQ�fdd%ge	d&�e	d�fdqd�ge	d'�e	d�fd(d)ge	d*�e	d��fgeAe=e	d+��d,��Z�e6d;d�d�de	d-�e	d��fdd�9e	d.�fge	d���e7e7d/��Z�e6d0d�d�e7e	d1�fd�d�de	d2�e	d��fd(d3e7e	d4�fgeEe	d5��e7d6��Z$e6d7d�d�e7e	d�fd�d�ge	d8�e	d��fd0de7e	d�fdtd�e	d�fdqd�ge	d9�e	d�fgeAe<eGe	d:��e7d;��Z�e6d<d�d�de	d=�e	d��fge@e	d>��e7d?��Z�e6d@ge	dA��e7dB��Z�e6dCdXdDe9e	dE�fdJdFe9e	dG�fd�dHe9e	dI�fd�d�e9e	dJ�fd�d�ge	dK�e	d��fge	dL��dM��Z�dN�Z�e6dOdNdPe7e	dQ�fd�d�e7e	dR�fd�d�ge	d
�e	d��fdtdSge	dT�e	dU�fdqd�ge	d�e	d�fge<e	dV��dJdW��Z�e6dXd�d�e7e	dY�fd�d�ge	d8�e	d��fdtdSge	dZ�e	dU�fdqd�ge	d9�e	d�fdd[e9e	d\�fge<e	d]��e7d^��Z�e6d_g�d`��Z�e6dadde7e	db�fd�d�e7e	dc�fge=e	d��dd��Z�e6dedde7e	df�fd�d�e7e	d�fge=e;e	dg��dh��Z�e6didid�7e	dj�fdFdke7e	dl�fdBdme7e	dn�fdNdoe7e	dp�fd0dqe7e	dr�fgeEe=e	d���ds��Z�e6dtdid�7e	du�fdJdKde	dv�e	dM�fd�d�de	dw�e	d��fd�dxe7e	dy�fge=e;e	dz��d{��Z�e6d|e;d�d�e9e	d}�fg�d~��Z�e6dg�d���Z�e6d�dd�de	d��e	dI�fdJd�e7e	d��fdd�de	d��e	d`�fd�d�de	d��e	dI�fdXd�de	d��e	d��fdid�de	d��e	d��fdd�de	d��e	d��fd0d�de	d��e	d��fdd�de	d��e	dI�fdd�de	d��e	dI�fdd�de	d��e	dI�fdd�e7e	d��fdd�de	d��e	d"�fd~d�de	d��e	dW�fddRde	d��e	dT�fd�d�e7e	d��fdd�de	d��e	dI�fge	d���d���Z�e6d�dNd�e7e	d��fge	d���d���Z�e6d�dd�7e	d��fdBd�e7e	d��fdidye7e	dz�fd�d{e7e	d|�fdJd�e7e	d��fd�d�e7e	d��fdNd�e7e	d��fd�d�e7e	d��fd0dqe7e	dr�fd�de7e	d��fd�d�e7e	d�fdd�ge	d��e	d��fdd�de	d��e	d��fg
e=eGe	d���d���Z�e6d�dd�e7e	d��fgd��d���Z�e6d�d�d�e7e	d��fdFd�e7e	d��fd�d�de	d��e	d��fdd�e7e	d��fd3d�e7e	d��fdBdCde	d��e	dE�fge?e	d���d���Z�e6d/gd�d���Z�e6d�dXdYe7e	dZ�fd[d\e7e	d]�fge@e	d���d���Z�e6d�dNdPe7e	d��fge	d���d���Z�e6d�d�d�e7e	d��fd�d�e7e	d��fdJdKde	dv�e	dM�fd�d�de	d��e	d��fge	d���e7e7e9e7e9d���Z�e6d�g�d���Z�e6d)g�d���Z�d�Z�d�Z�d�Z�dS(�i�(thextbintnullidtnullrevtshort(trelease(t_NtRt
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 encodingtENCODEtencodingmodesset 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 exitthiddensconsider hidden changesetstnsdry-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 changestGtgraphsshow the revision DAGtattextstreat 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
Osbtj|d||�}tj||||jd�|jd�dddt�}|r^dpadS(	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_runRVtprefixR	texplicitonlyiiN(tscmutiltmatchtNonetcmdutiltaddtgettFalse(tuitrepotpatstoptsR-trejected((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR^�st	addremovec	Os�yt|jd�pd�}Wn&tk
rGtjtd���nX|dks`|dkrxtjtd���ntj|||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. This
    option takes a percentage between 0 (disabled) and 100 (files must
    be identical) as its parameter. With a parameter greater than 0,
    this compares every removed file with every added file and records
    those similar enough as renames. 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
    not specified, -s/--similarity defaults to 100 and only renames of
    identical files are detected.

    Returns 0 if all files are successfully added.
    RSidssimilarity must be a numberis$similarity must be between 0 and 100gY@(tfloatR_t
ValueErrortutiltAbortRRZRf(RaRbRcRdtsim((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRf�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...cs5|jd�rt|d<n�jr.tjp4tj�tj�fd��}|smtjtd���n�j	r|t
pt�dd�fd�fddd	�fd
d�fd�fdd|fddd
�fddd�fg}|jd�r8|jd
�r8|jd�r8|jd�r8t|d<n|jd�d"k	}|r�|jd
�r�|jd�r�tjtd���ng|D]*\}}}	|j|�r�|	|f^q�}
|
dddf|
d<d�}t
j||jd��}t
j|||�}
||
_|jd�}tj�|dd�}x�j|
�D]�}||}|jd�r�tj|j��r��jtd�|r�|
j|�p�|�qTn|jd|d|d|�}g}x�|
D]�\}}g|D]\}}||�^q�|r�|D]}|tj|�f^q$}tg|D]\}}|^qO�}|jg|D]'\}}d|d|||f^qw�q��|rTxGtt|�|�D]0\}}�jddj|�|df�q�W|r-|d djd!�r-�jd!�q-qTqTWd"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.
    RoRqcs�|dj��S(Ni(R4(tx(tdatefunc(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt<lambda>�ss,at least one filename or pattern is requiredR7t cs�j|dj��S(Ni(t	shortuserR7(Ru(Ra(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRwsRrcSst|dj��S(Ni(tstrRm(Ru((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRwsRtcs�|dj��S(Ni(tnode(Ru(thexfn(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRwsR4cSs|dj�S(Ni(tpath(Ru((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRwstline_numbert:cSst|d�S(Ni(Rz(Ru((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRwss(at least one of -n/-c is required for -liR	cSstjd||f��dS(Ns%s: %s(RiRj(RuR
((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytbadsRmt	no_followtsectiontannotateRHs%s: binary file
t
linenumbertdiffoptss%s%s%ss%s: %sii�s
N( R_tTrueRRit	shortdatetdatestrt	cachefuncRjRt	debugflagRRR\RZt	revsingleR[R�R>R�twalktbinarytdatatwritetrelR�Rtcolwidthtmaxtappendtziptjointendswith(RaRbRcRdtgetdatetopmapR�toptseptfunctfuncmapR�tctxR-RoR�tabstfctxtlinestpiecesRpR"tdummyR0RutsizedRJtmlR=((RvR|Ras6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s^
  
&7		
%,	%(%	9"(tarchives	no-decodes"do not pass files through decodersRXs%directory prefix for files in archivetPREFIXsrevision to distributettypestype of distribution to createtTYPEs[OPTION]... DESTc	
Ks�tj||jd��}|s9tjtd���n|j�}tj|||�}t	j
j|�|jkr�tjtd���n|jd�p�t
j|�p�d}|jd�}|dkr'|dkr�jtd���ntj||�}|s't	j
j|j�d	}q'ntj|||�}tj|g|�}t
j|||||jd
�||d|jd��dS(
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.
    Rms/no working directory: please specify a revisions%repository root cannot be destinationR�tfilesRXt-s$cannot archive plain files to stdouts-%ht	no_decodeRVN(RZR�R_RiRjRR{R]tmakefilenametosR}trealpathtroottarchivalt	guesskindtmakefileobjtbasenameR[R�(	RaRbtdestRdR�R{tkindRXtmatchfn((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�5s&1$tbackouttmerges,merge with old dirstate parent after backouttparents4parent to choose when backing out merge (DEPRECATED)srevision to backouts[OPTION]... [-r] REVcs`|r$|r$tjtd���n|s3|}n|sQtjtd���n|jd�}|r|tj|�|d<ntj��tj�|�j	�}�j
j�\}}�jj
||�}||kr�jtd���n�jj|�\}	}
|	tkr+tjtd���n|
tkr�|jd�s^tjtd���n�j|d�}||	|
fkr�tjtd�t|�t|�f��n|}n-|jd�r�jtd	���n|	}�j�}
z[�j
j�}�j|�}tj�|d
t��j
j|�tj�t|��}tj|�|�j
j��|jd�r�||kr�z3|jdd
|jdd��tj�|�SWd|jdd
d�Xntj�|dr|drdt|�|d<tj�n�fd�}tj|�|g|�}tj�|||��fd�}|j td�|�jj!��||�f�|jd�rM||krMtj�|d
t�|j td�|�jj!���zB|jdd
|jdd��tj"�t�jj!���SWd|jdd
d�XnWd|
j#�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_statsR�Rat
forcemergeRQR	NR.R1sBacked out changeset %scs.|j||jd�|jd�|d��S(NR7R4teditor(tcommitR_(RaRbR.R[Rd(R#(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt
commitfunc�s!cs d�jj|�t|�fS(Ns%d:%s(t	changelogRmR(R{(Rb(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytnice�ss$changeset %s backs out changeset %s
smerging with changeset %s
i($RiRjRR_t	parsedateR]t
bailifchangedRZR�R{tdirstatetparentsR�tancestorRtlookupRtwlocktbranchtbranchheadsthgtcleanR`t	setbranchRtrevertt	setconfigtupdatetcommiteditortcommitforceeditorR�tcommitstatuststatusttipR�R(RaRbR{RmRdR4top1top2RGtp1tp2R=R�R�R�tbheadstrctxR�tnewnodeR�((R#Rbs6/sys/lib/python2.7/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]c	s��fd�����fd�}t����fd�}|dj�kr��jtd��||d}
}}|
dkr�t�q�dkr�t�q��nD|s�����|	t|�dkr�jtd	���n�r-�jd
�}t	j
j|�r)t	j|�ndSt
j���|r�d}y�dd
}Wnhtk
r�|
r�tjtd���n�jj�\}}|tkr�tjtd���q�nXz�x�|rR|g�d<t
j���tj|dit|�d6d�j�}|dkr.d}nk|d
krCd}nV|dkrktjtd�|��n.|d
kr�tjtd�|��nd}tj�||�}d}�|j|j���jtd�|||f�|�dt�t
j�j��\}}�|d
}|
s�tj ��t!j"�|dt�q�q�WWd|g�d<t
j���X||��dS|r�gtj#�|g�D]}�j$|�^q�}n�j$d�g}�s�s�rB�r�dc|7<n2�r�dc|7<n�r/�dc|7<nt
j���n|��sRdSt
j�j��\}}�|	r%|s
�|��}|dk	r
�j%td|j&�|f��|j�g�d<t
j���|
r�Stj ��t!j"�|j��Sntjtd���n|d
krA||��n�t'|�dksYt(�|d
}d \}}x%||kr�|d|d}}qrW�jj&|�}�j%td�|t)|�||f�|g�d<t
j���|
stj ��t!j"�|�SdS(!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.
    The environment variable HG_NODE will contain the ID of the
    changeset being tested. The exit status of the command 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 (e.g. if
        that revision is not usable because of another issue)::

          hg bisect --skip
          hg bisect --skip 23

      - skip all revisions that do not touch directories ``foo`` or ``bar``

          hg bisect --skip '!( file("path:foo") & file("path:bar") )'

      - 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 the changeset currently being bisected (especially useful
        if running with -U/--noupdate)::

          hg log -r "bisect(current)"

      - 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��|dj�}t|�dkr�|r6�dp=�d}ttd�|D��t|�@�}|dkr�|dj|d�SndS(NiiR�R�css|]}|j�VqdS(N(R{(t.0ti((s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>Ws(R�tlentsetR�R\(tnodesR�R�tsidetnum(Rbtstate(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytextendbisectrangeQs&cstj��i�}t|�dkr�|rC�jtd��n�jtd��|j�|d��||�}|dk	r�jtd�|�q�|r��jtd��n�jtd��x|D]}|j�|�q�W|j�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�RtshowR\tclose(R�R�t	displayert
extendnodeR"(R�RbRa(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytprint_result\s 
csv|ds|drr�s.�s.�s.�r8|r8dS|dsZtjtd���qrtjtd���ntS(NR�R�s'cannot bisect (no known good revisions)s&cannot bisect (no known bad revisions)(RiRjRR�(R�tinteractive(R�R�R�R�(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytcheck_statews
sgood bad reset inits)(use of 'hg bisect <cmd>' is deprecated)
R�R�isincompatible argumentssbisect.stateNtcurrentis>current bisect revision is unknown - start a new bisect to fixs"current bisect revision is a mergetenvirontHG_NODEtouti}R�isfailed 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�tsplittwarnRR\tboolRiRjR�R�R}texiststunlinkthbisectt
load_statetLookupErrorR�R�Rt
save_statetsystemRtfoutRZR�R�R{R�R`R�R�R]R�R�R�trevrangeR�R�RmR�tAssertionErrorR(RaRbRmtextraR�R�R�R�R�R�R�R�R�tcmdR=t
changesetsR{R�R�t
transitionR�R�R�R�tteststsize((R�R�R�RbR�R�R�Ras6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s�]			,
	
		 

!

4



sbookmarks|bookmarktforcetrevisiontdeletesdelete a given bookmarktrenamesrename a given bookmarktNAMER�tinactivesmark a bookmark inactives5hg bookmarks [-f] [-d] [-i] [-m NAME] [-r REV] [NAME]cs�jrtpt}�j��jd�j���fd�}	td
���fd�}
|r�|r�tj	t
d���n|r�|r�tj	t
d���n|r�|r�tj	t
d���n|d
kr�s�r�j	t
d���n|r]|�kr'tj	t
d�|��n|�jkrItj
�d
�n�|=�j�n�|r|d
kr�tj	t
d	���n|	|�}|�kr�tj	t
d�|��n|
�||��|�|<�j|kr|rtj
�|�n�|=�j�n�d
k	r|	|�}|rW|�jkrWtj
�d
�d
S�}|r~tj�|�j�}n|
�|||�|�|<|r���|kr�|r�tj
�|�n.�|kr��jkr�j
�d
�n�j�nt��dkr/�jt
d��n�rg�jsT�jt
d
��qtj
�d
�n�x�t�j��D]�\}}
�j}||kr�d\}}nd\}}�jr��jd|d|�qz�jd||�jj|
�||
�fd|�qzWd
S(s�track 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.

    If you set a bookmark called '@', new clones of the repository will
    have that revision checked out (and the bookmark made active) by
    default.

    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�csA|j�}|s*tjtd���ntj�|d�|S(Ns4bookmark names cannot consist entirely of whitespacetbookmark(tstripRiRjRRZt
checknewlabel(tmark(Rb(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytcheckformat#s
c	s�|�kr�|r�|r}�||kr9|�kr9dS|jj||j�g�}|�|}g�D]B}|jdd�d|jdd�dkrm||j�^qm}|j�|kr�|kr�j||g|�dSg|D].}||j�|ks||kr�^q�tj|||�|j�|kr}�jtd�|t	|j��f�dSnt
jtd�|��n||j�ks�||j
j�kr�|r�t
jtd���ndS(Nt@iis%moving bookmark '%s' forward from %s
s.bookmark '%s' already exists (use -f to force)s5a bookmark cannot have the name of an existing branch(R�t	ancestorsRmR�R{t	bookmarkstdeletedivergentR�RRRiRjt	branchmapR�R�(	RbRRttargettanctbmctxRKtdivst
deletefrom(tcurtmarksRa(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt
checkconflict+s0
B
.
's&--delete and --rename are incompatibles#--rev is incompatible with --deletes#--rev is incompatible with --renamesbookmark name requiredsbookmark '%s' does not existsnew bookmark name requiredNisno bookmarks set
sno active bookmark
t*sbookmarks.currentRxR	s%s
tlabels %s %-25s %d:%s
(R$sbookmarks.current(RxR	(R�RRt
_bookmarkst	changectxR{R`R\RiRjRt_bookmarkcurrentRt
setcurrentR�RZR�R�R�tsortedt	iteritemsRR�Rm(RaRbRRmRRRRR|RR#ttgttbmarkR"R�RXR%((R!R"RbRas6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�s~#	 



				%R�s5set branch name even if it shadows an existing branchtCR�s'reset branch name to parent branch names[-fC] [NAME]cKs�|r|j�}n|jd�rJ|rJ|jd|jj��dS|j�}z|jd�r�|dj�j�}|jj|�|j	t
d�|�n�|rr|jd�r"||j�kr"|g|j�D]}|j�^q�r"t
jt
d�dt
d���q"ntj||d	�|jj|�|j	t
d
�|�|j	t
d��nWd|j�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 itR�s&marked working directory as branch %s
s>(branches are permanent and global, did you want a bookmark?)
(RR_R�R�R�R�R\R�R�R�RRR�RiRjRZRR(RaRbR%RdR�R=((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s*"+tbranchestactives+show only branches that have unmerged headstclosedsshow normal and closed branchess[-ac]c	CsI|jrtpt}tg|j�D]}||j�^q%�}g}x�|j�j�D]�\}}	xIt|	�D]-}
||
}|j	�}|rv|}
PqvqvW||	d}
||ko�|}|j
|
||f�q]W|jdd�dt�xH|D]@\}}}|s|r|r2d}d}n9|sY|sDqnd}t
d�}nd	}t
d
�}|j�|jj�kr�d}nt|j��jdtj|j���}|jd
|||j��fd|j��}|j|j�|�}|jr$|jd|�qA|jd|||f�qqWdS(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.
    i�tkeycSs,|d|dj�|dj�|dfS(Niii(RmR�(R�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRw�sRMsbranches.activeR	sbranches.closeds	 (closed)sbranches.inactives (inactive)sbranches.currentis%s:%sslog.changeset changeset.%ss%s
s%s %s%s
N(R�RRR�theadsR�RR+treversedtclosesbranchR�tsortR�RR�RzRmtrjustRR�R%R{tphasestrRR�(RaRbR1R2thexfuncR"tactivebranchesR0ttagR4RR�tisopenR�tisactiveR%tnoticeRm((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR0�sH/


		.	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 destinationtalls'bundle all changesets in the repositorytbzip2sbundle compression type to uses;[-f] [-t TYPE] [-a] [-r REV]... [--base REV]... FILE [DEST]c
Ks^d}d|kr+tj||d�}n|jdd�j�}idd6dd6dd6}|j|�}|tjkr�tjt	d	���n|jd
�r�dg}ntj||jd��}|rR|r�jt	d
���ng|D]}	|j
|	�^q�|r(t|j
|�p+|}|jdd|d|
�}d}
n�|j
|pad|pjd�}tj||jd��\}}tj|||�}tj||||�\}}|r�t|j
|�p�|}tj||d|d|jd�dt�}
|jd|
�}|sGtj|||
o?|
j�dStj|||�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.
    RmR�RDtHG10UNtnonetHG10BZtHG10GZtgzips)unknown bundle type specified with --typeRCtnullRBs4--base is incompatible with specifying a destinationR@R4tcommonsdefault-pushtdefaultR�t	onlyheadsRtportableiN(R\RZRR_tlowertchangegrouptbundletypesRiRjRR�tmapt	getbundlet
expandpathR�tparseurltpeert
addbranchrevst	discoverytfindcommonoutgoingR�tgetlocalbundletnochangesfoundtexcludedtwritebundle(RaRbtfnameR�Rdtrevst
bundletypetbtypesRBRmRKR4tcgtoutgoingR0tothertcheckout((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR@s@&"	!	tcattotoutputs(print output to file with formatted nametFORMATsprint the given revisiontdecodes apply any matching decode filters[OPTION]... FILE...cOs�tj||jd��}d}tj||f||�}x�|j|�D]�}tj||jd�|j�d|�}	||j�}
|jd�r�|j	||
�}
n|	j
|
�|	j�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.
    RmiRhtpathnameRji(RZR�R_R[R�R]R�R{R�t
wwritedataR�R�(RaRbtfile1RcRdR�terrR-R�tfpR�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRfXs!	


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 metadatatuncompresseds)use uncompressed transfer (fast over LAN)s[OPTION]... SOURCE [DEST]cKs�|jd�r6|jd�r6tjtd���ntj||||d|jd�d|jd�d|jd�d|jd�p�|jd�d	|jd	��}|d
kS(sTmake 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.

    If the source repository has a bookmark called '@' set, that
    revision will be checked out in the new repository by default.

    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 revision marked with the '@' bookmark, if present
      h) the tipmost head of the default branch
      i) 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�Rps.cannot specify both --noupdate and --updaterevRqtstreamRrRmR�R�N(R_RiRjRR�tcloneR\(RatsourceR�RdRl((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRt~sjs
^commit|citAs9mark new/missing files as added/removed before committingsclose-branchs7mark a branch as closed, hiding it from the branch listtamends#amend the parent of the working dirc
	s�|jd�rL|jd�r6tjtd���n|jddt�n|jjd�r�tjtd�dtd	���ni�|jd
�r�d�d<n|dj	�}|j
|�}|jd�r�|jdd�r�jtd
���n|d��j�t
jkr3tjtd���nt|dj��dkrgtjtd���ntjr��j�r�tjtd���ntj�|jd�r�tj�n���fd�}|j}�j�}tj|||��||�}	|	�j�kr-|jtd��dS|rm|jd|�j�t|	�f�|j}
x7|D]/}|	|
|<||kritj||�qiqiW|
j �qmn�tj�|jd�r�tj�n��fd�}tj!|||||�}	|	sm|jdt"j#|d||��}|drV|jtd�t|d��n|jtd��dStj$||	|||�dS(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.
    RVRwscannot amend with --subreposRatcommitsubrepost
graftstates,cannot commit an interrupted graft operationR/s#use "hg graft -c" to continue grafttclose_branchiR�s+cannot amend with ui.commitsubrepos enabledR�scannot amend public changesetsscannot amend while mergings$cannot amend changeset with childrentforce_editorcsp�}|s$�j�}tj}n|j||jd�pE�j�|jd�p]�j�|d|d��S(NR7R4R�R(tdescriptionR]R�R�R_R7R4(RaRbR.R[RdR�(R#Rtold(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�As	snothing changed
s"moving bookmarks %r from %s to %s
c	s4|j||jd�|jd�|d�d��S(NR7R4R�R(R�R_(RaRbR.R[Rd(R#R(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�cs!R[is4nothing changed (%d missing files, see 'hg status')
N(%R_RiRjRR�R�tvfsR�R\R�R�t
configbooltphasetphasestpublicR�R�tobsoletet_enabledtchildrenR]R�R�R(RRwR{R�RRR&R)R�R�RZR[R�(
RaRbRcRdR�R�R�R�R"R{tnewmarkstbmRD((R#RR}s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��sl,

		!		

	%
scopy|cptafters'record a copy that has already occurreds+forcibly copy over an existing managed files[OPTION]... [SOURCE]... DESTcOs;|jt�}ztj||||�SWd|j�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]tcopyR(RaRbRcRdR�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�tst
debugancestors[INDEX] REV1 REV2c	Gst|�dkrT|\}}}tjtjtj�dt�|�}|j}nft|�dkr�|s�tj	t
d���n|\}}|j}|j}ntj	t
d���|j||�||��}|j
d|j|�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�trevlogRZtopenerR�tgetcwdR`R�RiRjRR�R�R�RmR(	RaRbtargstindextrev1trev2RlR�RG((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s'	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$kr1|jtd��|jj�}n|j}t|�dkrdtjtd���nd}x6t	j
|�D]%\}}	|dkrz|d7}qzqzW|r�}
gtd||
�D]}t|�^q�}|j
d�ng}
d$}}z�|j�}|jd�}d	}d
}g}d}|jtd�|dtd
�d|�xt	j
|�D]�}}	|dkr�|jdt|	��|	\}}g}i�d$}|r�}||d}t|�dkr~||d}|j|�}g|||fD]}||j�^q\}}}tj|||�}g|j�D]}|j�^qV} | j
d�n.|dkr�||j�jd�} n|} | ||
cd|7<dj| �}!|j
|�tj||!��|<n|r/d}|j
|�tj|d|��|<n|r�d|}|j
|�tj|d|��|<t|�dkr�|s�||d}nx>|D]3}|jd�r�|j
|�||�|<q�q�Wq�n�fd�}"t|�dks|ddkrd$d$g}#nFt|�dkr<||dd$g}#ng|D]}$||$^qC}#tj||#d|||"d|dfdddi|d6�}%|j|%�}&|j
|&�|}n{|dkr|	\}}'|jd|'�|
j
d t|jj |��|'f�n&|d!kr7|jd"|	�|	}n|jtd�|dtd
�d|�qiW|j!�|
r�|j"j#d#dj|
��nWd$|jtd�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�RLtbuildingtunitt	revisionsttotalsnode %s
tmfs
s r%itofsr%i
snf%itnfcs
�j|�S(N(R_(RbtcxR}(tfctxs(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytfctxfnssr%iR4R7R�RR�R0stag %s
s%s %s
RGs
branch %s
t	localtagsN(%R\R�RtfintreadR�R�RiRjt	dagparsertparsedagtxrangeRzR�tlockttransactiontprogresstnoteR�R�tsimplemerget
Merge3Texttmerge_linesRR�R�tcontextt
memfilectxt
startswithtmemctxt	commitctxRR{R�R�R�R((RaRbRHtmergeable_filetoverwritten_filetnew_filetclR�R�R�tlinesperrevR�tinitialmergedlinesttagsR�ttrtattatbranchtnodeidstidtpsR�R�tfnR�tpaRuRBtlocalRdtm3R0R�t
mergedtextR�tparsR=R�tnodeidtname((R�s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s�)	,
(	,%





"
	,	,
#tdebugbundlesshow all detailsc
s$tj�|�}ztj||��|r��jd���fd�}�j�}|d��j�}|d�x�tr��j�}|s�Pn|d}||�q{Wn_�j�}d}xJtr�j
|�}|s�n|d}	�jdt|	��|	}q�WWd|j�XdS(	slists the contents of a bundles1format: id, p1, p2, cset, delta base, len(delta)
c		s��jd|�d}x�tr��j|�}|s9Pn|d}|d}|d}|d}|d}|d}�jdt|�t|�t|�t|�t|�t|�f�|}qWdS(	Ns
%s
R{R�R�tcst	deltabasetdeltas%s %s %s %s %s %s
(R�R\R�t
deltachunkRR�(	tnamedtchaint	chunkdataR{R�R�R�R�R�(tgenRa(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt
showchunksBs 	





	#R�tmanifesttfilenameR{s%s
N(
R�topenpathRPt
readbundleR�tchangelogheadertmanifestheaderR�t
filelogheaderR\R�RR�(
Rat
bundlepathRCRdRpR�R�R^R�R{((R�Ras6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�9s4


	
	
tdebugcheckstatec
	Cs�|jj�\}}||j�}||j�}d}x�jD]�|j|}|dkr�||kr�|jtd�||f�|d7}n|dkr�||kr�|jtd�||f�|d7}n|dkrE||krE||krE|jtd�||f�|d7}qEqEWxQ|D]I}|j|}|d	kr5|jtd
�||f�|d7}q5q5W|r�td�}	tj|	��ndS(
s0validate the correctness of the current dirstateitnrs%%s in state %s, but not in manifest1
iRGs&%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�RRiRj(
RaRbtparent1tparent2tm1tm2terrorsRpR�terror((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�ks0


$

t
debugcommandss	[COMMAND]cGs�x}ttj��D]i\}}|jd�djd�}djg|dD]}|d^qL�}|jd||f�qWdS(s'list all available commands and optionst|it^s, is%s: %s
N(R*ttableR+R�RR�R�(RaRR�tvalsR�Rd((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s*t
debugcompletetoptionssshow the command optionss[-o] CMDcKsN|jd�r�}tg}|rStj|tt�\}}|j|d�nxl|D]d}x[|D]S}d|dkr�qgn|dr�|jd|d�n|jd|d�qgWqZW|jdd	j|��d
Stj	|t�}	|j
r*g|	j�D]}
dj|
d�^q}	n|jdd	jt|	���d
S(s=returns the completion list associated with the given commandR�is(DEPRECATED)iis-%ss--%ss%s
s
NRx(
R_t
globaloptsR]tfindcmdR�R`R�R�R�tfindpossibleRtvaluesR*(RaRRdR�totablestaliasestentryRPRgtcmdlistRs((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s&	


	/tdebugdagR�suse tags as labelssannotate with branch namestdotssuse dots for runstspacessseparate elements by spacessPTION]... [FILE [REV]...]cs�|jd�}|jd�}|rvtjtjtj�dt�|��td��D�����fd�}n�|r|j�|jd��|jd���r��xE|j	�j
�D].\}}	�j�j|	�g�j
|�q�Wn����fd�}ntjtd	���xXtj|�d
|dtdtd
|d|dd�D] }
|j|
�|jd�q^WdS(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 labeled in the output as rN.

    Otherwise, the changelog DAG of the current repo is emitted.
    R�R�R�css|]}t|�VqdS(N(tint(R�Rl((s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>�sc3sixb�D]Z}d|ttd��j|�D���ffV|�krd|d|ffVqqWdS(NR"css!|]}|dkr|VqdS(i�N((R�R=((s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>�sR0sr%i(tlistR�t
parentrevs(Rl(R_trlog(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytevents�s
0R�R0c3s�d}x��D]�}�r\�j�j|��dd}||kr\d|fV|}q\nd|ttd��j|�D���ffV�r
�j|�}|r�x"|D]}d||ffVq�Wq�q
q
WdS(NRLiR�RGR"css!|]}|dkr|VqdS(i�N((R�R=((s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>�sR0(R�R{R�R�R�R_(RKRltnewbtlsR0(R0R�tlabelsR�(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s
 0
sneed repo for changelog dagt	addspacest
wraplabelstwrapannotationst
wrapnonlineartusedotstmaxlinewidthiFs
N(R_R�RZR�R�R�R`R�R�R�titemst
setdefaultRmR�RiRjRR�tdagtextlinesR�R�(RaRbtfile_R_RdR�R�R�R0R"tline((R0R�R�R_R�R�s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s2'	)

t	debugdataR�sopen changelogR�s
open manifests-c|-m|FILE REVcKs�|jd�s|jd�r.d|}}n'|dkrUtjdtd���ntj|d||�}y#|j|j|j	|���Wn*t
k
r�tjtd�|��nXdS(s)dump the contents of a data file revisionR�R�Rsinvalid argumentssinvalid revision identifier %sN(
R_R\R�tCommandErrorRR]t
openrevlogR�R
R�tKeyErrorRiRj(RaRbRRmRdRl((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�s#
t	debugdatetextendedstry extended date formatss[-e] DATE [RANGE]cKs�|dr"tj|tj�}ntj|�}|jd|�|jdtj|��|r�tj|�}|jd||d��ndS(sparse and display a dateRsinternal: %s %s
s
standard: %s
s
match: %s
iN(RiR�textendeddateformatsR�R�t	matchdate(RaR4trangeRdR3R-((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR
�s
tdebugdiscoveryR}suse old-style discoverytnonheadss/use old-style discovery with non-heads includeds([-l REV] [-r REV] [-b BRANCH]... [OTHER]RLcs�tj�j|��jd��\}}tj��|�}�jtd�tj|��t	j
d�|���fd�}�jd�}|r�x4|D]�t|d�}	z�|	j�}
x�|
rv|
j
�jd�}|d}|d	kr�|d
kr1||djd�|d
jd��n6|dkrg||d
jd�|djd��n|	j�}
q�WWd|	j�Xq�WnCtj�||�jd��\}
}�jd�}|||
�dS(s2runs the changeset discovery protocol in isolationR�scomparing with %s
i#0cs��jd�r�r'tjd��ntj|d�sQtj|j��}ntj�|dt	�\}}}t
|�}�jd�s�jddjt
d�|D����tj�j�}|j|j|��}|j|j|��}qntj��|�\}}}t
|�}t
|�}	t
�j��}
�jd	djt
d
�|D����|
|kr��jd�n|	|kr��jd�ndS(
NR}s.cannot use localheads with old style discoveryR0RRsunpruned common: %s
Rxcss|]}t|�VqdS(N(R(R�R"((s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>#sscommon heads: %s
css|]}t|�VqdS(N(R(R�R"((s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>-sslocal is subset
sremote is subset
(R_RiRjtsafehasattrt	localrepotlocallegacypeerR�t
treediscoverytfindcommonincomingR�R�R�R�R*tdagutilt	revlogdagR�tancestorsettinternalizealltexternalizealltheadsetofconnectedstsetdiscoverytfindcommonheadsR4(t
localheadstremoteheadstremoteRKt_inthdstdagRCtanytrheadstlheads(RdRbRa(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytdoits0	!	!t	serverlogRlt;iRbtcgssiRxitunbNtremote_headt
local_head(R�RURTR_RVR�RRithidepasswordtrandomtseedtopentreadlineRR�R�RW(RaRbt	remoteurlRdR0R R't
serverlogsR�R1RtpartsR�t
remoterevst	_checkoutt	localrevs((RdRbRas6/sys/lib/python2.7/site-packages/mercurial/commands.pyRs6 

	
**tdebugfilesets#apply the filespec on this revisions[-r REV] FILESPECcKstj||jd�d�}|jrMtj|�d}|j|d�nx+tj||�D]}|j	d|�q`WdS(s'parse and apply a fileset specificationRmis
s%s
N(
RZR�R_R\RtfilesettparseR�t
getfilesetR�(RaRbtexprRdR�ttreeRp((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR9Ls	tdebugfsinfos[PATH]R�c	Cs�tjdd�|jdtj|�r.dp1d�|jdtj|�rTdpWd�|jdtjd�rzdp}d�tjd�dS(	s2show information detected about current filesystems.debugfsinfoR	s	exec: %s
tyestnossymlink: %s
scase-sensitive: %s
N(Rit	writefileR�t	checkexect	checklinkt	checkcaseR�R�(RaR}((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR?Ys&&tdebuggetbundletHtheadsid of head nodetIDRKsid of common nodesREPO FILE [-H|-C ID]...cKs&tj|||�}|jd�s6tjd��ni}|rhg|D]}t|�^qI|d<n|r�g|D]}t|�^qu|d<n|jd|�}	|jdd�j�}
idd	6d
d6dd6}|j|
�}
|
t	j
krtjtd
���nt	j|	||
�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.
    RSs.getbundle() not supported by target repositoryRKR4RR�RDRERFRGRHRIs)unknown bundle type specified with --typeN(
R�RVtcapableRiRjRRSR_RORPRQRR](RatrepopathR�RHRKRdRbR�RRR@R`Ra((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRFcs&&tdebugignorecOsW|jj}t|dd�}|dk	r>|jd|�ntjtd���dS(s#display the combined ignore patternt
includepats%s
sno ignore patterns foundN(R�t_ignoretgetattrR\R�RiRjR(RaRbR�RdtignoreRM((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRLs
t
debugindextformatis
revlog formats[-f FORMAT] -c|-m|FILEc
Ks2tj|d||�}|jdd�}|dkrRtjtd�|��n|jtj@}|rqd}nd}|dkr�|j	d|d	�n$|dkr�|j	d
|d�nxl|D]d}|j
|�}	|r�j|�}
n|j|�}
|dkr�y|j
|	�}Wntk
r@ttg}nX|j	d||j|�|j|�|
|j|�t|	�t|d�t|d�f�q�|dkr�|j|�}|j	d
||j|�|j|�|j|�|j|�|
|j|�|d|dt|	�f
�q�q�WdS(s"dump the contents of an index fileRQRRiisunknown 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]RR_RiRjRRR�tREVLOGGENERALDELTAR�R{tdeltaparentt	chainbaseR�t	ExceptionRtstarttlengthtlinkrevRR�tflagstrawsize(
RaRbRRdRlRRtgeneraldeltatbasehdrR�R{RBtpptpr((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRQ�s>	

	*.	3t
debugindexdotcCsd}|r3|j|�}t|�r3|}q3n|sctjtjtj�dt�|�}n|j	d�x�|D]}|j
|�}|j|�}|j	d|j|d�|f�|dt
krw|j	d|j|d�|f�qwqwW|j	d�dS(s(dump an index DAG as a graphviz dot fileR�sdigraph G {
s
	%d -> %d
iis}
N(R\RqR�R�RZR�R�R�R`R�R{R�RmR(RaRbRRltfilelogR�R{R^((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR`�s*

$+tdebuginstallc
Cskd�}d}|jtd�tj�ytjd�WnDtjk
r�}|jd|�|jtd��|d7}nX|jtd�tjj	tj
��|jtd	�tjj	t
��y\d
dl}d
dl}d
dl
}d
dl}t|�t|�t|�t|�fWnTtk
r|}|jd|�|jtd��|jtd
��|d7}nXd
dl}|j�}	|jtd�dj|	��y|j|jd��WnAtk
r}|jd|�|jtd��|d7}nX|jtd��|j�}
tj|
�pWtj|
j�d�}|s�|
dkr�|jtd��|jtd��q�|jtd�|
�|jtd��|d7}n|jtd��y|j�WnDtjk
r3}|jd|�|jtd��|d7}nX|sP|jtd��n|jtd�|�|S(s;test Mercurial installation

    Returns 0 on success.
    cSsEtjdd�\}}tj|d�}|j|�|j�|S(NRXshg-debuginstall-twb(ttempfiletmkstempR�tfdopenR�R�(tcontentstfdR�Rp((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt	writetemp�s


ischecking encoding (%s)...
ttests %s
s* (check that your locale is properly set)
ischecking Python lib (%s)...
s#checking installed modules (%s)...
i�Ns* One or more extensions could not be founds* (check that you compiled the extensions)
schecking templates (%s)...
Rxsmap-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	fromlocalRiRjR�R�R}tdirnamet__file__tbdifftmpatchtbase85tosutiltdirRVt	templaterttemplatepathR�t	geteditortfindexeR�tusername(
RaRitproblemstinstRoRpRqRrRtR=R�tcmdpathR#((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRb�sh	0, (
t
debugknowns
REPO ID...cOs�tj|||�}|jd�s6tjd��n|jg|D]}t|�^qC�}|jddjg|D]}|r�dp�d^qt��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�RVRJRiRjR}RR�R�(RaRKtidsRdRbRRRZRp((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR|s
(tdebuglabelcompletesLABEL...cst�}|jd�|j�D��|j|jj��xW|j�j�D]C}x:|D]2}||}|j�s\|j|j	��q\q\WqOWt�}|s�dg}nx+|D]#�|j�fd�|D��q�W|j
djt|���|j
d�dS(s;complete "labels" - tags, open branch names, bookmark namescss|]}|dVqdS(iN((R�RP((s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>0sR	c3s$|]}|j��r|VqdS(N(R�(R�R0(RG(s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>;ss
N(
R�R�ttagslistR&tkeysRt
itervaluesR6R^R�R�R�R*(RaRbR�R�R4RR�tcompletions((RGs6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�+s	

	
!t
debugobsoleteRZsmarkers flags#[OBSOLETED [REPLACEMENT] [REPL... ]cs�d��|dk	r�}d|kr8|d|d<n|dpK|j�|d<t�fd�|D��}|j�}zU|jd�}z4|jj|�|�||d|�|j�Wd|j�XWd|j�Xn�x�t	j
|�D]�}	|jt|	j
���x4|	j�D]&}
|jd�|jt|
��qW|jd	|	jd
�|jddjd
�t|	j�j��D���|jd�q�S(sccreate arbitrary obsolete marker

    With no arguments, displays the list of obsolescence markers.cSs_y8t|�}t|�tt�kr3t��n|SWn tk
rZtjd��nXdS(Ns>changeset references must be full hexadecimal node identifiers(RR�Rt	TypeErrorRiRj(RRR"((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytparsenodeidGs
R4R7c3s|]}�|�VqdS(N((R�tsucc(R�(s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>YsR�RZNRxs %X is{%s}s, css|]}d|VqdS(s%r: %rN((R�RP((s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>lss
(R\RxttupleR�R�tobsstoretcreateR�RR�t
allmarkersR�Rtprecnodet	succnodest_dataR�R*tmetadataR(RaRbt	precursort
successorsRdR�tsuccsR0R�R-trepl((R�s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�?s2	

!tdebugpathcompletetfullscomplete an entire pathtnormalsshow only normal filestaddedsshow only added filestremovedsshow only removed filessFILESPEC...csZ��fd�}d}�dr/|d7}n�drF|d7}n�dr]|d7}n�j��|s{d	g}nt�t�}}xC|D];}|||p�d
�\}	}
|j|	�|j|
�q�W|r
t|�dkr
|jt|�j�d	�n|j|�|jdj��fd
�t	|�D���|jd�dS(s)complete part or all of a tracked path

    This command supports shells that offer path name completion. It
    currently completes only files already known to the dirstate.

    Completion extends only to the next path segment unless
    --full is specified, in which case entire paths are used.cs��j}tjjtjjtj�|��}�jtj}|�jkri|j|�riggfStjj	|�r�|d7}n|t
|�}tjdk}|r�|jtjd�}nt
|�}�d}t�t�}}	|	j
|j
}
}x�|j�D]�\}}
|j|�r|
d|kr|rW|jdtj�}n|rm||�qn|jtj|�}|dkr�|
||d �q�||�qqW||	fS(Nt/R�ii(R�R�R}tnormpathR�R�R�R�R�tisdirR�treplaceR�R^R+tfind(R}t
acceptableR�tspectrootdirtfixpathstspeclent	fullpathsR�tdirstadddirtaddfileRptstRR(RdRb(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytcompletes6	'



R	R�tnmR�RGR�RlR�tnmaris
c3s!|]}�j|��VqdS(N(tpathto(R�R=(RRb(s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>�sN(
R�R�R�R�R^titertnextR�R�R*(RaRbtspecsRdR�R�R�R�R�RpR3((RRdRbs6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�ps*







 
/tdebugpushkeysREPO NAMESPACE [KEY OLD NEW]cOs�tj|i|�}|r^|\}}}|j||||�}	|jt|	�d�|	SxRt|j|�j��D]5\}
}|jd|
j	d�|j	d�f�qzWdS(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�RVtpushkeyR�RzR*tlistkeysR+R�tencode(RaRKt	namespacetkeyinfoRdRR3R}tnewRltkR((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s
(t	debugpvecsA Bc	Cs7tj||�}tj||�}tj|�}tj|�}||krWd}n=||krld}n(||kr�d}n||Br�d}n|jtd�|�|jtd�|�|jtd�|j|jf�|jtd�t|j|j�tj|j	|j	�|j
|�|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
(RZR�tpvectctxpvecR�Rt_depthR�t_hammingt_vectdistance(	RaRbRGRKtcatcbR�tpbR�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s$			
	#(s&debugrebuilddirstate|debugrebuildstatesrevision to rebuild tos[-r REV]cCsStj||�}|j�}z#|jj|j�|j��Wd|j�XdS(s�rebuild the dirstate as it would look like for the given revision

    If no revision is specified the first current parent will be used.

    The dirstate will be set to the files of the given revision.
    The actual working directory content or existing dirstate
    information such as adds or removes is not considered.

    One use of this command is to make the next :hg:`status` invocation
    check the actual file content.
    N(RZR�R�R�trebuildR{R�R(RaRbRmR�R�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytdebugrebuilddirstate�s
#tdebugrenamesrevision to debugs
[-r REV] FILEcOs�tj||jd��}tj||f||�}x�|j|�D]�}||}|j�j|j��}	|j|�}
|	r�|j	t
d�|
|	dt|	d�f�qG|j	t
d�|
�qGWdS(sdump rename informationRms%s renamed from %s:%s
iis%s not renamed
N(RZR�R_R[R�RatrenamedtfilenodeR�R�RR(RaRbRmRcRdR�R-R�R�RgR�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s
1tdebugrevlogtdumpsdump index datas
-c|-m|FILEc.s�tj|d||�}|jd�rrt|�}|jd�d}t�}xt|�D]}|j|�}	|	dkr�|}	n|j|�}
|j	|�\}}|j
|�}
||
}|t|j	|��8}|j|�|jd||||j|�|j
|�|j|	�|j|
�|j|�|j|�|
|||j
|�t|�f
�q\WdS|j}|d@}g}t}|tj@r�|jd�n|tj@r�t}|jd	�n|s�
g}nd}d}d}d}d}d}d}d}g}d+ddg}d+ddg}d+ddg}d�}t|�}xtt|�D]f}|j	|�\}}|j|�}|dkr�||j
|�|�n|tkr�|d
7}n|j|�} |tkr|jd�|d
7}|| |�qh|j||d
�|| |�||d
kr�|d
7}||krg|d
7}q�||kr�|d
7}q�qh||kr�|d
7}qh||kr�|d
7}qh|tkrh|d
7}qhqhWx4|||fD]#} | dd+kr�| d<q��||}!|||}"|d}#|dc|:<|d}$|dc|:<|d}%||dkr�|dc||:<n|$|%}&t|�|}'|#|&}(d�d��fd�})d�fd�}*d�}+|jd|�|jddj|��|jd�|*|&�},|)|&�}-|jd|-|�|jd|,|+||��|jd|,|+|||��|jd|-|�|jd|,|+||��|jd|,|+|!|��|jd|-|&�|jd|,|+|$|&��|jd|,|+|%|&��|jd�|)t|'|(��},|jd|,|'�|jd|,|(�|dkr�|jd�|jd t|��n|jd!t|��|jd"t|��|!dkr�jd�|*|!�},|*|!d#�}-|jd$|,|+||!��|dkr�|jd%|-|+||��|jd&|-|+||��|jd'|-|+|"|��n|r�jd(|,|+||!��|jd)|,|+||!��|jd*|,|+||!��q�d+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�tinlineR\s(none)lcSs^|ddks ||dkr-||d<n||dkrJ||d<n|dc|7<dS(Niii(R\(RR0((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytaddsize@	s
 

iis%%%dd
s%%%dd %s(%%5.2f%%%%)
cs�tt|��S(N(R�Rz(R�(tbasedfmtstr(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytdfmtstry	scs�tt|��d|fS(NRx(R�Rz(R�tpadding(tbasepcfmtstr(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytpcfmtstr{	scSs|dt|�|fS(Nid(Rg(tvalueR�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytpcfmt~	ssformat : %d
sflags  : %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]RR_R�R�R�R�RTRUR�R[R^RWtendRR`R�tREVLOGNGINLINEDATAR�RSR�R\RRXtsumR�R�R�(.RaRbRRdRltnumrevsttsR4RmtdbasetcbaseR�R�trsRRRRZtgdeltat	nummergestnumfulltnumprevtnump1tnump2tnumothert	nump1prevt	nump2prevtchainlengthstdatasizetfullsizet	deltasizeR�R�Rt	numdeltastnumoprevttotalrawsizet	fulltotalt
deltatotalt	totalsizetavgchainlent	compratioR�R�R�tfmttfmt2((R�R�s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�	s
		

	!+	


	













	
"

			
		tdebugrevspectREVSPECcCs�|jrrtj|�d}|jtj|�d�tj||�}||krr|jtj|�d�qrntj||�}x4||tt|���D]}|j	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�tprettyformattfindaliasesR[RR�R�(RaRbR=R>tnewtreeR�Rs((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s	"tdebugsetparentssREV1 [REV2]cCsetj||�j�}tj||d�j�}|j�}z|j||�Wd|j�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.
    RJN(RZR�R{R�t
setparentsR(RaRbR�R�tr1tr2R�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s
sdebugdirstate|debugstatesdo not display the saved mtimetdatesortssort by saved mtimes[OPTION]...cCsrd}|}|rd�}nd}xt|jjj�d|�D]�}}|r�|ddkr�ttjdtjd���}	d}||	 d	|	t|�}q�tjdtj|d��}n|d
d@r�}
nd
|d
d@t	j
@}
|jd|d|
|d||f�qDWx@|jj�D]/}|jt
d�|jj|�|f�q;WdS(s)show the contents of the current dirstateR	cSs|dd|dfS(Niii((Ru((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRw�sR3ii�s%Y-%m-%d %H:%M:%S itunsetRxii tlnks%3oi�s%c %s %10d %s%s
iscopy: %s -> %s
N(R\R*R�t_mapR+R�Rtstrftimet	localtimeRitumaskR�tcopiesRtcopied(RaRbRIR�ttimestrtshowdatetkeyfuncRtentt
locale_lentmodeRp((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt
debugstate�s*+		,tdebugsubsrevision to checks[-r REV] [REV]cCsztj||d�}x^t|jj��D]G\}}|jd|�|jd|d�|jd|d�q+WdS(Nspath %s
s
 source   %s
is
 revision %s
i(RZR�R\R*tsubstateRR�(RaRbRmR�R�R((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�s
"tdebugsuccessorssetss[REV]c
Gsi}t}t}|j�r0d�}t}nx�tj||�D]�}||}|jd||��x�tj||j	�|�D]u}|r�jd�|j||d��x5|dD]&}	|jd�|j||	��q�Wn|jd�q�WqCWdS(	sSshow set of successors for revision

    A successors set of changeset A is a consistent group of revisions that
    succeed A. It contains non-obsolete changesets only.

    In most cases a changeset A has a single successors set containing a single
    successor (changeset A replaced by A').

    A changeset that is made obsolete with no successors are called "pruned".
    Such changesets have no successors sets at all.

    A changeset that has been "split" will have a successors set containing
    more than one successor.

    A changeset that has been rewritten in multiple different ways is called
    "divergent". Such changesets have multiple successor sets (each of which
    may also be split, i.e. have multiple successors).

    Results are displayed as follows::

        <rev1>
            <successors-1A>
        <rev2>
            <successors-2A>
            <successors-2B1> <successors-2B2> <successors-2B3>

    Here rev2 has two possible (i.e. divergent) successors sets. The first
    holds one element, whereas the second holds three (i.e. the changeset has
    been split).
    cSs
|j�S(N(R(R�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytctx2str)
ss%s
s    iiRxs
N(
RzRRRRZRR�R�tsuccessorssetsR{(
RaRbR_tcacheRtnode2strRmR�tsuccssetR{((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR
s"#		
"

t	debugwalkc
	Os(tj|d||�}t|j|��}|s8dSd�}|jdd�rntjdkrnd�}ndtg|D]}t	|�^q{�tg|D]}t	|j
|��^q��f}x\|D]T}||||j
|��|j|�r�pd	f}	|jd
|	j
��q�WdS(s&show how files match on given patternsNcSs|S(N((R�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRw?
sRatslashR�cSs
tj|�S(N(RiR�(R�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRwA
ssf  %%-%ds  %%-%ds  %%stexactR	s%s
(RZR[R\R�R�RR�R�R�R�R�RR�trstrip(
RaRbRcRdR-RRpR�R�R((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR8
s	!"2
7t
debugwireargstthreetfourtfivesREPO [OPTIONS]... [ONE [TWO]]cOs�tj|||�}xtD]}||d=qWi}x-|j�D]\}}|rD|||<qDqDW|j||�}	|j||�}
|jd|	�|	|
kr�|jd|
�ndS(Nis%s
(R�RVt
remoteoptsR+RR�R�(RaRKR�RdRbtoptR�R�Rtres1tres2((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRI
s
s^difftchangeschange made by revisions6[OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...c

Os.|jd�}|jd�}|jd�}|jd�}|rf|rftd�}tj|��nR|r�tj||d�j�}	||	j�j�}
ntj	||�\}
}	|r�|	|
}
}	nt
j||�}tj||	||�}t
j||||
|	|d|d|jd��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.
    RmR#RDRMs2cannot specify --rev and --change at the same timetlistsubreposRVN(R_RRiRjRZR�R\R{R�trevpairR>R�R[R]tdiffordiffstat(
RaRbRcRdR_R#RDRMtmsgtnode2tnode1R�R-((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytdiff^
s">!s^exports
switch-parentsdiff against the second parentsrevisions to exports*[OPTION]... [-o OUTFILESPEC] [-r] [REV]...cOs�|t|jdg��7}|s.dg}ntj||�}|s^tjtd���nt|�dkr�|jtd��n|jtd��t	j
||d|jd�d	|jd	�d
tj||��dS(sdump the header and diffs for one or more changesets

    Print the changeset header and diffs for one or more revisions.
    If no revision is given, the parent of the working directory is used.

    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.
    RmR�s&export requires at least one changesetisexporting patches:
sexporting patch:
R;Rht
switch_parentRdN(
R�R_RZRRiRjRR�R�R]texportR>R�(RaRbRRdR_((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR,�sBs^forgetcOsl|stjtd���ntj|d||�}tj|||dddt�d}|rhdpkdS(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 specifiedRXR	RYiiN(	RiRjRRZR[R\R]tforgetR`(RaRbRcRdR-Re((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR-s
%tgraftsrevisions to grafttcontinuesresume interrupted grafttedits invoke editor on commit messagestlogs append graft info to log messagetDtcurrentdates&record the current date as commit datetcurrentusers$record the current user as committers[OPTION]... [-r] REV...cOs"t|�}|j|d�|jd�rO|jd�rO|j�|d<n|jd�r�|jd�r�dtj�|d<nd!}|jd�r�tj}nt	}|dr_t
}|r�tjtd	���ny?|j
jd
�j�}g|D]}||j�^q�Wq�tk
r[}|jtjkrC�ntjtd���q�Xn=tj|�|s�tjtd���ntj||�}x>|jd
|�D]*}	|jtd�|	�|j|	�q�W|s�S|dj�}
|jj|
gdt
�}xGt|�D]9}	|	|kr|jtd�|	�|j|	�qqW|sfdSi}x^|jd|�D]J}
|
j�||
j�<|
j�jd�}|r|
j�||<qqW|jd�x%|jj ||
g�D]}	||	}
|
j�jd�}||kr�||j�}||krg|jtd�|�|j|�q�||kr�jtd�|||f�|j||�q�|
j�|kr�|
j�}|jtd�||	f�|j|�q�W|sdS|j!�}z�|d}x�t"|jd|��D]�\}}
|j#td�|
j��|jd�r|q>n|
j�jd�}|s�|
j�}ni|d6}|
j$�}|jd�r�|d}n|
j%�}|jd�r|d}n|
j&�}|jd�r5|d|
j�7}n|s/zV|j'j(dd|jdd ��t)j*||
j+�t
t
t	|
j,�j+��}Wd!|j'j(ddd �X|r5|d"d#kr5g||D]}	||	j�d$^q�}|j
j-d
d j.|��tjtd%�d&td'���q5nt	}|j/|j+�t0�|j1j-�tj2||
j�|
j,�j��|j3d(|d|d|d)|d*|�}|d!kr�|j#td+�|
j��q>||}q>WWd!|j4�X|jd�stj5|j.d
�d,t
�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 --log is specified, log messages will have a comment appended
    of the form::

      (grafted from CHANGESETHASH)

    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.
    RmR7R4R4R3s%d %dR0R/s&can't specify --continue and revisionsRys$no graft state found, can't continuesno revisions specifieds%ld and merge()s'skipping ungraftable merge revision %s
i�R�t	inclusivesskipping ancestor revision %s
s%ldRusscanning for duplicate grafts
s%skipping already grafted revision %s
s6skipping already grafted revision %s (same origin %d)
s;skipping already grafted revision %s (was grafted from %d)
sgrafting revision %s
RWR1s
(grafted from %s)RaR�RQR	Niis
s$unresolved conflicts, can't continueR/s&use hg resolve and hg graft --continueRHRR�sgraft for revision %s is empty
t
ignoremissing(6R�R�R_RxRitmakedateR\R]R�R`R�RjRR�R�t
splitlinesRmtIOErrorterrnotENOENTR�RZRR_R�tremoveR�RR�RRRtfindmissingrevsR�t	enumerateR�R7R4R|RaR�tmergemodR�R{R�R�R�R�RR�tduplicatecopiesR�Rt
unlinkpath(RaRbR_RdR�tcontR�R{RzRmtcrevRR�R�R"RlR�R�tposRuRR7R4R.tstatst	nodelines((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR.%s�=
'



%


"+
% tgrepRtprint0send 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]...c	s�tj}�jd�r(|tjO}nytj||��Wn.tjk
rn}�jtd�|�dSXd\���jd�r�d��ntj	|j
���fd��d	tfd
��Y�i�i����fd��d��������fd
�}i�i�tj
|d|��}t}	�jd���������fd�}
xGtj||�|
�D]-}|j�}|j�j�}
x��j|g��D]�}�||}�j|i�j|�}|�kr|r�t�|<q�q�n�j|
i�j|p6|g�}|sK|r�|||||�}|	pi|}	|r��jd�r�t�|<|r�t�|<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
iRs
RHtc3s�d}d}x�|t|�kr��j||�}|s=Pn|j�\}}||jd||�d7}|jd||�dp�|}|jd|�dp�t|�d}|d}||||||||!fVqWdS(Nis
i(R�tsearchtspantcounttrfindR�(tbodytbegintlinenumR[tmstarttmendtlstarttlend(tregexp(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt
matchlines%s&
t	linestatecBs#eZd�Zd�Zd�ZRS(cSs(||_||_||_||_dS(N(RRQtcolstarttcolend(tselfRRQRYRZ((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt__init__4s			cSst|j|jf�S(N(thashRQR(R[((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt__hash__:scSs|j|jkS(N(R(R[Rd((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt__eq__=s(t__name__t
__module__R\R^R_(((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRX3s		c	sk�|j|g��||}xB�|�D]4\}}}}�||||�}|j|�q/WdS(N(RR�(	R�RmROR-tlnumtcstarttcendRRR(RXtmatchesRW(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytgrepbodyBs
c	sstjd||�}x�j�D]�}}}}}|dkrox�t||�D]}d||fVqSWq"|dkr�x�t||�D]}d||fVq�Wq"|dkr"x&t||�D]}d||fVq�Wx)t||�D]}d||fVq�q"q"WdS(Ntinsertt+RR�R�(tdifflibtSequenceMatcherR\tget_opcodesR�(	RGRKtsmR<talotahitblotbhiR�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytdifflinestatesIs"cs��j�}�jrtjp$tj}t}i}���fd�}�jd�ri�||�}	ng|D]}
d|
f^qp}	xX|	D]P\}}
�dft|�dfg}d\}
}}�jd�r�j	t|
j
�df�n�jd�r|j	|df�n�jd	�rO|j	�j�j��d
f�n�jd�r�|j	|�j
��df�n�jd
�r��|f}||kr�q�nd||<n6|
j|
j }
|
j|
j|
j!}|
j|
j}x>|d D]2\}}�j|d|��j�dd�q�j|ddd|dd�|
dk	r��j�dd��jd�r�|�r��jd�q��j|
��j|dd��j|�n�j��t}q�W|S(Ncs+���}tj|j�j����S(N(RiR�R�R�(tflog(R�R�tgetfile(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�]sRCR	s
grep.filenamesgrep.revR~sgrep.linenumbersgrep.changeR7s	grep.userR4s	grep.datetfiles_with_matchesii�R%sgrep.sepiRHs Binary file matchess
grep.match(NNN(RmRRiR�R�R`R_RzR\R�RQRyR7R4RRYRZR�R�(R�R�tpstateststatesRmRvtfoundtfilerevmatchesR�R�R0R#tcolstbeforeR[R�RstcolR%(RqteolRsRdR�Ra(R�R�s6/sys/lib/python2.7/site-packages/mercurial/commands.pytdisplayXsR%"
#


Roc	s�|j�}|j�}|j�}�j|i��j|i��j|g�}xK|D]C}�|�}y|j|�}Wntjk
r�q]nX|j|�}	�o�|	o�|	d}
|
r�
�j|i�|<n|�kr|
r]t�|
<q]q]n|j|�|�|kr>�|||j	|��n|
pG|}|�|kr]y,|j|�}�|||j	|��Wq�tjk
r�q�Xq]q]WdS(Ni(
RmR�RR�R�RR�R�R�R�(R�tfnsRmtpctxR�R�R�RrtfnodeRR�tpfn(RRoRsRfRetrevfilesR�(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytprep�s<


RC(Rs
N(treRCR_R(Rit	compilereR�R�RtlrucachefuncRqtobjectRZR[R\R`R]twalkchangerevsRmR�R*R�(RaRbtpatternRcRdtreflagsRzR}R�RwR�R�RmR�R�RvR�RuRl((RRqR|RoRsRfRXReRWRdRVR�R�R�Ras6/sys/lib/python2.7/site-packages/mercurial/commands.pyRG�s\#	

	2!#
$
R4s1show 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]...cs^d}d|kr4tj�|dd�j�}n|jd�rlg�j|�D]}�|^qS}n\g}x6�j�D](}|�j|||jd��7}qWg|D]}�|^q�}|rt�fd�|D��}g|D]}|j	�|kr�^q�n|jd�rj|rj�j|�}	g|D]}|j�|	krC|^qC}n|r�d�|D��}
||
r�j
d�||
D��}td	�}|jd�r�td
�|d7}n|j|d|�q�|sdSt
|d
d��}tj|�|�}
x|D]}|
j|�q9W|
j�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.
    RmR�R2c3s|]}�|j�VqdS(N(R�(R�tbr(Rb(s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>�sR1css|]}|j�VqdS(N(R�(R�R((s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>
ss, css|]}|VqdS(N((R�RK((s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>
ss)no open branch heads found on branches %ss (started at %s)s
iR3cSs|j�S(N(Rm(Ru((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRw

sN(R\RZR�R{R_R4RR�R�R�R�RR�R*R]R�R�R�(RaRbt
branchrevsRdRWRR4R�R0tdagheadst	haveheadstheadlessR'R�R�((Rbs6/sys/lib/python2.7/site-packages/mercurial/commands.pyR4�s<#")&..

t	extensionsshow only help for extensionssshow only help for commandsR�tkeywordsshow topics matching keywords
[-ec] [TOPIC]cKs�t|j�d�d}|jr+dgp.g}tj|||�}tj||d|�\}}d|kr�|jd�n
|jd�tj||d|�\}}|j|�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.
    iPiRtkeeptomittedt
notomittedN(	tmint	termwidthRR thelp_tminirstRRR�R�(RaR�Rdt	textwidthR�RHt	formattedtpruned((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�
s
sidentify|idsidentify the specified revisionR�sshow local revision numberR�sshow global revision idsshow branchs	show tagsRsshow bookmarkss[-nibtB] [-r REV] [SOURCE]c	s,|r&|r&tjtd���n|jr5tp8t}
|pV|pV|pV|pV|}g}g}
|r�tj|j|��\}}tj	|p�||	|���j
�}tj|�|d�\}
}n|s�|s�s�rtjtd���n|r|
r|
d}n|s+d}n�j
|��|sF|rX|
��g}n��fd�}|r�|j|��q|r|jrdj|��}|r�|j|�q�qnM|s�|d��j�}d}|s�s�r8tj|j��s,tj�fd��jD��r8d	}q8n|sD|r�d
d	jg|D]}|
|j��^qT�|fg}n|r%|jd
d	jg|D]}t|j��^q��|f�q%nXtj||��|s�r|
�j��g}n|r%|jt�j���n|r�|jr��j�}|dkra|jd|�ndj�j��}|r�|j|�ndj�j��}|r|j|�qnT|r�|j�j��n|r�j�j��n|r|j�j��n|jd
dj|��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�csng}d�jd�krdt��}g�jd�j�D]\}}||kr=|^q=}nt|�S(NRt
namespaces(R�RR+R*(tbmsthexremoterevR�tbmr(RVt	remoterev(s6/sys/lib/python2.7/site-packages/mercurial/commands.pytgetbmsz
s"R�R	c3s$|]}�j|�j�VqdS(N(tsubtdirty(R�RR(R�(s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>�sRhs%s%sRLs(%s)s%s
RxN(RiRjRR�RRR�RURTRVR�RWR\R�R�RR�R�R�R$R�RR{RzRmRZR�R�R�RR�(RaRbRuRmR�R�R�R�RRdR:RLRhR_R0ReR�R�R�tchangedR=RKRP((R�RVR�s6/sys/lib/python2.7/site-packages/mercurial/commands.pytidentify2
s�,!

	

";	<simport|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 directoryRs4apply patch to the nodes from which it was generateds
import-branchs8use any branch information in patch (implied by --exact)s[OPTION]... PATCH...c
s�|stjtd���n|f|}�jd�}|rVtj|��d<ntj��jd�rztj�n�jd���r��jd�r�tjtd���nyt�jd�p�d��Wn&t	k
r�tjtd	���nX�dks�d
kr0tjtd���n�rU�rUtjtd���n�jd
�st�jd�r��r�tj
��n�d}�d�d}}}	g��������fd�}
z�y��j�}�jd�s�j
�}�jd�}	n�j�}x(|D] }|dkr\|jtd��|j}
d}n>tjj||�}|jtd�|�tj||�}
t}x�tj|
�D]o}|
|||�\}}|r�}|j|d�n�s�jd
�r�j�}q��|g}q�W|s%tjtd�|��q%q%W|	r\|	j�n�r{�jdj���nWn�jj��nXWd|	r�|	j �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 importR4R0R�t	no_commits$cannot use --no-commit with --bypassRSissimilarity must be a numberids$similarity must be between 0 and 100s%cannot use --similarity with --bypassRRRBRcs�tj||�\}}}}}}}	}
|s4dStd�}zTtj|��}|rd|}n|ry|j�}nd}|jd|�t|�dkr�|j	�t
�n�jd�r|s�|	r�j
td���n�|	}	�|
pt
}
nw|
rsy?�|	}	�|
}
|	|dkrL|d}	�t
}
nWqtjk
ro|\}	}
qXn|\}	}
d}
�r�|dkr�tj�|	j��n|
|dkr�j|	j�|
j��n�jd�s�jd�r�jj|pd�nt�}tj|�|d	�d
|ddd�d
�t|�}�jd�r�|r�j	|�q��jd�s�|
r�d}ntj�|p�g�}�j|�jd�p�|�jd�p�d|d��}
n3�jd�s�jd�r+|p%d}n|	j�}tj�}z��}y)tj|�|	||�|dd�Wn+tjk
r�}tj
t|���nXtj �|	j�|
j�f|�jd�p�|�jd�p�|||dtj!�}�j"|j#��|j�}
Wd|j$�X�jd�rjt%|
�|krjtj
td���n|
r�td�t&|
�}n||
fSWdt'j(|�XdS(Nsapplied to working directorysmessage:
%s
iRsnot a Mercurial patchit
import_branchRLRR�teolmodeRSgY@R�R7R4R[R�s%patch is damaged or loses informations
created %s(NN()R>textractR\RR]t
logmessageRRR�R�RR_RiRjR�t	RepoErrorR�R�R{R�R�R�R�R�RZt
matchfilesR�R�t	filestoret	patchrepot
PatchErrorRzt
makememctxR�tsavecommitmessageR|R�RRR�R�(RathunkR�ttmpnameR.R7R4R�R�R�R�R'tcmdline_messageR"R�R-tstoreR#R�(R�tmsgsRdRbRkRR�(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyttryone,s�*	



			!timportR�sapplying patch from stdin
tstdinsapplying %s
s
s%s: no diffs founds
* * *
N(!RiRjRR_R�R]R�R�RgRhR�R\R�R�R�R�R�R�R�R}R�R�R�R`R>R�R�R�R�R�R�t
invalidateR(RaRbtpatch1tpatchesRdR4RBR�R�R�R�R�tpatchurlt	patchfilethaspatchR�R'R{((R�R�RdRbRkRR�s6/sys/lib/python2.7/site-packages/mercurial/commands.pytimport_�s~P
	

%

!g
		 


sincoming|ins*run even if remote repository is unrelatedsnewest-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]c	sz�jd�r]tjg�����fd�}tj|d���|�dt�dS�jd�r��jd�r�tjtd���n�jd	�r@tj	�j
|��jd
��\}}tj��|�}d	|jd�kr
�j
td��dS�jtd
�tj|��tj��|�S�j
|��_ztj��|��SWd�`XdS(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.
    RFcs^tj||��}g�dj�D]}|j�^q&}tj�|||tj�dS(N(R]t	graphrevsR\R�R{tdisplaygraphtgraphmodt
asciiedges(RdtchlistR�trevdagR�tshowparents(RdRbRa(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR}�s)cSsdS(Ni((((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRw�stbufferediR@RVs&cannot combine --bundle and --subreposRR�R�s!remote doesn't support bookmarks
scomparing with %s
N(R_R]tcheckunsupportedgraphflagsR�t	_incomingR�RiRjRRURTRVR�R�R�R.RR*t_subtoppathtincoming(RaRbRuRdR}R0Rd((RdRbRas6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s(% s^inits![-e CMD] [--remotecmd CMD] [DEST]cKs&tj|||j|�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.
    R�N(R�RVRTR�(RaR�Rd((s6/sys/lib/python2.7/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|jd�rdpd}tj||jd�d�j�}d}tj||||dd�}d�|_x�||j|�D]x}|r�||jkr�q�n|jd	�r�|j	|j
|�|�n%|j	|r�j|�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.
    RHRJs
RmiRLtrelglobcSstS(N(R`(RuR
((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRw)sR�iN(R_RZR�R\R{R[R�R�R�R�twjoinR�(	RaRbRcRdR�RmtretR-R�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�
s$%
s^log|historysfollow-firsts=only follow the first parent of merge changesets (DEPRECATED)s!show revisions matching date specRsshow copied filess+do case-insensitive search for a given texts$show the specified revision or ranges*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 ancestorss[OPTION]... [FILE]cs��jd�r%tj|�|��Stj�d|���tj��}d}d\�}�jd�r��jd�r�ttj��jd���d}nt	j
�d|��nt��jd�r�j
�d��n�jdg��jd	g�}g|D]}�j|�^q�d<tj|��t��������fd
�}	xRtj���|	�D]8}
�j|
j��r�|d7}n||krPqqW�j�dS(
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.
    RFiRRmitendrevR4R�tonly_branchc
s�|j�}g�jj|�D]}|tkr|^q}�jd�rbt|�dkrbdS�jd�r�t|�dkr�dS�jd�r�|j��dkr�dS�r��|j�d�r�dStj	}�jd�r@||j
��}xBg�dD]}||�^q	D]}||krPqqWdSn�jd�r�|j
��}||j��}	|dj|j
���}
xZg�dD]}||�^q�D].}||ks�||	ks�||
kr�Pq�q�WdSnd}�dk	rR|rRg}xF|j
�D]5}�||�}
|
r|j||
df�qqWnd}�jd	�sv�jd
�r��jd�s��jd�r�tj�d|d
d�}q��}n�j|d|d|�dS(Nt	no_mergesitonly_mergesR�iR7R�RxR>RDRotfollow_firstRLR}RR�(RmR�R�RR_R�R�R4RROR7R|R�R�R\R�RZR[R�(R�R~RmR=R�ROtluserRuR�tldesctlfilesRR�Rt
revmatchfn(tdfR�t
getrenamedR�RdRb(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��sN!!%	**$!	N(NN(R_R]tgraphlogRZR[R\tloglimitR�Rt
templatekwtgetrenamedfnR`RiR
tlookupbranchR�R�R�tflushRmR�(RaRbRcRdRARMR�R0RKR�R�((R�R�R�R�RdRbs6/sys/lib/python2.7/site-packages/mercurial/commands.pyR15s.h("&1
srevision to displayslist files from all revisionsc
KsK|jd|�}|jd�r1|s-|rEtjtd���ng}d}d}t|�}	t|�}
|j�}zlxe|jj�D]T\}}
}|dkr�||
|kr�||	 |kr�|j	||	|
!�q�q�WWd|j
�Xx+|D]#}|j�|jdd	|�q�j
�dS|rU|rUtjtd
���n|sd|}nidd6d
d6dd6}idd6dd6dd6}tj||�}|j�}x�|D]z}|j�||j�}|j|jddt||��|j|jdd||||�|jdd	|�q�W|j
�dS(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�RCs#can't specify a revision with --allsdata/s.iiNR}s%s
s please specify just one revisionRR0R$RuR	t644t755R]s%s s	mode types%s %1s (t	formatterR_RiRjRR�R�R�t	datafilesR�Rt	startitemR�R�RZR�R�RZt	condwriteR�RR(RaRbR{RmRdtfmtresRXtsuffixtplentslenR�R�RKRRptcharR
R�R�tfl((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��sF- 


	

#$s^merges&force a merge with outstanding changessrevision to mergetpreviews1review revisions to merge (no merge is performed)s[-P] [-f] [[-r] REV]c
Ks|jd�r-|r-tjtd���n|sE|jd�}n|rftj||�j�}n|rF|jrF|j|j�}||jj�}t	|�dkr�||dkr�|d}qC|d}qFt	|�dkr
tjtd�dtd���qFt	|�dkrFtjtd	�dtd���qFn|r%|jr%|dj�}|j|�}g|D]}||j
�s}|^q}}	t	|	�dkr�jtd
�|t	|�fdtd���n|jj�}
t	|	�dkr�t	|�dkr<tjtd�dtd���nt	|j��dkr|tjtd
�|dtd���ntd�d}}|
|j|�kr�td�}ntj|d|��n|
|kr�jtd�dtd���n|
|	dkr|	d}q%|	d}n|jd�r�|jd�}
|j|�}|jjd|
gd|g�}tj|||�}x|D]}|j||�q�W|j�dSzE|jjdd|jdd��tj||d|jd��SWd|jddd�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.
    Rms please specify just one revisioniiisTmultiple matching bookmarks to merge - please merge with an explicit rev or bookmarkR/srun 'hg heads' to see all headssMno matching bookmark to merge - please merge with an explicit rev or bookmarks<branch '%s' has %d heads - please merge with an explicit revsrun 'hg heads .' to see headss8heads are bookmarked - please merge with an explicit revs<branch '%s' has one head - please merge with an explicit revsnothing to mergesuse 'hg update' insteads(working directory not at a head revisions2use 'hg update' or merge with an explicit revisioni�R�R�RKR4RaR�RQR	RN(R_RiRjRRZR�R{R(t
bookmarkheadsR�R\R�R�RR�R�R4R�R�tfindmissingR]R�R�R�RaR�R�R�(RaRbR{RdtbmheadstcurheadR�R�tbhtnbhsR�R'R/R�R�R�R�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�(sv$

)

!

"#soutgoing|outs6a changeset intended to be included in the destinations(a specific branch you would like to pushs&[-M] [-p] [-n] [-f] [-r REV]... [DEST]c	Ks�|jd�r�tjg|�tj||||�}|dkrGdStj|||�}tj|||dt�}g|dj	�D]}|j
�^q�}tj||||tj
�dS|jd�r�|j|p�d|p��}tj||jd��\}}	tj|||�}
d|
jd	�krO|jtd
��dS|jtd�tj|��tj||
|�S|j|p�d|p�d�|_ztj||||�SWd|`XdS(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.
    RFNR�iRsdefault-pushRLR�R�s!remote doesn't support bookmarks
scomparing with %s
(R_R]R�R�t	_outgoingR\R�R�R�R�R{R�R�R�RTRURVR�R�RR�RiR.RR*R�Rc(RaRbR�RdRgR�R�R�R�R0Rd((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRc�s0)
! !R�s&show parents of the specified revisions[-r REV] [FILE]c
Ks�tj||jd�d�}|rJtj||f|�}|j�s`t|j��dkrxtj	t
d���n|j�d}g}xQ|j�D]C}|s�q�ny|j|j
|��Wq�tjk
r�q�Xq�W|stj	t
d�|��n|j|�}g|D]'}	|j|j|j|	���^q}
n%g|j�D]}|j�^qW}
tj|||�}x.|
D]&}|tkr�|j||�q�q�W|j�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.
    Rmis%can only specify an explicit filenameis'%s' not found in manifest!N(RZR�R_R\R[tanypatsR�R�RiRjRR�R�R�R�RRqR�RYRmR{R]R�RR�R�(
RaRbRRdR�R-t	filenodestcpR�R�R=R�R"((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR��s0$7%
tpathss[NAME]cCs�|rsxG|jd�D]6\}}||kr|jdtj|��dSqW|jso|jtd��ndSxZ|jd�D]I\}}|jr�|jd|�q�|jd|tj|�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.
    Rs%s
Nsnot found!
is%s = %s
(tconfigitemsR�RiR.RR�RR�(RaRbRKR�R}((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�s		R�R�sset 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}xTttj�D]C\}}||r|dk	rPtjtd���n|}qqWt|�}|j|d�|s�tjtd���nt	j
||�}d}d}|dkrx�|D]3}	||	}
|jd|
j�|
j
�f�q�Wn�|j�}z�|s0tjtd���ng|D]}	||	j�^q7}|jj|�}tj|||�|dr�tj|||�nWd|j�X|j�}
|jj|
��t�fd	�t|�D��}|
j}g|D]%}�|j|�|kr�^q�|rO|jtd
�t|��d}n|r�td�|}|r{|j|�q�|j|�n|jtd
��d}|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 specifiedRmsno revisions specifiedis%i: %s
sempty revision setRNc3s%|]\}}|�|kVqdS(N((R�R�Rg(tnewdata(s6/sys/lib/python2.7/site-packages/mercurial/commands.pys	<genexpr>fssBcannot move %i changesets to a more permissive phase, use --force
is phase changed for %i changesets
sno phases changed
(R\R>R�t
phasenamesRiRjRR�R�RZRR�RmR9R�R{t_phasecachetgetphaserevstadvanceboundarytretractboundaryRt
unfilteredR�R�R�R�R�R�(RaRbR_RdttargetphasetidxR�R�R�RlR�R�tolddatatunfitchangesR�R"ReR'((Rs6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�&sZ



*#
"	
%	c	CsV|dkrdS|r�|dj�}ytj||�}Wn4tjk
rr}|jtd�t|��dSX|r�|r�tj||g|dj��r�|j	td�|j
�q�n|S|dkr?t|j��}||kr|j	td��qR|dkr)|j	td��qR|j	td��n|j	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)
(
R{R�R�RiRjR�RRzRR�R(R�R�(	RaRbtmodheadst	optupdateRetmovemarkfromR�Rztcurrentbranchheads((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytpostincomingys*" 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]cKsntj|j|�|jd��\}}tj|||�}|jtd�tj|��tj	||||jd��\}}|j
d�}|jd�r|s�g}nxN|dD]?}	|	|kr�jtd�|	��n|j||	�q�Wn|rey&g|D]}
|j
|
�^q}Wqetjk
ratd�}tj|��qeXn|j|d|d	|jd	��}tj||||�|r�t|jj|j
|���}n||_z%t||||jd
�|�}
Wd|`X|jd�rj|j}xA|dD]5}	|jtd�|	�|||	j�||	<q$W|j�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
RmRRsremote bookmark %s not found!sOother repository doesn't support revision lookup, so a rev cannot be specified.R4RR�Nsimporting bookmark %s
(R�RURTR_RVR�RRiR.RWR�RjR�R�R�tCapabilityErrorRqRtupdatefromremoteRzR�RmR�RR&R{R�(RaRbRuRdR0RdR_RetremotebookmarksRKRmRnRR�R"((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRq�sB* '	&$$	%	
s^pushs
force pushsbookmark to pushs
new-branchsallow pushing a new branchs2[-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]c
Ks�|jd�rkxY|dD]J}||jkrK|jdg�j|�q|jdg�jd�qWn|j|pzd|p�d�}tj||jd��\}}|jtd�t	j
|��tj||||jd��\}}tj|||�}|r=gt
j||�D]}	|j|	�^q}n||_zP|d}
|
j}x6t|�D](}|
j|�j|�d	kritSqiWWd
|`X|j||jd�d|d
|jd��}
|
}
|jd�r�jd�}x�dD]�}||jkr?|jtd�|�||j�}nG||krk|jtd�|�d}n|jtd�|�dS|j|d�}|jd|||�}	|	s|jtd�|�|
s�d}
q�qqWn|
S(s�push 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.

    If -B/--bookmark is used, the specified bookmarked revision, its
    ancestors, and the bookmark 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.
    RRmRJsdefault-pushRLR�spushing to %s
R	iNRR_t	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_R&RR�RTR�RUR�RRiR.RWRVRZRR�R�RR*R�tpushR`R�RR�R�(RaRbR�RdRKR0R_ReRdRlRstsubsRRtresulttrbR�R}((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�sT- ! '1	
		trecovercCs|j�rtj|�SdS(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(R!R�tverify(RaRb((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR!Cs
s
^remove|rmsrecord delete for missing filess2remove (and delete) file even if added or modifiedcOs#d}|jd�|jd�}}|rK|rKtjtd���ntj|d||�}|jd|dt�}|d|d|d|d	f\}	}
}}|d}
x�|j	�D]�}||j
ks�||
j�kr��ntj
j|j|��rjtj
j|j|��rG|jtd
�|j|��qj|jtd�|j|��nd}q�W|r�|	|||
}n�|r�|}x�|	|
|D],}|jtd�|j|��d}q�Wnx||}x4|	D],}|jtd
�|j|��d}q�x4|
D],}|jtd�|j|��d}q%WxPt|�D]B}|js�|j|�rb|jtd�|j|��qbqbW|j�}z]|s�|D]4}||
kr�q�ntj|j|�dt�q�Wn|dj|�Wd|j�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.
    iR�Rsno files specifiedR[R�iiis"not removing %s: no tracked files
s#not removing %s: file is untracked
s#not removing %s: file still exists
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)
sremoving %s
R6N(R_RiRjRRZR[R\R�R�R�R�R�R�R}R�R�R�R�R*RRR�RAR�R-R(RaRbRcRdR�R�RR-RRtmodifiedR�tdeletedR�twctxRpR�R�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR<SsZ+.
!##
 





'
#srename|move|mvs)record a rename that has already occurreds[OPTION]... SOURCE... DESTcOsA|jt�}z tj||||dt�SWd|j�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(RaRbRcRdR�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�s tresolvesselect all unresolved filesR�s!list state of files needing mergeRsmark files as resolvedtunmarksmark files as unresolveds	no-statusshide status prefixcOspgdj�D]}|j|�^q
\}}}}}	|rI|sU|sU|rm|rmtjtd���n|r�|r�tjtd���n|p�|p�|p�|p�|s�tjtd���ntj|�}
tj|d||�}d}xj|
D]b}
||
�r�rr|	r.|j
d|
�q[|j
d|
|
j�|
fdd	id
d6dd
6|
|
�q^|r�|
j|
d
�q^|r�|
j|
d�q^|d}|j
�d}|j|
�}tj||d�zA|jdd|jdd��|
j|
||�r!d}nWd|jddd�|
j�Xtj|d|d�q�W|
j�|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
R%sresolve.t
unresolvedR6tresolvedRli�s.resolveRaR�RQR	iNs.orig(R�R_RiRjRR?t
mergestateRZR[R\R�tupperRR�R�tcopyfileR�R&R�R(RaRbRcRdRgRCRR'R�tnostatustmsR-R�RpR%tmctxRG((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR&�sF/7
 !


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]...c	Os�|jd�rV|jd�r6tjtd���ntj|||d�|d<n|jj�\}}|jd�r�|tkr�tjtd�dtd���nt	j
||jd��}|r�|jd�r�td�}|tkrtd	�}tj|d|��ntj|j��}	|j
�}
|
|kr~|	retd
�|j�}q�td�|j�}n!|	r�td�}ntd
�}tj|d|��ntj|||||f||�S(s�restore files to their checkout state

    .. note::
       To check out earlier revisions, you should use :hg:`update REV`.
       To cancel an uncommitted 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.
    R4Rms'you can't specify a revision and a dates,uncommitted merge with no revision specifiedR/s'use "hg update" or see "hg help revert"RCs!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_RiRjRR]tfinddateR�R�RRZR�R$R�R{RmR�(RaRbRcRdR�R�R�R'R/R�R{((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�3s6% 		trollbacksignore safety measurescKs(|jd|jd�d|jd��S(seroll 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.

    .. container:: verbose

      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.
    tdryrunRWR(R1R_(RaRbRd((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR1|s'R�cCs|j|jd�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�(RaRb((s6/sys/lib/python2.7/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�dr,�dr,tjtd���n�fd�}�drk|�tj���}|j�n�dr�|�tj���d�}|j�S�jd�r�tj	�jd���d<n�r��j
p��}d}xy|j�D]k}�j|d�}|dkrq�|j
d||��r�j|kr�jj
d||�q�W�jd	�p�jd
�}|s��s�tjtd���n�}ntj|d|��d
tf���fd��Y}	|	�}	tj�d|	jd|	j�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.
    R;R<s#cannot use --stdio with --cmdservercs(�dkr$tjtd���ndS(Ns5there is no Mercurial repository here (.hg not found)(R\R�R�R((Rb(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt	checkrepo�sR7sUname 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(cs8tj�tjj���|_�dr:�jr:dS|jjrb|jjjd�d}nd}d|jj	}|dkr�d}n|jj
}|dkr�d}nd|kr�d	|}n|jj}d|kr�	|}n�dr�j}n	�j
}|td
�|||||jj	f�dS(NR7R�R	s:%ds:80s0.0.0.0R$Rs[%s]s-listening at http://%s%s/%s (bound to %s:%d)
(Ritsetsignalhandlerthgwebtservert
create_serverthttpdRRXRR7taddrtfqaddrR�R�R(R[RXR7tbindaddrRMR�(tappRdRa(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�s.
		


	cSs|jj�dS(N(RKt
serve_forever(R[((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytrun.s(R`RaR�RQ((RORdRa(s6/sys/lib/python2.7/site-packages/mercurial/commands.pyRF
s tinitfntrunfnN(NR	(RiRjRt	sshserverRPt
commandserverRItserveR_tgetportRER�R\R�RaR�R�RHR�R]RFR�RQ(
RaRbRdRARRREtoptlistRgtvalRF((RORdRbRas6/sys/lib/python2.7/site-packages/mercurial/commands.pyRV�s>3



	"$	sshowconfig|debugconfigt	untrusteds$show untrusted configuration optionss[-u] [NAME]...c
Os�x%tj�D]}|jd|�q
Wt|jd��}|r�g|D]}d|krJ|^qJ}g|D]}d|kro|^qo}t|�dks�|r�|r�tjtd���q�nx|j	d|�D]\}	}
}t
|�jdd�}|	d|
}|r�x�|D]�}||	krg|jd|j|	|
|��|j
d	||f�q||kr|jd|j|	|
|��|j
|d�qqWq�|jd|j|	|
|��|j
d	||f�q�Wd
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
RZR�isonly one config item permitteds
s\ns%s: s%s=%s
N(RZtrcpathRR�R_R�RiRjRt
walkconfigRzR�tconfigsourceR�(
RaRbR�RdRpRZRtsectionsRR�R�R�tsectname((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt
showconfig5s0%%"
			s
^status|stsshow status of all filesR#sshow only modified filesR$s%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|jd�}|jd�}|rH|rHtd�}tj|��nR|r�tj||d�j�}||j�j�}ntj	||�\}}|r�|j
�p�d}	|jd�r�dp�d}
i}dj�}g|D]}
|j|
�r�
^q�|jd	�r=||jr3|d
 dgp6|7}n|sc|jrV|d
 p]|d }n|j
||tj||||�d
|kd|kd|k|jd��}t|d|�}|jd	�s�jd�r|jd�rtj||||�}n|jd|�}d|
}|jd�}x�|D]�\}}}||krBd|}x�|D]�}|j�|j|dd|d|�|jd||j||	�d|�||krn|jdd|
|j|||	�dd�qnqnWqBqBW|j�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.
    RmR#s2cannot specify --rev and --change at the same timeR	RHRJs
s4modified added removed deleted unknown ignored cleanRCiR�iRbRaRVsMAR!?ICRt	no_statusR�s%ssstatus.s%s R%R}R�s  %ss
status.copiedN(R_RRiRjRZR�R\R{R�R%R�R�RR�R[R�Rt
pathcopiesR�R�R�R�R�R�(RaRbRcRdR_R#R'R(R)RR�R�RvR�R�RDtchangestatesR�R�tshowcharR�R�R�R%Rp((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�csLG(' ".



%&s^summary|sumR scheck for push and pulls
[--remote]c/Ks.|dH}|j�}|dj�}g}x"|D]}|jtd�|j�t|�fdd|j��|jdj|j	��dd�|j
�r�|j|j
��n|j�dkrt|�s�jtd��q|jtd	��n|jd
�|j
�r3|jd|j
�j�dj�d
dd�q3q3W|j�}|j|�}	td�|}
|d
kr�|j|
dd�n|j|
dd�|rp|j}|jtd�dd�|dHk	r2||kr|jd|dd�|j|�q2|jd|dd�nx%|D]}
|jd|
dd�q9W|jd
dd�nt|jdt��d }|jj�}
gg}}x||
j�D]n\}}||dkr�dj|�|j|�n
|j|�||dkr�|dj|�q�q�W|jd|�|jd|�tj|�}|jg|D]}||dkrc|^qc�g|jD]!}|j|�j �r�|^q�}|j|�|j!td�d�|j!td�d�|j!td�d �|j!td!�d"�|j!td#�d"�|j!td$�d%�|j!td&�d'�|j!td(�d)�|j!td*�d+�|j!td,�d�g
}g}x=t"||�D],\}}|r�|j|t|��q�q�Wd-j|�}t#}t|�dkr|td.�7}n�||dj�krE|td/�7}n�|dj$�r�||j|d0t�kr�|td1�7}nt|dp�|dp�|dp�|dp�|dp�|d2s�|td3�7}t}n||	kr�td4�7}n|r|jtd5�|j��n|jtd5�|j��dgt|�}|j%}x4g|	D]}|j|�^q`D]}d||<qyWx=|j&g|	D]}|j|�^q��D]}d||<q�Wx@g|D]}|j�^q�D]}|dkr�||<q��x:|j&g|D]}|j�^q �D]}d||<q9Wt'|�}|dkr{|jtd6��nI||	kr�|jtd7�|�n#|jtd8�|t|	�f�|j(d9�r*g}t)j*|j+d
��\}}|d}t)j,|i|�} t)j-|| ||j(d:��\}!}"|!rhg|!D]}#| j.|#�^qJ}!n|j/d;t0j1|��|j2j3�t4j5|| d<|!�}$|$\}%}&}'|j2j6�|&r�|jtd=��nt)j*|j+d>d
��\}(}|d})t)j-|||dH�\}!}"||(krf	t)j,|i|(�} |j/d;t0j1|(��n||(ks�|dHk	r�||)kr�dH}$n|!r�g|!D]}#|j.|#�^q�}!n|j2j3�t4j7|| d?|!d@|$�}*|j2j6�|*j8}+|+r%
|jtdA�t|+��ndB| j9dC�kr�j9dB�},| j9dB�}-t:|-�t:|,�}.t|.�dkr�|jtdD�t|.��nt:|,�t:|-�}.t|.�dkr�jtdE�t|.��q�|r|jtdF�d-j|��q*|jtdG��ndHS(IsNsummarize 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 R%slog.changeset changeset.%sRxslog.tagi�s (empty repository)s (no revision checked out)s
slog.summarysbranch: %s
RLs
log.branchs
bookmarks:slog.bookmarks *sbookmarks.currents [%s]RaiiiiiR6s%d modifiedsstatus.modifieds%d addedsstatus.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)R2s (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)
R Rmscomparing with %s
R4s1 or more incomingsdefault-pushRMt	commonincs%d outgoingRR�s%d incoming bookmarkss%d outgoing bookmarkssremote: %s
sremote: (synced)
N(;R\R�R{R�RRmRzR9R�R�RR�R�R|R�R8RR�R�R(R<R�R�R�RR+R�RgR?R*RR�R�R%R�R`R6R�RR�R_R�RURTRVRWR�RRiR.Rat
pushbufferRXRt	popbufferRYtmissingR�R�(/RaRbRdR�R�tpnodeR"R=R�R�R-R�R�RsRR�R3RRR.RpRR�RPR0tcleanworkdirR�R�R"RGRuR0tsbranchRdR_ReRmRgt_commonR�t_rheadsR�tdbranchRcRgtlmarkstrmarksR*((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytsummary�s"

("
*	


01
<	 	)2&/
%

!
$	%
	
	  ##R<s	force tagR�smake the tag localsrevision to tagR<sremove a tagsedit commit messagesuse <text> as commit messages8[-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...c
Osd}}z�j�}|j�}d}g|f|D]}|j�^q9}t|�tt|��kr�tjtd���nx?|D]7}	t	j
||	d�|	s�tjtd���q�q�W|jd�r�jd�r�jtd���n|jd�r|d}n|jd�}
|jd�r|jd	�rNd	pQd
}x�|D]�}	|j|	�s�tjtd�|	��n|j|	�|kr[|d
kr�tjtd�|	��q�jtd
�|	��q[q[Wt
}|
s_ddj|�}
q_nQ|jd�s_x?|D]4}	|	|j�kr$tjtd�|	��q$q$Wn|jd	�s�jj�\}}
|
t
kr�tjtd���n|j�}|jd�r�r�|kr�jtd���q�t	j||�j�}|
s0ddj|�t|�f}
n|jd�}|rWtj|�}n|jd�r�|j|
|j��}
n|jd�r�t	j||�j�tkr�tjtd���n|j|||
|jd	�|jd�|�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<s/tag names cannot consist entirely of whitespaceRmR<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&not at a branch head (use -f to force)sAdded tag %s for changeset %sR4R0scannot tag null revisionR7N(R\R�R�RR�R�RiRjRRZRR_ttagtypeRR�R�R�R�R�R�R{RR�R0RxRmRR<R(RaRbtname1tnamesRdR�R�trev_RPR"R.texpectedtypeR�R�R�RlR4((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR<�sn*
&


 
"2cKs9|jd|�}|jr!tp$t}d}x�|j��D]�}}||�}d}	d}|j|�dkr�d}	d}n|j�|jdd|d|	�d	d
t	j
|�d}
|j|jd|
|j
j|�|d|	�|j|jo|d
d|d|	�|jd�q@W|j�dS(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�R	stags.normalR�s
tags.localR<s%sR%Rxis %5d:%ssrev idR�s %ss
N(R�R�RRR5R�RuR�R�RR�R�RR�RmRtplainR�(RaRbRdR�R:RuRPR"thnR%R�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�	s&
	

R�s	[-p] [-g]cKs4tj|||�}|j|d�|j�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.
    R�N(R]R�R�R�(RaRbRdR�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�)stunbundles6update to new branch head if changesets were unbundleds[-u] FILE...cOs�|f|}|j�}|d}zRxK|D]C}tj||�}tj||�}	|j|	dd|�}
q-WWd|j�Xtj||j	�|j
��t|||
|jd�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�R|sbundle:NR�(R�R�R�RPR�taddchangegroupRRtupdatecurrentbookmarkR{R�RR_R\(RaRbtfname1tfnamesRdR�twcR^RpR�R((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR|@s


!s^update|up|checkout|cos'discard uncommitted changes (no backup)tchecks0update across branches if no uncommitted changess[-c] [-C] [-d DATE] [[-r] REV]c
Csw|r$|r$tjtd���n|dks<|dkrE|}nd}|dkr�|j}tj|�r�|dj�}q�|r�|jtd�|�|}q�n|}	t	j
|||�j�}|r�r�jtd���n|r2|dk	rtjtd���ntj
|||�}n|r�|d}
|
jdtdtd	t�rxtjtd
���n|dkr�||dj�j�}ntj||d||�n|r�tj||�}ntj||�}|r;|r;tj||g|dj��rs|jtd�|j�qsn8|	|jkr]tj||	�n|	rstj|�n|S(
s�update 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`).

    Update sets the working directory's parent revision to the specified
    changeset (see :hg:`help parents`).

    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.

    .. container:: verbose

      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.

    To cancel an uncommitted merge (and lose your changes), use
    :hg:`update --clean .`.

    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�supdating to active bookmark %s
s-cannot specify both -c/--check and -C/--cleans'you can't specify a revision and a dateR�R�Rjsuncommitted local changessupdating bookmark %s
N(RiRjRR\R(Rt	iscurrentR{R�RZR�RmR]R0R�R`R�R�R?t
_checkunknownR�R�R�R&R)tunsetcurrent(RaRbR{RmR�R4R�RtcurmarktbrevRsR�((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR�ZsL9		

" R"cCs
tj|�S(sverify 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.

    Please see http://mercurial.selenic.com/wiki/RepositoryCorruption
    for more information about recovery from corruption of the
    repository.

    Returns 0 on success, 1 if errors are encountered.
    (R�R"(RaRb((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyR"�scCs4|jtd�tj��|jtd��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�RRiRR�(Ra((s6/sys/lib/python2.7/site-packages/mercurial/commands.pytversion_�s	s�clone init version help debugcommands debugcomplete debugdate debuginstall debugfsinfo debugpushkey debugwireargs debugknown debuggetbundle debugbundleseidentify paths serve showconfig debugancestor debugdag debugdata debugindex debugindexdot debugrevlogs^add addremove annotate cat commit diff grep forget log parents remove resolve status debugwalk(�R{RRRRRR�Rti18nRR�R�RiRRdR:R�RZRiR�RR�RR>R RR�RXR�RPR]R�RTRHthgweb.serverRUR�R?R�R�R:R�R�R�R�R/RRRR�RR�R�R�R�R\RR`R�t
dryrunoptsRtwalkoptst
commitoptstcommitopts2ttemplateoptstlogoptsR�t
diffwsoptst	diffopts2t
mergetooloptstsimilarityoptstsubrepooptsR^RfR�R�R�R�RR�R0R@RfRtR�R�R�R�R�R�R�R�R�RR
RR9R?RFRLRQR`RbR|R�R�R�R�R�R�R�R�R�R�RRRRRR*R,R-R.RGR4R�R�R�R�R�R�R1R�RcR�RR�RRqRR!R<RR&R�R1R�RVR`R�RsR<R�R�R|R�R"R�tnorepotoptionalrepot	inferrepo(((s6/sys/lib/python2.7/site-packages/mercurial/commands.pyt<module>s�(HT<00$0H																						1			"�RzAdp	��	69		!@	 	lRy5!�17	@!	!
!)!T!
!-@!!!�	4!OP	!J!#	��			�	B	~��-&��:	m�(!(+!L		A			Z	_5tZqC	()
		!l,�f*�!d 		!e


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.