HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/mercurial/commands.pyc

x7_c@@sJ/ddlmZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
mZddlmZmZmZmZmZmZddlmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z0m1Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZFmGZGe0jHZHiZIejJeIZJdZKdd	d
ededfd
d
d
ededfddeLedfddeLedfddeLedfd
dgededfd
deLedfd
deLedfd
d e#j#ed!ed"fd
d#e#jMed$ed%fd
d&eLed'fd
d(eLed)fd
d*eLed+fd
d,eLed-fd.d/eLed0fd
d1eNed2fgZOd3d4eLed5fgZPd6d7d
ed8ed9fd
d:d
ed;ed9fd
d<eLed=fgZQd>d?ged@edAfdBdCgedDedAfgZRdEdFd
edGedHfdIdJd
edKedLfgZSdMdNd
edOedPfdQdRd
edSedTfgZTdUdVd
edWedXfgZUd
dYd
edZed[fdUdVd
ed\edXfgZVd]d^eLed_fd`daeLedbfdIdcd
eddedefdfdgeLedhfd
dieLedjfdkdleLedmfgeVZWdndoeLedpfd`daeLedbfd
dqeLedrfgZXdsdteLedufdvdweLedxfdydzeLed{fgZYd
d|eLed}fd]d~eLedfd
deLedfgeYddd
ededefd
dieLedjfd
dd
ededfgZZddd
edfgZ[ddd
ededfgZ\ddeLedfgZ]ddeNedfdEdeNedfd
dd
edfgZ^eJdeRe]ePedde_dZ`eJde\e]eRePedde_dZaeJdddd
ededfd
deLedfd
deLedfdndoeLedpfdQdReLedfddeLedfdMdNeLedfd3deLedfddeLedfdIdeLedfg
eYeReUedde_dZbeJdd
deLedfd]dd
ededfddd
ededfddd
ededfge]eReddZceJdd
deLedfd
deLedfd
deLedfd
dd
ededfddd
ededfd6deNedfge[eReSeTedeLeLdZdeLeLdZeeJdddeNedfd`deNedfdvdeNedfddeNedfd6deNedfddd
eded9fddeNedfgedeLeLeLeLeLeLeLeLeLd	ZfeJdddeNedfddd
ededfdMdeNedfdEdd
ededfddeNedfgeUeddZgeJdddeLedfddeLedfgedeLdZheJddndeNedfddeNedfgeUedeNeNdZieJdddeLedfddgededfdvdgededfd
dgededfdndeLedfdddededfgeQedeLdZjeJdd	d
d
ededfddd
ed
edfd
deLedfgeRedde_dZkeJdddeLedfdQdd
ededfddgededfdvdgededfd
deLedfd
deLedfgeQedde_eLdZleJdd deLed!fd
d"eLed#fd
d$eLed%fdd&eLed'fd6deLedfdd(eLed)fgeReSeTe]edde_d*Zmd+ZneJd,dQd-eLed.fd6deLed/fdId0eLed1fd`d2eLed3fgeUed4d5e_d6ZoeJd7d d8eLed9fddeLed:fgeRePed;d<ZpeJd=ged>d5e_d?ZqeJd@dEdAeLedBfd	dCeLedDfd3dEeLedFfgedGeLeNeNeNdHZreJdIdndeLedJfd
dKeLedLfgedLde_eLeLdMZseLddNZteLdOZueJdPgdLdQZveJdRgdLdSZweJdTgd
dUZxeJdVgedWde_d
dXZyeJdYd	dZeLed[fged\de_d
d]ZzeJd^dd_eLed`fdvdeLedafd
dbeLedcfdddeLedefgedfd5e_eLdgZ{eJdhe^edieLdjZ|eJdkd6dleLedmfgednde_d5e_eLdoZ}eJdpd
dqeLedrfd
dseLedtfgeQedudvdwZ~eJdxeUgde_dyZeJdzddd
ed{edfged|d}ZeJd~gedde_ddZeJdddgededfddgededfdddededfgedde_eLeLdZeJdgddZeJde^dddededfgedd5e_eLdZeJde^edd5e_eLdZeJde^eUedd5e_eLdZeJdgeUd
de_dZeJdgedde_dZeJdgeddZeJdgd
dZeJdgeddZeJdddeLedfddeLedfgeddZeJdd
ddedfd
deNedfddgedfd
deNedfd
dgedfgeTeUedeLdZeJdddeLedfd3deLedfdndeLedfddeLedfgeddZeJdgedde_dZeJdgedeLdZeJdddd
ededfd
deLedfgeddZeJdgd
dZeJdddd
ededfgeddZeJde^dMdeNedfgedd5e_eLdZeJdd
deLedfd]dgededfd
deNedfd
deNedfgddZeJdgedeLdZeJdd
dqeLedfd
deLedfgeddZeJdddd
ededfgedeLdZeJdgeddZeJdddgededfddgededfgedd5e_dZeJdeRedde_dZeJdd
dd
dfd
dd
dfd
dd
dfgeQedde_dZeJdddgededfddd
ededfgeXeZeRe]ed	de_d
ZeJdd	d
d
ededfd
deLed
fddgededfgeXeddZeJdddd
ededfddeLedfgeReUe]eddZeJdeRedde_dZeJdddgededfddeNedfd6deNedfd
deLedfddeNedfdd eNed!fdd"eNed#edPfgeTe[ePed$d%Zd&ZeJd'ddeLed(fd
deLed)fdndoeLedpfddeLed*fdd+eLed,fdId-eLed.fd3deLed/fddged0edfdQdReLedfdMdNeLedfg
eUeRed1de_d2ZeJd3ddd
ed4ed5fdd6eNed7fdndeNed8fddeNed9fgeVed:d;ZeJd/d6d<eLed=fddeLed>fd?d@eLedAfddBgedCfgedDde_eLdEZeJdFddd
edGedfd3dHeLedIfddJeLedKfdvdeLedLfdd_eLedMfdydNeLedOfgeQedPd5e_eLeLeLeLeLeLeLdQZeJdRd]dSdedTedefdvdd
edUedVfd6deNedfddeLedWfd
deLedXfd
dYeLedZfd
d[eLed\fd
d]eLed^fd
dd
ed_edfd
d`eLedafg
eSeTe\edbeLdcZeJddddeLedefd3dfeLedgfd
dd
edhedLfddgediedfdydNeNedjfdvdgedkedfgeWeQe]edldvdmZeJdneQedode_ddpZeJdqddd
ededfddeLedfddreLedsfgeRedtduZeJdvddeLed*fd
dweLedxfdMdNd
edyedPfddzeLed{fd?d@ged|edHfddged}edfd
deLed~fdEdeLedfdQdRgededTfd
dgededfdvdgededfddgededfgeWeRedde_dZeJdddd
ededfd
deNedfgeUedeLeLdZeJdddeLedfddd
ededfddeLedfge[edeLdZ1eJdddeLedfddgededfd3dfeLedgfdydNeNedjfdvdgededfgeWeQe]edeLdZeJdddd
ededfgeVedde_eLdZeJdeUedd5e_eLdZeJdd]deNedfdMdeNedfdd&eNedfddeNedfddgededfgeddZdZeJddQdeLedfddeLedfddgediedfdydgededfdvdgedkedfgeQeddvdZeJdddeLedfddgededfdydgededfdvdgededfd
deNedfgeQedeLdZeJdgdZeJdd d8eLedfddeLedfge]eRedde_dZeJdd d8eLedfddeLed:fgeRePeddZeJddndeLedfdIdeLedfdEdeLedfdQdeLedfd3deLedfge[eReUedde_dZeJddndeLedfdMdNd
ededPfddd
ededfddeLedfdd(eLedfgeRePeddZeJdePddeNedfgdZeJdgdZeJdd dd
ededLfdMdeLedfd
dgedfddd
ededLfd]dd
ededfdndd
ededfd
dd
ededfd3dd
ededfd
dd
ededLfd
dd
ededLfd
dd
ededLfd
deLedfd
dd
eded%fddd
ededXfd
dYd
eded[fddeLedfd
dd
ededLfgedd5e_dZeJdd deLedfdEdeLedfdndeLedfddeLedfdMdeLedfddeLedfdQd	eLed
fddeLedfd3deLedfddzeLed
fddeLedfd
dgededfd
dd
ededfg
eRe]eUedde_dZeJdd
deLedfgddZeJdddeLedfdId0eLedfddd
ededfd
deLedfd6deLedfdEdFd
edGedHfgeTeddZeJd_eUd
dZeJdd]d^eLed_fd`daeLedbfgeVed d!ZeJd"dQdeLed#fged$d%ZeJd&ddeLed'fdd(eLed)fdMdNd
ededPfddd
ededfge[ed*eLeLeNeLeNeLd+ZeJd,gd-ZeJd,geUde_d.Zd/ZdS(0i(tabsolute_importNi(t_(tbinthextnullhextnullidtnullrevtshort(.tarchivalt	bookmarkstbundle2tchangegrouptcmdutilt
commandservertcontexttcopiest	dagparsertdagutiltdestutilt	discoverytencodingterrortexchanget
extensionstfilesett	formattertgraphmodthbisectthelpthgthgwebt	localrepotlocktmergetminirsttobsoletetpatchtphasestpolicytpvectrepairtrevlogtrevsettscmutiltsetdiscoverytsimplemerget	sshservertsslutiltstreamclonet
templatekwt	templatert
treediscoverytuitutils"bookmarks.active bookmarks.currenttRt
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 debuggerRsset 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 exitthRsdisplay 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 committertUSERtTttemplates$display with template (EXPERIMENTAL)tTEMPLATEtstyles,display using template map file (DEPRECATED)tSTYLEsdisplay with templatetpR$s
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 blanktnoprefixs&omit a/ and b/ prefixes from filenamess
show-functions%show which function each change is intreverses&produce a diff that undoes the changestUtunifieds"number of lines of context to showtroots&produce diffs relative to subdirectoryttttoolsspecify merge tooltst
similaritys-guess renamed files by similarity (0<=s<=100)t
SIMILARITYtStsubrepossrecurse into subrepositoriestct	changelogsopen changelogtmanifests
open manifesttdirsopen directory manifests^adds[OPTION]... [FILE]...t	inferrepocO@sGtj|d||}tj|||dt|}|rCdpFdS(sadd 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 (except
    files matching ``.hgignore``).

    .. container:: verbose

       Examples:

         - 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

         - Specific files to be added can be specified::

             $ ls
             bar.c  foo.c
             $ hg status
             ? bar.c
             ? foo.c
             $ hg add bar.c
             $ hg status
             A bar.c
             ? foo.c

    Returns 0 if all files are successfully added.
    R8iiN(R+tmatchtNoneRtaddtFalse(R4trepotpatstoptsRZtrejected((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs/t	addremovecO@syt|jdpd}Wn&tk
rGtjtdnX|dks`|dkrxtjtdntj|d||}tj	||d|d|dS(	sadd all new files, delete all missing files

    Add all new files and remove all missing files from the
    repository.

    Unless names are given, 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.

    .. container:: verbose

       Examples:

         - A number of files (bar.c and foo.c) are new,
           while foobar.c has been removed (without using :hg:`remove`)
           from the repository::

             $ ls
             bar.c foo.c
             $ hg status
             ! foobar.c
             ? bar.c
             ? foo.c
             $ hg addremove
             adding bar.c
             adding foo.c
             removing foobar.c
             $ hg status
             A bar.c
             A foo.c
             R foobar.c

         - A file foobar.c was moved to foo.c without using :hg:`rename`.
           Afterwards, it was edited slightly::

             $ ls
             foo.c
             $ hg status
             ! foobar.c
             ? foo.c
             $ hg addremove --similarity 90
             removing foobar.c
             adding foo.c
             recording removal of foobar.c as rename to foo.c (94% similar)
             $ hg status -C
             A foo.c
               foobar.c
             R foobar.c

    Returns 0 if all files are successfully added.
    Ridssimilarity must be a numberis$similarity must be between 0 and 100R8gY@N(
tfloattgett
ValueErrorRtAbortRR+RRR(R4RRRtsimtmatcher((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsB
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)t	changesetslist the changesetsline-numbers(show line number at the first appearances3[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...c"	@sQ|stjtdnjdr:td<ntj|jd|jd|jr|t	j
}n	t	j}jd-krfdjdrfd}nfd	}fd
}njt}}ddd
|jfddd|fddfd|fdddt	j|fdddtfdddtfg}idd6dd6jdrjdrjdrjdrtd<njdd-k	}|r6jdr6jdr6tjtdnjrNd}	n	d}	g|D]6\}
}}}
j|
r^|	||
|f^q^}|dddf|d<djfd|D}d}tj|d|}jd }tj|d!dd"t}xj|D]	}|}jd#rt	j|jrjtd$|r|j|p|q6n|jd|d%|d&|}|sq6ng}g}x|D]\}}g|D]\}}||^q}jrxg|D]}tj|^q}t|}|j g|D]} |d|| d'^qRn |j g|D]}d'^q|j |qWxlt!t!|t!||D]L\}}!}j"j#|dj||!j#d(d)|d*qW|d+d*j$d,s6jd,q6q6Wj%d-S(.sMshow 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.

    If you include --file, --user, or --date, the revision number is
    suppressed unless you also include --number.

    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.
    s,at least one filename or pattern is requiredRRRtannotatec@s!|dkrdSj|SdS(N(Rthexfunc(tnode(tfm(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pythexfnsRc@s,|dkr djjSd|SdS(Ns%d(Rtp1R(R(tctx(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt	formatrevsc@s,|dkr djjSd|SdS(Ns%d+s%d (RRR(R(R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsc@s5|dkr)djjjSd|SdS(Ns%s+s%s (RRRR(R(RR(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt	formathexsRdt cS@s|djS(Ni(Rd(tx((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt<lambda>sRcS@s|djS(Ni(R(R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsc@s|djS(Ni(R(R(R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsRacS@s|djS(Ni(Ra(R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRscS@s|djS(Ni(tpath(R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRstline_numbert:cS@s|dS(Ni((R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsRs(at least one of -n/-c is required for -lc@sfdS(Nc@s|S(N((R(tfmtR(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs((RR((RRs6/usr/lib/python2.7/dist-packages/mercurial/commands.pytmakefuncscS@s|S(N((RR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsiR8c3@s<|]2\}}}}j|rj||VqdS(N(R(t.0toptsepRR(tfieldnamemapR(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>scS@stjd||fdS(Ns%s: %s(RR(RR<((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytbadstbadfnt	no_followtsectiont
whitespaceRus%s: binary file
t
linenumbertdiffoptss%stlines: %siis
N(&RRRRtTrueR+t	revsingleRR?R5t	shortdatetdatestrRRRtstrt	shortusert	cachefunctisplaintjoinRR$tdifffeatureoptstwalktbinarytdatatplaintrelRRtcolwidthtmaxtappendtzipt	startitemtwritetendswithtend("R4RRRtdatefuncRRtopmapRRRRRRtfuncmaptfieldsRRZRRtabstfctxtlinestformatstpiecesRROtdummyR]RtsizestmlRwRk((RRRRRs6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR_s"
			
  
&	*"		
%,	%"3 .
tarchives	no-decodes"do not pass files through decoderstprefixs%directory prefix for files in archivetPREFIXsrevision to distributettypestype of distribution to createtTYPEs[OPTION]... DESTc	K@stj||jd}|s9tjtdn|j}tj|||}t	j
j||jkrtjtdn|jdpt
j|pd}|jd}|dkr'|dkrtjtdntj||}|s't	j
j|jd	}q'ntj|||}tj|g|}t
j|||||jd
||d|jddS(
screate 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 (to override, use -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.
    Rs/no working directory: please specify a revisions%repository root cannot be destinationRtfilesRt-s$cannot archive plain files to stdouts-%ht	no_decodeRN(R+RRRRRRRtmakefilenametosRtrealpathR~Rt	guesskindtmakefileobjtbasenameRR(	R4RtdestRRRtkindRtmatchfn((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs&1$tbackoutR!s,merge with old dirstate parent after backouttcommits4commit if no conflicts were encountered (DEPRECATED)s	no-commits
do not committparents4parent to choose when backing out merge (DEPRECATED)srevision to backouttedits invoke editor on commit messagess[OPTION]... [-r] REVcK@sQd}}z2|j}|j}t|||||SWdt||XdS(sxreverse effect of earlier changeset

    Prepare a new changeset with the effect of REV undone in the
    current working directory. If no conflicts were encountered,
    it will be committed immediately.

    If REV is the parent of the working directory, then this new changeset
    is committed automatically (unless --no-commit is specified).

    .. note::

       :hg:`backout` cannot be used to fix either an unwanted or
       incorrect merge.

    .. container:: verbose

      Examples:

      - Reverse the effect of the parent of the working directory.
        This backout will be committed immediately::

          hg backout -r .

      - Reverse the effect of previous bad revision 23::

          hg backout -r 23

      - Reverse the effect of previous bad revision 23 and
        leave changes uncommitted::

          hg backout -r 23 --no-commit
          hg commit -m "Backout revision 23"

      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.

    See :hg:`help revert` for a way to restore files to the state
    of another revision.

    Returns 0 on success, 1 if nothing to backout or there are unresolved
    files.
    N(RtwlockR t
_dobackouttrelease(R4RRRRRR ((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR:s?
c@sJ|jdr6|jdr6tjtdn|jdrl|jdrltjtdn|rrtjtdn|s}n|stjtdn|jd}|rtj||d<ntjtjt	j
|jjj
\}}jj|s\tjtd	njj
\}}	|tkrtjtd
n|	tkr'|jdstjtdnj|d}
|
||	fkrtjtd
t|
tfn|
}n-|jdrNtjtdn|}jj}j|}
t	j
t|}|jdrt|krttjd}z|jdd|jdddtj|ttt}j|||jtj||drIj j!tddSWd|jddddt"j#|XnEtj$dtjj%|tj&||jj
|jdrtd}|j!|tdSfd}tj'||g|}|s6|j!tddStj(|||
fd}|j!td|jj)|f|jdrF|krFtj$|dt|j!td|jj)zE|jdd|jdddtj*tjj)SWd|jddddXndS(NRt	no_commits$cannot use --commit with --no-commitR!s#cannot use --merge with --no-commits please specify just one revisions$please specify a revision to backoutRas-cannot backout change that is not an ancestors'cannot backout a change with no parentsRs cannot backout a merge changesets%s is not a parent of %ss*cannot use --parent on non-merge changesetRR4t
forcemergeRR8is1use 'hg resolve' to retry unresolved file merges
it
show_statss1changeset %s backed out, don't forget to commit.
ic@szd}tjd||}|sLdt}tjdtd|}n|j||jd|jd|d|S(NRteditformsBacked out changeset %sRRdRateditor(RtgetcommiteditorRRRR(R4RR[RRRRP(R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt
commitfuncs!snothing changed
c@s djj|t|fS(Ns%d:%s(RRR(R(R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytnicess$changeset %s backs out changeset %s
smerging with changeset %s
(+RRRRR5t	parsedateRtcheckunfinishedt
bailifchangedR+RRtdirstatetparentsRt
isancestorRtlookupRtbranchtbranchheadsRt
dirstateguardt	setconfigtmergemodtupdateRRt
setparentstcloseRt
_showstatsR4tstatustlockmodRtcleant	setbranchtrevertRtcommitstatusttipR!(R4RRRRRatop1top2Rtp2RkRR	tbheadstrctxtdsguardtstatstmsgRtnewnodeR((RRs6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs	

	

	##tbisecttresetsreset bisect statetgoodsmark changeset goodRsmark changeset badtskipsskip testing changesettextendsextend the bisect rangetcommands$use command to check changeset statetnoupdatesdo not update to targets[-gbsr] [-U] [-c CMD] [REV]c@s|djkrl|jtd||d}}}|dkrNt}q|dkrct}qt}nD|s|||||	t|dkrtjtdntj	||rt
j|dSt
j|}|s|s|r|r/gt
j||gD]}
|j|
^q}n|jdg}|rZ|dc|7<n2|rs|dc|7<n|r|d	c|7<nt
j|||do|dsdSntfd
}tj||i}|r#d}r.y|dd}Wqgtk
r*tjtd
qgXn9|jj\}}|tkrgtjtdn|r|t
j|||j}nzSxL|r|g|d<t
j|||j|dit|d6}|dkrd	}nk|dkrd}nV|dkr,tjtd|n.|dkrTtjtd|nd}||j|||}|jtd|||ft
j|t
j|j|\}}}|d}|||dtqWWd|g|d<t
j||Xt
j ||||||dSt
j|t
j|j|\}}}|	r|st
j!||||}|dk	r|j"td|j#|f|jg|d<t
j|||||jSntjtdn|dkrt
j ||||||nt$|dks5t%|d}d\}}x%||krr|d|d}}qNW|jj#|}|j"td|t&|||f|g|d<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 34, and good revision 12::

          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)"

      - 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.
    sgood bad reset inits)(use of 'hg bisect <cmd>' is deprecated)
R$Risincompatible argumentsNt.R%c@s-r
dStj|tj||d|S(scommon used update sequenceNR(RRRR(RRR(R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt	mayupdatels
tcurrentis>current bisect revision is unknown - start a new bisect to fixs"current bisect revision is a mergetenvirontHG_NODEi}isfailed to execute %ss	%s killedschangeset %d:%s: %s
Rs$Extending search to changeset %d:%s
snothing to extendis=Testing changeset %d:%s (%d changesets remaining, ~%d tests)
(ii('tsplittwarnRRRtboolRRRRRt
resetstatet
load_stateR+trevrangeRt
save_statetshow_changesettLookupErrorRRRRRtsystemRRRt
checkstateR"RRtprintresulttextendrangeRRtlentAssertionErrorR(R4RRtextraR'R#R$RR%R&R(tcmdtstatetitnodesR*t	displayert
changesetsRRRt
transitionRtbgoodt
extendnodetteststsize((R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR"s^			,

4
"	
"		
 





sbookmarks|bookmarktforcesrevision for bookmark actiontdeletesdelete a given bookmarktrenamesrename a given bookmarktOLDR@tinactivesmark a bookmark inactives#hg bookmarks [OPTIONS]... [NAME]...c	@s|jd}|jd}|jd}|jd}|jd}fd}	tdfd}
|r|rtjtdn|r|rtjtd	n|r|rtjtd
n|r	|s|r	tjtdn|s!|s!|s!|rd}}}
z6j}j}jdj	}j
|rjd
}
x|D]T}|krtjtd|n|jkrt
jn|=qWn_|rjd
}
|stjtdn*t|dkr<tjtdn|	|d}|krttjtd|n|
|||||<j|kr|rt
j|n|=nv|rjd
}
d}x|D]}|	|}|dkr|}n|r7|jkr7t
jdS|}|r^tj|j	}n|
||||||<qW|r||kr|rt
j|q>||kr>|jkr>t
jq>n]|r>tdkrjtdq>js.jtdq>t
jn|
dk	rdj|
|
jnWdtj|
||Xnojd|}|j}j
tdkr|jrjtdnx
tjD]\}}j}||krdt}}nd"\}}|jjsT|j d|d|n|j!d
d|d|ddt"j#|}|j$jd|dj%j&|||d||j'd ||k|j d!qW|j(dS(#screate a new bookmark or list existing bookmarks

    Bookmarks are labels on changesets to help track lines of development.
    Bookmarks are unversioned and can be moved, renamed and deleted.
    Deleting or moving a bookmark has no effect on the associated changesets.

    Creating or updating to a bookmark causes it to be marked as 'active'.
    The active bookmark is indicated with a '*'.
    When a commit is made, the active bookmark will advance to the new commit.
    A plain :hg:`update` will also advance an active bookmark, if possible.
    Updating away from a bookmark will cause it to be deactivated.

    Bookmarks can be pushed and pulled between repositories (see
    :hg:`help push` and :hg:`help pull`). If a shared bookmark has
    diverged, a new 'divergent bookmark' of the form 'name@path' will
    be created. Using :hg:`merge` will resolve the divergence.

    A bookmark named '@' has the special property that :hg:`clone` will
    check it out by default if it exists.

    .. container:: verbose

      Examples:

      - create an active bookmark for a new line of development::

          hg book new-feature

      - create an inactive bookmark as a place marker::

          hg book -i reviewed

      - create an inactive bookmark on another changeset::

          hg book -r .^ tested

      - rename bookmark turkey to dinner::

          hg book -m turkey dinner

      - move the '@' bookmark from another branch::

          hg book -f @
    RIRRJRKRMc@sA|j}|s*tjtdntj|d|S(Ns4bookmark names cannot consist entirely of whitespacetbookmark(tstripRRRR+t
checknewlabel(tmark(R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytcheckformats
c
@s|kr|r|r||kr9||kr9dS|jj||jg}||}gD]B}|jddd|jdddkrm||j^qm}|j|kr||krtj||g|dSg|D].}||j|ks||kr|^q}	tj||	|tj||||rjt	d|t
|jfdSntjt	d|n||j
ks||jjkr|rtjt	dndS(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(Rt	ancestorsRR.RR	tdeletedivergentt	validdestRRRRRt	branchmapRR	(
RRQtcurRIttargettanctbmctxRxtdivst
deletefrom(tmarksR4(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt
checkconflicts0
B
.
's&--delete and --rename are incompatibles#--rev is incompatible with --deletes#--rev is incompatible with --renamesbookmark name requiredR)RNsbookmark '%s' does not existsnew bookmark name requiredis"only one new bookmark name allowediNsno bookmarks set
sno active bookmark
R	t*RR8s %s tlabels%sisrev nodes %d:%stactives
(RR8()RRRRRRRR t	changectxRt
_bookmarksttransactiont_activebookmarkR	t
deactivateR;tactivateR+RRtrecordchangeRRRRRRtsortedt	iteritemstactivebookmarklabelRR?RRRRt	condwriteRRRR(R4RtnamesRRIRRJRKRMRRR_RR ttrRXRQtnewactttgtRRtbmarkRORbRRatpad((R^RR4s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRNs5 	




	
	
			
	"R	s5set branch name even if it shadows an existing branchtCRs'reset branch name to parent branch names[-fC] [NAME]c

K@s|r|j}n|jdrJ|rJ|jd|jjdS|jo|jdr|djj}|jj||j	t
d|n|r|jdr$||jkr$|g|djD]}|j^qkr$t
jt
ddt
dq$ntj||d	|jj||j	t
d
|g|jjD]+\}}}}|dkrq|rq|^qq}	|	s|j	t
dqnWdQXdS(
sset 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.

    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 head as closed.
    When all heads of a branch are closed, the branch will be
    considered closed.

    Returns 0 on success.
    Rs%s
Ns%reset working directory to branch %s
RIs(a branch of the same name already existsthintsuse 'hg update' to switch to itR	s&marked working directory as branch %s
tdefaults>(branches are permanent and global, did you want a bookmark?)
(RORRRR	RRRRRRRWRRRR+RPtiterbranches(
R4RRaRRkRORMRRtothers((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR	s,"
"/%tbranchesRbs8show only branches that have unmerged heads (DEPRECATED)tclosedsshow normal and closed branchess[-c]c
K@sE|jd|}|j}t|j}g}xa|jjD]M\}	}
}}|ortt|
|@}
|j|	|||
|fqFW|jdddt	x|D]|\}	}}
}|r|
rqn|
rd}d}n9|s|sqnd}t
d}nd	}t
d
}|	|jjk}|rNd}n|j
|jdd
|	d||j}tdtt|tj|	d}d|d}|j|jd||||jdd|j|jd|
d|d||js&|j|n|jdqW|jdS(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`).

    Use the command :hg:`update` to switch to an existing branch.

    Returns 0.
    RytkeycS@s&|d|dj|d|dfS(Niiii(R(R@((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsR{sbranches.activeR8sbranches.closeds	 (closed)sbranches.inactives (inactive)sbranches.currentR	s%sRaiiRs %d:%ssrev nodeslog.changeset changeset.%sRbRzR+s
N(RRtsettheadsRWRwR0RtsortRRRR	RRRRR;RRRRmR?RtphasestrRRR(R4RRbRzRRRtallheadsRyttagR}RtisclosedtisactiveRtisopenRatnoticeR+RtpadsizeR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRysJ	%"
		
,(	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	K@sd"}d|krV|d}tj||}|rV|rVtjtdqVn|jddj}y%tj	||dt
\}}	}
Wn7tjk
r}tjt|dtdnX|	dkrtjtd	dtd
n|jdr[|r*tjtdn|jd
rO|j
tdndg}ntj||jd
}d"}
|	tj|krtjtd|	n|rP|rtjtdng|D]}|j|^q}|rt|j|pd"}tj|||}tj|d|d|
d|	}d"}n|j|p_d|phd}tj||jd\}}tj|||}tj||||\}}|rt|j|p|}tj||d|d|jddt}tj|d||
d|	}|sQtj|||oI|jdS|	dkr|d"krrd}nd|}d"}n|	dkstd }t j!||||d!|d"S(#screate a changegroup file

    Generate a changegroup file collecting changesets to be added
    to a repository.

    To create a bundle containing all changesets, use -a/--all
    (or --base null). Otherwise, hg assumes the destination will have
    all the nodes you specify with --base parameters. Otherwise, hg
    will assume the repository has all the nodes in destination, or
    default-push/default if no destination is specified.

    You can change bundle format with the -t/--type option. You can
    specify a compression, a bundle version or both using a dash
    (comp-version). The available compression methods are: none, bzip2,
    and gzip (by default, bundles are compressed using bzip2). The
    available formats are: v1, v2 (default to most suitable).

    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.
    Rsno commits to bundleRRtstrictRus4see 'hg help bundle' for supported values for --typets1s0packed bundles cannot be produced by "hg bundle"s%use 'hg debugcreatestreamclonebundle'Rs3--all is incompatible with specifying a destinationRs,ignoring --base because --all was specified
tnulls-repository does not support bundle version %ss4--base is incompatible with specifying a destinationRt
bundlecapsRLsdefault-pushRvR	t	onlyheadsRItportableit01tUNtHG10t02tHG20tcompressionN("RR+R3RRRRtlowerRtparsebundlespecRtUnsupportedBundleSpecificationRR/RtsupportedoutgoingversionsRtmapRtoutgoingtgetchangegroupt
expandpathRtparseurltpeert
addbranchrevstfindcommonoutgoingRtgetlocalchangegrouptnochangesfoundtexcludedR<R
twritebundle(R4RtfnameRRtrevst
revstringst
bundletypetbcompressiont	cgversiontparamsRPRRRtcommonR}RtcgRytothertcheckouttbversion((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsv)


"		!		
	tcattotoutputs(print output to file with formatted nametFORMATsprint the given revisiontdecodes apply any matching decode filters[OPTION]... FILE...cO@sStj||jd}tj||f||}tj||||d|S(s3output 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.

    Output may be to a file, in which case the name of the file is
    given using a format string. The formatting rules as follows:

    :``%%``: literal "%" character
    :``%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
    :``%H``: changeset hash (40 hexadecimal digits)
    :``%R``: changeset revision number
    :``%h``: short-form changeset hash (12 hexadecimal digits)
    :``%r``: zero-padded changeset revision number
    :``%b``: basename of the exporting repository

    Returns 0 on success.
    RR8(R+RRRRR(R4Rtfile1RRRRZ((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRuss^clonesEthe clone will include an empty working directory (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]tnorepocK@s|jdr6|jdr6tjtdntj||||d|jdd|jdd|jdd|jdp|jdd	|jd	d
|jd
}|dkS(smake a copy of an existing repository

    Create a copy of an existing repository in a new directory.

    If no destination directory name is specified, it defaults to the
    basename of the source.

    The location of the source is added to the new repository's
    ``.hg/hgrc`` file, as the default to be used for future pulls.

    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.

    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.

    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::

       Specifying a tag will include the tagged changeset but not the
       changeset containing the tag.

    .. 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

      When cloning from servers that support it, Mercurial may fetch
      pre-generated data from a server-advertised URL. When this is done,
      hooks operating on incoming changesets and changegroups may fire twice,
      once for the bundle fetched from the URL and another for any additional
      data not fetched from this URL. In addition, if an error occurs, the
      repository may be rolled back to a partial clone. This behavior may
      change in future releases. See :hg:`help -e clonebundles` for more.

      Examples:

      - clone a remote repository to a new directory named hg/::

          hg clone https://www.mercurial-scm.org/repo/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 https://www.mercurial-scm.org/repo/hg/#stable

    See :hg:`help urls` for details on specifying URLs.

    Returns 0 on success.
    R(Rs.cannot specify both --noupdate and --updaterevRtstreamRRRR	t	shareoptsN(RRRRRtcloneR(R4tsourceRRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsws
^commit|citAs9mark new/missing files as added/removed before committingsclose-branchsmark a branch head as closedtamends)amend the parent of the working directorytsecrets#use the secret phase for committingtinteractivesuse interactive modecO@sNd}}z/|j}|j}t||||SWdt||XdS(scommit 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 --close-branch flag can be used to mark the current branch
    head closed. When all heads of a branch are closed, the branch
    will be considered closed and no longer listed.

    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.

    .. container:: verbose

      Examples:

      - commit all files ending in .py::

          hg commit --include "set:**.py"

      - commit all non-binary files::

          hg commit --exclude "set:binary()"

      - amend the current commit and set the date to now::

          hg commit --amend --date now
    N(RRR t	_docommitR(R4RRRRR ((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsD
c	@s|jdrW|jdtj||tdttj||}|dkrSdS|S|jdr|jdrtj	t
dn|jddtd	ntj
|d	t|dj}|j|}i|jd
rdd<|stj	t
dq|jdr|djdjj|kr|djdjj|krtj	t
dqqn|jdr|jddrtj	t
d
n|djstj	t
dnt|djdkr)tj	t
dntj|tj}|rijritj	t
dntj|tjstj
|nfd}tj|||||}	|	jkrw|jt
ddSnfd}tj|||||}	|	swtj|||}
|
dr`|jt
dt|
dn|jt
ddStj||	|||dS(NRiiRRscannot amend with --subreposR4tcommitsubreposRtclose_branchRscan only close branch headss+cannot amend with ui.commitsubrepos enabledR)scannot amend public changesetsscannot amend while mergings$cannot amend changeset with childrenc@sF|j||jdp!j|jdp9j|dS(NRdRaR=(RRRdRa(R4RR[RR(R=told(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs
	snothing changed
c
	@s|jdd}|j}|jdd}z|jdrn|jdddd|jddddntj|dd}tjd||}	|j||jd|jd|d	|	d
SWd|j	||jj	|XdS(NR%s
new-commitRRs
commit.normalRRdRaRR=(
tbackupconfigtbaseuiRRRt
mergeeditformRRRt
restoreconfig(
R4RR[RRtbackupRt
basebackupRR(R=(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs	!
is4nothing changed (%d missing files, see 'hg status')
( RtpopRtdorecordRRRtrecordfilterRRRRRRR	R
RRRt
configbooltmutableR;R#t	isenabledtallowunstableopttchildrentcreatemarkersoptRRRtpostcommitstatusR(R4RRRtretR	Rt
allowunstableRRRq((R=Rs6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRgsb

&&
!
sconfig|showconfig|debugconfigt	untrusteds$show untrusted configuration optionssedit user configtlocalsedit repository configtglobalsedit global configs[-u] [NAME]...toptionalrepoc
O@s3|jds-|jds-|jdr|jdrc|jdrctjtdn|jdr|stjtdn|jdg}n*|jdrtj}ntj}x|D]}tj	j
|rPqqW|jdrtjd}n,|jdr4tjd}n
tjd}|d}t
|d	}|j||j|j}|jd
||fdtjdtd
dS|jd|}	x%tjD]}|jd|qWt|jd}
|rg|D]}d|kr	|^q	}g|D]}d|kr.|^q.}
t|
dksj|
r|rtjtdqnt}x|jd|
D]y\}}}t|}|	jr|jdd}n|d|}|rx&|D]}||krX|	j|	j|jdd|j|||
|	jdd||t }q||kr|	j|	j|jdd|j|||
|	jdd||	j!d|t }qqWq|	j|	j|jdd|j|||
|	jdd||t }qW|	j"|r/dSdS(sshow 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 --edit, start an editor on the user-level config file. With
    --global, edit the system-wide config file. With --local, edit the
    repository-level config file.

    With --debug, the source (filename and line number) is printed
    for each config item.

    See :hg:`help config` for more information about config files.

    Returns 0 on success, 1 if NAME does not exist.

    RRRs'can't use --local and --global togethers&can't use --local outside a repositorythgrcRdiRws%s "%s"tonerrt	errprefixsedit failedNRBsread config from: %s
RR)isonly one config item permitteds
s\nRs%s: s
name values%s=%s
tvalues%s
tname(#RRRRRR+tsystemrcpatht
userrcpathRRtexiststuimodtsamplehgrcstopenRRt	geteditorR7RtrcpathRDR0R;Rt
walkconfigRRtreplaceRRmt	debugflagtconfigsourceRRR(R4RtvaluesRtpathsRt
samplehgrctfpRRRR@tsectionstitemstmatchedRRRt	entryname((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRBs-




%%"

	



scopy|cptafters'record a copy that has already occurreds+forcibly copy over an existing managed files[OPTION]... [SOURCE]... DESTc	O@s0|jttj||||SWdQXdS(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(RRRtcopy(R4RRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR5st
debugancestors[INDEX] REV1 REV2c	G@st|dkrT|\}}}tjtjtjdt|}|j}nft|dkr|stj	t
dn|\}}|j}|j}ntj	t
d|j||||}|j
d|j|t|fdS(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;R)R+topenerRtgetcwdRRRRRRtancestorRRR(	R4Rtargstindextrev1trev2RRRt((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRMs'	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|dkrdtjtdnd}x6t	j
|D]%\}}	|dkrz|d7}qzqzW|rd}
gtd||
D]}t|^q}|j
dng}
d$}}}z|j}|j}|jd}d	}d
}g}d}|jtd|dtd
d|xt	j
|D]\}}	|dkr|jdt|	|	\}}g}id$}|rd}||d}t|dkr||d}|j|}g|||fD]}||j^q\}}}tj|||}g|jD]} | j^qf}!|!j
dn.|dkr||jjd}!n|}!|!||
cd|7<dj|!}"|j
|tj|||"|<n|rEd}|j
|tj||d||<n|rd|}|j
|tj||d||<t|dkr|s||d}nx>|D]3}|jdr|j
||||<qqWqnfd}#t|dks|ddkr,d$d$g}$nFt|dkrU||dd$g}$ng|D]}%||%^q\}$tj||$d|||#d|dfdddi|d6}&|j|&}'|j
|'|}n{|dkr*|	\}}(|jd|(|
j
d t |jj!||(fn&|d!krP|jd"|	|	}n|jtd|dtd
d|qyW|j"|
r|j#j$d#dj|
nWd$|jtdd$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 emptyROiiR8tbuilddagiRvtbuildingtunitt	revisionsttotalsnode %s
tmfs
s r%itofsr%i
snf%itnfc@s
j|S(N(R(RtcxR(tfctxs(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytfctxfnssr%iRaRdRR=R	R]stag %s
s%s %s
Rts
branch %s
t	localtagsN(&RRRtfintreadRR;RRRtparsedagtxrangeRRRR RetprogresstnoteRRR-t
Merge3Texttmerge_linesROR.RRt
memfilectxt
startswithtmemctxt	commitctxRRRtvfsRR()R4RRutmergeable_filetoverwritten_filetnew_filetclR	RRtlinesperrevR@tinitialmergedlinesttagsRR RotattatbranchtnodeidstidtpsRRtfnRtpaRRRRtm3R]Rt
mergedtextRtparsRkR
tnodeidR((Rs6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR`s)	,(	,%

 



"
	,	,
#tdebugbundlesshow all detailstspecs"print the bundlespec of the bundlec
K@stj||}|rBtj||}|jd|dStj|||}t|tjrt	||d||St
||d||WdQXdS(slists the contents of a bundles%s
NR(RtopenpathRt
getbundlespecRt
readbundlet
isinstanceR
t
unbundle20t
_debugbundle2t_debugchangegroup(R4t
bundlepathRR1RRtgen((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR0sc	@s)d||rjdfd}j}|dj}|dxtjiD]}|d}||quWnttjrtj	t
dnj}dxPtfdiD]3}|d	}jd
t|f|qWdS(NRs3%sformat: id, p1, p2, cset, delta base, len(delta)
c@sjd|fdxtfdiD]}|d}|d}|d}|d}|d}|d}jd	t|t|t|t|t|t|f|q9WdS(
Ns
%s%s
c@s
jS(N(t
deltachunk((tchainR:(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsRRRtcst	deltabasetdeltas%s%s %s %s %s %s %s
(RRtiterRR;(tnamedt	chunkdataRRRR=R>R?(R:t
indent_stringR4(R<s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt
showchunkss"





	#RRtfilenamesuse debugbundle2 for this filec@s
jS(N(R;((R<R:(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR+sRs%s%s
(
RtchangelogheadertmanifestheaderR@t
filelogheaderR5R
R6RRRRR(	R4R:RtindentRRDRBRR((R<R:RCR4s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR8
s(
	


"
c	K@st|tjs*tjtdn|jdt|jx|j	D]}|jd|j
t|jf|j
dkrQ|jjdd}tj
||d}t||d|d	d
|qQqQWdS(slists the contents of a bundle2snot a bundle2 filesStream params: %s
s	%s -- %r
RRLRRRRIiN(R5R
R6RRRRtreprRt	iterpartsRRRtgetunbundlerR8(R4R:RRtpartRLR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR70s#tdebugcreatestreamclonebundlecC@sRtj|\}}tj||||jtddjt|dS(screate a stream clone bundle file

    Stream bundles are special bundles that are essentially archives of
    revlog files. They are commonly used for cloning very quickly.
    sbundle requirements: %s
s, N(R0tgeneratebundlev1RtwritechunksRRRRj(R4RRtrequirementsR:((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRN<stdebugapplystreamclonebundlecC@s8tj||}tj|||}|j|dS(s apply a stream clone bundle fileN(RR2RR4tapply(R4RRRR:((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRRHstdebugcheckstatec
C@s|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|rtd}	|	j|	ndS(
s0validate the correctness of the current dirstateitnrs%%s in state %s, but not in manifest1
iRts&%s in state %s, but also in manifest1
RZs+%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(RRRR/RR(
R4Rtparent1tparent2tm1tm2terrorsRR?R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRTOs0


$

t
debugcommandss	[COMMAND]cG@sx}ttjD]i\}}|jddjd}djg|dD]}|d^qL}|jd||fqWdS(s'list all available commands and optionst|it^s, is%s: %s
N(RjttableRkR.RORR(R4R>RtvalsR@R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR\ks*t
debugcompletetoptionssshow the command optionss[-o] CMDcK@sT|jdrg}tg}|rStj|tt\}}|j|dnxl|D]d}x[|D]S}d|dkrqgn|dr|jd|dn|jd|dqgWqZW|jdd	j|d
Stj	|t\}	}
|j
r0g|	jD]}dj|d^q}	n|jdd	jt|	d
S(s=returns the completion list associated with the given commandRbis(DEPRECATED)iis-%ss--%ss%s
s
NR(
Rt
globaloptsRtfindcmdR_RRRRtfindpossibleRARRj(R4R>RRbtotablestaliasestentryRRtcmdlisttunused_allcmdsR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRass&	


	/tdebugdagR$suse tags as labelssannotate with branch namestdotssuse dots for runstspacessseparate elements by spacessPTION]... [FILE [REV]...]c@s|jd}|jd}|rvtjtjtjdt|tdDfd}n|r|j|jd|jdrixE|j	j
D].\}}	jj|	gj
|qWnfd}ntjtd	xXtj|d
|dtdtd
|d|ddD] }
|j|
|jdq^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.
    RmRlRcs@s|]}t|VqdS(N(tint(RR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sc3@scx\D]T}d|tdj|DffV|krd|d|ffVqqWdS(NROcs@s!|]}|dkr|VqdS(iN((RRk((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sR]sr%i(tlistt
parentrevs(R(Rtrlog(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyteventss
*R$Ryc3@sd}xD]}r\jj|dd}||kr\d|fV|}q\nd|tdj|DffVr
j|}|rx"|D]}d||ffVqWqq
q
WdS(NRviR	RtROcs@s!|]}|dkr|VqdS(iN((RRk((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sR](RRRoRpR(RxRtnewbtlsR](RyR!tlabelsR$(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRrs
 *
sneed repo for changelog dagt	addspacest
wraplabelstwrapannotationst
wrapnonlineartusedotstmaxlinewidthiFs
N(RR)R+RRRRR|RR$Rt
setdefaultRRRRRRtdagtextlinesRR(R4Rtfile_RRRmRlRrR]ROR((RyR!RuRRqR$s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRks2'	)

t	debugdatas-c|-m|FILE REVcK@s|jds-|jds-|jdrd|dk	rTtjdtdnd|}}n'|dkrtjdtdntj|d||}y#|j|j|j	|Wn*t
k
rtjtd|nXdS(s)dump the contents of a data file revisionRRRRsinvalid argumentssinvalid revision identifier %sN(RRRtCommandErrorRRt
openrevlogRtrevisionRtKeyErrorR(R4RR~RRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs-#
t	debugdatetextendedstry extended date formatss[-e] DATE [RANGE]cK@s|dr"tj|tj}ntj|}|jd||jdtj||rtj|}|jd||dndS(sparse and display a dateRsinternal: %s %s
s
standard: %s
s
match: %s
iN(R5RtextendeddateformatsRRt	matchdate(R4RatrangeRR`RZ((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs
tdebugdiscoveryRsuse old-style discoverytnonheadss/use old-style discovery with non-heads includeds([-l REV] [-r REV] [-b BRANCH]... [OTHER]Rvc	@stjj|jd\}}tj|}jtdtj|t	j
d|fd}jd}|rx+|D]}t|d}	|	j}
x|
rv|
j
jd}|d}|d	krnl|d
kr1||djd|d
jdn6|dkrg||d
jd|djdn|	j}
qWWdQXqWnCtj||jd\}
}jd}|||
dS(s2runs the changeset discovery protocol in isolationR	scomparing with %s
i#0c@sjdr|r'tjdntj|dsQtj|j}ntj	|dt
\}}}t|}jdsjddj
td|Dtjj}|j|j|}|j|j|}qntj|\}}}t|}t|}	tj}
jd	dj
td
|D|
|krjdn|	|krjdndS(
NRs.cannot use localheads with old style discoveryRyRIRsunpruned common: %s
Rcs@s|]}t|VqdS(N(R(RRO((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>		sscommon heads: %s
cs@s|]}t|VqdS(N(R(RRO((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>	sslocal is subset
sremote is subset
(RRRR5tsafehasattrRtlocallegacypeerRR3tfindcommonincomingRR|RRRjRt	revlogdagRtancestorsettinternalizealltexternalizealltheadsetofconnectedsR,tfindcommonheadsR}(t
localheadstremoteheadstremoteRt_inthdstdagRtanytrheadstlheads(RRR4(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytdoits0	!	!t	serverlogRt;iRtcgssiRitunbNtremote_headt
local_head(RRRRRRRR5thidepasswordtrandomtseedRtreadlineROR.R(R4Rt	remoteurlRRyRRt
serverlogsRER^RtpartsRt
remoterevst	_checkoutt	localrevs((RRR4s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs2 

	
**tdebugextensionsc	K@stj|}tj}|jd|}xt|dtjdD]\}}tj|}|j}|r|g}	nt	|ddj
}	t	|dd}
|j|j
s|jr|jdd|nl|jdd	||s||	kr
|jd
n7|	s)|jtdn|	d}|jd
||j|joV|dtd|pkd|jr|jtdddg|n|jd||j|jo|	dtd|j|	dd|j|jo|
dtd|
pdqIW|jdS(s(show information about active extensionsRR{it
testedwithR8tbuglinkRs%s
s%ss
s
 (untested!)
is (%s!)
Rs  location: %s
s  bundled: %s
tnotyestbundleds  tested with: %s
tvers  bug reporting: %s
N(RR5RLRRjtoperatort
itemgettertismoduleinternalt__file__tgetattrR.RRR?RARRRRmRt
formatlistR(R4RtextsthgverRtextnametextmodt
isinternalt	extsourcet
exttestedwitht
extbuglinktlasttestedversion((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR.	s>(		

	$	tdebugfilesets#apply the filespec on this revisions[-r REV] FILESPECcK@stj||jdd}|jrRtj|}|jtj|dnx(|j	|D]}|j
d|qbWdS(s'parse and apply a fileset specificationRs
s%s
N(R+RRRRARtparseRtprettyformatt
getfilesetR(R4RtexprRRttreeR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR[	s	tdebugfsinfos[PATH]R)cC@stjdd|jdtj|r.dp1d|jdtj|rTdpWd|jdtj|rzdp}d|jdtjdrdpdtjdd	S(
s2show information detected about current filesystems.debugfsinfoR8s	exec: %s
RRssymlink: %s
s
hardlink: %s
scase-sensitive: %s
N(	R5t	writefileRt	checkexect	checklinkt
checknlinktfscasesensitiveRtunlink(R4R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRh	s&&&tdebuggetbundletHtheadsid of head nodetIDRsid of common nodesREPO FILE [-H|-C ID]...cK@s:tj|||}|jds6tjdni}|rhg|D]}t|^qI|d<n|rg|D]}t|^qu|d<nd|d<|jd|}	|jddj	}
id	d
6dd6dd
6dd6}|j|
}
|
t
jkr tjtdnt
j
||	||
dS(sretrieves a bundle from a repo

    Every ID must be a full-length hex node id string. Saves the bundle to the
    given file.
    t	getbundles.getbundle() not supported by target repositoryRR}RRDRRtHG10UNtnonetHG10BZtHG10GZtgzipRR
s)unknown bundle type specified with --typeN(RRtcapableRRRRRRRR
tbundletypesRR(R4trepopathR9RRRRRRRRtbtypes((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs	s&&&


tdebugignores[FILE]cO@s|jj}|s\t|dd	}|d	k	rD|jd|qtjtdn6x3|D]+}tj	|}d	}d	}	|dkr||r|}|jj
|}	qxBtj|D].}
||
r|
}|jj
|
}	PqqWn|rw||kr(|jtd|n|jtd||f|	\}}}
|jtd|||
fqc|jtd|qcWd	S(
sdisplay the combined ignore pattern and information about ignored files

    With no argument display the combined ignore pattern.

    Given space separated file names, shows if the given file is ignored and
    if so, show the ignore rule (file and line number) that matched it.
    t
includepats%s
sno ignore patterns foundR)s%s is ignored
s.%s is ignored because of containing folder %s
s#(ignore rule in %s, line %d: '%s')
s%s is not ignored
N(Rt_ignoreRRRRRRR5tnormpatht_ignorefileandlinetfinddirs(R4RRRtignoreRRRtignoredt
ignoredataRkt
ignorefiletlinenoR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR	s8	
t
debugindextformats
revlog formats[-f FORMAT] -c|-m|FILEcK@stj|d||}|jdd}|dkrRtjtd|n|jtj@}|rqd}nd}|j	rt
}nt}d}	x*|D]"}
t||j
|
}	PqW|dkr|jd	|d
dj|	dj|	fn1|dkr3|jd
|ddj|	nxl|D]d}
|j
|
}|rg|j|
}n|j|
}|dkry|j|}
Wntk
rttg}
nX|jd|
|j|
|j|
||j|
||||
d||
dfq:|dkr:|j|
}|jd|
|j|
|j|
|j|
|j|
||j|
|d|d||f
q:q:WdS(s"dump the contents of an index fileRRiisunknown format %ds deltas  baseis   rev    offset  length s linkrev %s %s p2
R/Rs'   rev flag   offset   length     size s   link     p1     p2 %s
s"% 6d % 9d % 7d % 6d % 7d %s %s %s
s0% 6d %04x % 8d % 8d % 8d % 6d % 6d % 6d % 6d %s
N(ii(RRRRRRRLR)tREVLOGGENERALDELTARRRR;RRtljusttrjusttdeltaparentt	chainbaseRt	ExceptionRtstarttlengthtlinkrevRptflagstrawsize(R4RR~RRRtgeneraldeltatbasehdrtshortfntidlenR@RRtpptpr((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR	sP			
#

	*.	3t
debugindexdots
-c|-m|FILEcK@stj|d||}|jdx|D]}|j|}|j|}|jd|j|d|f|dtkr,|jd|j|d|fq,q,W|jddS(s(dump an index DAG as a graphviz dot fileRsdigraph G {
s
	%d -> %d
iis}
N(RRRRRRR(R4RR~RRR@RR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR	s

$+tdebugdeltachainc(@stj|d||jjtj@fd}|jd|}|jdi}xkD]c}||\}}	}
}}|d}
|j|
t	|d}j
|
}j
|}|||}||}y|d}Wntk
rd}nXt|t|	}t|t|}|j
|jdd	||t	|||
||	|||||d
|d|dt	|d
|d|
d|d|	d|d|d|d|d|qrW|jdS(sdump information about delta chains in a revlog

    Output can be templatized. Available template keywords are:

    :``rev``:       revision number
    :``chainid``:   delta chain identifier (numbered by unique base)
    :``chainlen``:  delta chain length to this revision
    :``prevrev``:   previous revision in delta chain
    :``deltatype``: role of delta / how it was computed
    :``compsize``:  compressed size of revision
    :``uncompsize``: uncompressed size of revision
    :``chainsize``: total size of compressed revisions in chain
    :``chainratio``: total chain size divided by uncompressed revision size
                    (new delta chains typically start at ratio 2.00)
    :``lindist``:   linear distance from base revision in delta chain to end
                    of this revision
    :``extradist``: total size of revisions not part of this delta chain from
                    base of delta chain to end of this revision; a measurement
                    of how much extra data we need to read/seek across to read
                    the delta chain for this revision
    :``extraratio``: extradist divided by chainsize; another representation of
                    how much unrelated data is needed to load this delta chain
    Rc@s|}|d}|d}d}r|d|dkrGd}q|d|dkrdd}q|d|dkrd	}q|d|krd
}qd}n|d|krd
}nd	}j|d}x&|D]}|}||d7}qW|||||fS(NiiiiiRiRtprevRR(t_deltachain(RRPtcompsizet
uncompsizet	chainsizet	deltatypeR<titerrev(RRR(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytrevinfo(
s,


						

st    rev  chain# chainlen     prev   delta       size    rawsize  chainsize     ratio   lindist extradist extraratio
iiiislrev chainid chainlen prevrev deltatype compsize uncompsize chainsize chainratio lindist extradist extraratios8%7d %7d %8d %8d %7s %10d %10d %10d %9.5f %9d %9d %10.5f
RtchainidtchainlentprevrevRRRRt
chainratiotlindistt	extradistt
extraratioN(RRRRLR)RRRR|R;Rt
IndexErrorRRRR(R4RR~RRRt
chainbasesRtcomptuncompRR<RRRt	basestarttrevstartt
lineardistRR	R
R
((RRRs6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR
sB	






	tdebuginstallcK@sd}d}|jd|}|j|jdtdtjdE}ytjdWn&tjk
r}|}|d7}nX|j	|dtd	||jd
tdt
j|jdtd
dt
jd |jdtdt
jjt
jttj}tjr3|jdn|jdtd|jt|ddddddd|kr|jtdnd|kr|jtdntj}|jdtd|jd d|jd!td"d j|jd d|jd#td$tj|jd%td&t
jjtdE}yNdd'lm}	m }
m!}m"}t#|
t#|t#|	t#|fWn#t$k
r}|}|d7}nX|j	|d(d)|t%j&}
|jd*d+d,j|
|j	|
d-td.|
rt%j'd/}|rdE}yt%j%j(|Wnt$k
r{}|}dE}
nX|j	|d0d)|ndE}
|j	|
d1td2||j	|d3td4d5n|
s|d7}n|j	|
d-td6|j)}tj*|}|jd7td8|tj+t,j|d}|j	|oj|d9kd:td;|o|d9ko||j	|o|d9kd<td=|o||r|d9kr|d7}ndE}dE}y|j-}Wn&tjk
r$}|}|d7}nX|j	|d>td?||j	|d@tdA||j	|d-tdB|s|j.dC|n|j	|dCtdD||j/|S(Fs;test Mercurial installation

    Returns 0 on success.
    cS@sEtjdd\}}tj|d}|j||j|S(NRshg-debuginstall-twb(ttempfiletmkstempRtfdopenRR(tcontentstfdRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt	writetempt
s


iRRschecking encoding (%s)...
ttestit
encodingerrors. %s
 (check that your locale is properly set)
t	pythonexes checking Python executable (%s)
t	pythonverschecking Python version (%s)
s%s.%s.%sit	pythonlibschecking Python lib (%s)...
tsnitpythonsecuritys&checking Python security support (%s)
RtprotocolRs%sRt,stls1.2sT  TLS 1.2 not supported by Python install; network connections lack modern security
sV  SNI not supported by Python install; may have connectivity issues with some servers
Rs checking Mercurial version (%s)
t+t
hgverextras%checking Mercurial custom build (%s)
thgmodulepolicyschecking module policy (%s)
t	hgmoduless#checking installed modules (%s)...
(tbase85tbdifftmpatchtosutiltextensionserrors %s
ttemplatedirsschecking templates (%s)...
RR8s no template directories found
smap-cmdline.defaulttdefaulttemplateerrortdefaulttemplateschecking default template (%s)
tdefaulttemplatenotfounds template '%s' not found
Rvs5 (templates seem to have been installed incorrectly)
Rschecking commit editor... (%s)
ssensible-editort
vinotfoundsf No commit editor set and can't find %s in PATH
 (specify a commit editor in your configuration file)
teditornotfoundsV Can't find editor '%s' in PATH
 (specify a commit editor in your configuration file)
tusernameschecking username (%s)
t
usernameerrorsJchecking username...
 %s
 (specify a username in your configuration file)
sno problems detected
tproblemss1%d problems detected, please check your install!
N(0RRRRRRt	fromlocalRRRmtsyst
executabletversion_infoRRtdirnameRR|R/tsupportedprotocolsthassniRRRjRR5RLR.RR&R8R*R+R,R-RRR2t
templatepathsttemplatepathtfrommapfileRRtfindexetshlexR5RR(R4RRR7RterrtinsttsecurityRR*R+R,R-RkRZRtcmdpathR5RP((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRm
s	

	
",




		


	
t
debugknowns
REPO ID...cO@stj|||}|jds6tjdn|jg|D]}t|^qC}|jddjg|D]}|rdpd^qtdS(stest 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
R8t1t0N(	RRRRRRIRRR(R4RtidsRRRRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRHs
(tdebuglabelcompletesLABEL...cG@st|||dS(sEbackwards compatibility with old bash completion scripts (DEPRECATED)N(tdebugnamecomplete(R4RR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRMstdebugmergestatec@sdfd}tj|}|j|jdfd}jd|jd|rrjdnysjd|dnY|jrjd	|d
n-jd|djr|d
ndS(
spprint merge state

    Use --verbose to print out information about whether v1 or v2 merge state
    was chosen.cS@s|tkrdS|SdS(NR(R(RM((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt_hashornullsc@s#jd||dkr&}n}x|D]\}}|dkr_jd|q3|dkrjd|q3|dkr|jdd\}}jd	||fq3|d
kr|jd}|dd!\}}}	}
}}}
|dkrd
}|d}n|dd!\}}jd||||	fjd|
|fjd||fjd|
|fq3|dkrK|jdd\}}|jd}d}g}xC|t|kr'|jd||||df|d7}qWjd|dj|fq3|dkr|jdd}g|D]}t|dkrp|^qp}jdjd|djd|dt|dkrjd|dqq3jd||jddfq3WdS(Ns* version %s records
itLs
local: %s
tOs
other: %s
RZssmerge driver: %s (state "%s")
tFDCiisnot stored in v1 formati	s1file: %s (record type "%s", state "%s", hash %s)
s  local path: %s (flags "%s")
s  ancestor path: %s (node %s)
s  other path: %s (node %s)
Rs%s = %sisfile extras: %s (%s)
s, R]slabels:
s  local: %s
s  other: %s
s  base:  %s
sunrecognized entry: %s	%s
s	(RR.R;RRR(RLtrecordstrtypetrecordtdrivertmdstateRRR?thashtlfiletafiletanodetofiletonodeRREt	rawextrastextrasR@textrastringsRuR](RPR4t	v1recordst	v2records(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytprintrecords!s^		"
			#	+
	tLOmlc@s;j|d}|dkr-d|dfSd|fSdS(Niii(tfind(Rtidx(torder(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR{asR{sno merge state found
sno version 2 merge state
is!v1 and v2 states match: using v2
is$v1 and v2 states mismatch: using v1
N(	R
t
mergestatet_readrecordsv1t_readrecordsv2R~RRt
_v1v2matchRA(R4RRRdtmsR{((RPRhR4RbRcs6/usr/lib/python2.7/dist-packages/mercurial/commands.pyROs*	:





	RNsNAME...c@st}xB|jjD]1\}}|dkr|j|j|qqW|jd|jjDt}|sdg}nx+|D]#|jfd|DqW|jdjt	||jddS(s:complete "names" - tags, open branch names, bookmark namesRycs@s'|]\}}}}|s|VqdS(N((RRR}RRz((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sR8c3@s$|]}|jr|VqdS(N(R(RRO(Rt(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>ss
N(
R|RnRkRt	listnamesRWRwRRRj(R4RRRnRtnstcompletions((Rts6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRNxs		
!t
debuglocksRQs
force-locksfree the store lock (DANGEROUS)tWsforce-wlocks'free the working state lock (DANGEROUS)s[OPTION]...c@s|jdr"|jjdn|jdrD|jjdn|jdsb|jdrfdStjd}fd}|||jd|j7}|||jd|j7}|S(sshow or modify state of locks

    By default, this command will show which locks are held. This
    includes the user and process holding the lock, the amount of time
    the lock has been held, and the machine name where the process is
    running if it's not local.

    Locks protect the integrity of Mercurial's data, so should be
    treated with care. System crashes or other interruptions may cause
    locks to not be properly released, though Mercurial will usually
    detect and remove such stale locks automatically.

    However, detecting stale locks may not always be possible (for
    instance, on a shared filesystem). Removing locks may also be
    blocked by filesystem permissions.

    Returns 0 if no locks are held.

    t
force_lockR tforce_wlockRic@sFy|t}Wntjk
r,d}nX|r@|jny|j|}|j}tj|j	}|j
|}d|kr|jd\}}	|tj
krd||	f}qd||	|f}njd|d||fdSWn+tk
r,}
|
jtjkr-q-nXjd|ddS(NRsuser %s, process %ssuser %s, process %s, host %ss%-6s %s (%ds)
is
%-6s free
i(RRtLockHeldRRtlstattst_mtimeR5R5tst_uidtreadlockR.tsockettgethostnameRtOSErrorterrnotENOENT(RRtmethodR]RqtageRdtlockerthosttpidRP(tnowR4(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytreports0



(RtsvfsRRRJR R(R4RRtheldR((RR4s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRqst
debugobsoleteRsmarkers flagsrecord-parentss+record parent information for the precursorsdisplay markers relevant to REVRsdisplay index of the markers#delete markers specified by indicess[OBSOLETED [REPLACEMENT ...]]c@sd|jdrg}xg|jdD]V}y|jt|Wq.tk
rtjtd|dtdq.Xq.W|jrtjtdn|j1t	j
|j|}|jtd|WdQXdS|dk	r|d	rtjd
ni}|dp0|j|d<tfd|D}	|j}
z-|jd
}zy|jd}|rtj|}nd}|}
d}|dr|
|jkrtjdn|j|
j}td|D}n|jj||
|	|dd|d|d||jWn,tk
r{}tjtd|nXWd|jXWd|
jXnc|d	rtj||d	}g|D]}||j^q}ttj|d|}|jddntj|}|}d}|jd	rz|jdrztj|}t|fd}n|j d
|}xgt!|D]Y\}}||sqn|j"|jdr|nd}t#j$||d|qW|j%dS(sccreate arbitrary obsolete marker

    With no arguments, displays the list of obsolescence markers.cS@s_y8t|}t|ttkr3tn|SWn tk
rZtjdnXdS(Ns>changeset references must be full hexadecimal node identifiers(RR;Rt	TypeErrorRR(RRO((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytparsenodeids
RJsinvalid index value: %rRususe integers for indicess6cannot delete obsmarkers in the middle of transaction.s deleted %i obsolescense markers
NRs+cannot select revision when creating markerRdc3@s|]}|VqdS(N((Rtsucc(R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sRRatrecord_parentss2cannot used --record-parents on unknown changesetscs@s|]}|jVqdS(N(R(RRk((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sRRtmetadatasbad obsmarker input: %sRAR{cS@s|jS(N(t_data(R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR(scS@stS(N(R(RZ((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR-sRc@s
|kS(N((RZ(t	markerset(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR1s(&RRRnRRRRtcurrenttransactionR R(tdeleteobsmarkerstobsstoreRRR5ttupleReR5Rt
unfilteredRtcreateRRR+R3RRoR#t
getmarkersR~R|Rt	enumerateRRt
showmarkerR(R4Rt	precursort
successorsRtindicesR@RORtsuccsR]RoRatprecRtexcRRRAtmarkerst
markerstoitert
isrelevantRR@RZtind((RRs6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs	




!
#	
tdebugpathcompletetfullscomplete an entire pathtnormalsshow only normal filestaddedsshow only added filestremovedsshow only removed filessFILESPEC...c@s!fd}d}dr/|d7}ndrF|d7}ndr]|d7}nj|s{d	g}ntt}}xC|D];}|||pd
\}	}
|j|	|j|
qW|j||jdjfdt|D|jdd
S(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.c@sj}tjjtjjtj|}jtj}|jkri|j|riggfStjj	|r|d7}n|t
|}tjdk}|r|jtjd}nt
|}d}tt}}	|	j
|j
}
}x|jD]\}}
|j|r|
d|kr|rW|jdtj}n|rm||qn|jtj|}|dkr|
|| q||qqW||	fS(Nt/Ri(RRRRRRR~RRtisdirR;RR|RRkRf(Rt
acceptableRR1trootdirtfixpathstspeclent	fullpathsRtdirstadddirtaddfileRtstR(RR(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytcompleteRs6	'



R8RtnmRRtRRR)tnmars
c3@s!|]}j|VqdS(N(tpathto(RRk(R:R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sN(RR|RRRRj(R4RtspecsRRRRRR1RR`((R:RRs6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRCs&








/tdebugpushkeysREPO NAMESPACE [KEY OLD NEW]cO@stj|i|}|r^|\}}}|j||||}	|jt|	d|	SxRt|j|jD]5\}
}|jd|
j	d|j	dfqzWdS(saccess 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(
RRtpushkeyRRRjtlistkeysRkRtencode(R4Rt	namespacetkeyinfoRRYR{RtnewRtkR@((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs
(t	debugpvecsA Bc	C@s7tj||}tj||}tj|}tj|}||krWd}n=||krld}n(||krd}n||Brd}n|jtd||jtd||jtd|j|jf|jtdt|j|jtj|j	|j	|j
||fdS(	Nt=t>t<R]sa: %s
sb: %s
sdepth(a): %d depth(b): %d
s.delta: %d hdist: %d distance: %d relation: %s
(R+RR'tctxpvecRRt_depthRt_hammingt_vectdistance(	R4RRtRxtcatcbR+tpbR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs$			
	#(s&debugrebuilddirstate|debugrebuildstatesrevision to rebuild totminimalsEonly rebuild files that are inconsistent with the working copy parents[-r REV]c@stj||}|j|jd}|jdrt|jj}t}||}||}	tfd|	D}
||
B}nj	|j
|j|WdQXdS(srebuild 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.

    ``minimal`` will only rebuild the dirstate status for files that claim to be
    tracked but are not in the parent manifest, or that exist in the parent
    manifest but are not in the dirstate. It will not change adds, removes, or
    modified files that are in the working copy parent.

    One use of this command is to make the next :hg:`status` invocation
    check the actual file content.
    Rc3@s%|]}|dkr|VqdS(RtN((RR(R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sN(R+RRRRRR|RtkeystrebuildR(R4RRRRtchangedfilest
manifestfilest
dirstatefilestmanifestonlytdsonlyt
dsnotadded((Rs6/usr/lib/python2.7/dist-packages/mercurial/commands.pytdebugrebuilddirstates
	


tdebugrebuildfncachecC@stj||dS(srebuild the fncache fileN(R(trebuildfncache(R4R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRstdebugrenamesrevision to debugs
[-r REV] FILEcO@stj||jd}tj||f||}x|j|D]}||}|jj|j}	|j|}
|	r|j	t
d|
|	dt|	dfqG|j	t
d|
qGWdS(sdump rename informationRs%s renamed from %s:%s
iis%s not renamed
N(R+RRRRtfilelogtrenamedtfilenodeRRRR(R4RRRRRRZRRRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs
1tdebugrevlogtdumpsdump index datac1@s_tj|d||}|jdrt|}|jdd}t}xRt|D]D}|j|}	|	dkr|}	n|j|}
|j	|}|j
|\}}
|j|}||}|t|j
|8}|j|y||j
|}Wntk
r(d}nX|jd|||
|j||j
||j|	|j|
|j||j|
|||t||fq\WdS|j}|d@}g}t}|tj@r|jdn|tj@rt}|jd	n|sd
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|}"|!tkrH|jd|d7}| |"|q|j||!d| |"||!|dkr|d7}|!|kr|d7}q|!|
kr|d7}qq|!|kr|d7}q|!|
kr|d7}q|!tkr|d7}qqWx4|||fD]#}"|"dd+krd|"d<qqW||}#|||}$|d
}%|d
c|:<|d
}&|d
c|:<|d
}'||dkr|d
c||:<n|&|'}(t||})t|}*d}+|(r|%|(}+nddfd},dfd}-d}.|jd||jddj||jd|-|(}/|,|(}0|jd|0||jd|/|.|||jd|/|.||||jd|0||jd|/|.|||jd|/|.|#||jd|0|(|jd|/|.|&|(|jd|/|.|'|(|jd|,t|)|+}/|jd|/|)|jd|/|*|jd|/|+|dkr|jd|jd t|n|jd!t||jd"t||#dkr[|jd|-|#}/|-|#d#}0|jd$|/|.||#|dkr|jd%|0|.|||jd&|0|.|||jd'|0|.|$|n|r[|jd(|/|.||#|jd)|/|.||#|jd*|/|.||#q[nd+S(,s'show data and statistics about a revlogRRse# rev p1rev p2rev start   end deltastart base   p1   p2 rawsize totalsize compression heads chainlen
iis:%5d %5d %5d %5d %5d %10d %4d %4d %4d %7d %9d %11d %5d %8d
itinlineRs(none)cS@s^|ddks ||dkr-||d<n||dkrJ||d<n|dc|7<dS(Niii(R(RHR]((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytaddsize*
s
 

iis%%%dd
s%%%dd %s(%%5.2f%%%%)
c@stt|S(N(R;R(R(tbasedfmtstr(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytdfmtstrf
sc@stt|d|fS(NR(R;R(Rtpadding(tbasepcfmtstr(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytpcfmtstrh
scS@s,|r|dt||fS|dfSdS(NidgY@(R(RR	((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytpcfmtk
ssformat : %d
sflags  : %s
s, s
srevisions     : s    merges    : s    normal    : s    full      : s    deltas    : srevision size : savg chain length  : smax 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RRR;RR|RRRRRpRRRtZeroDivisionErrorRRLRR)tREVLOGNGINLINEDATARRRRRRtsumRRR(1R4RR~RRtnumrevsttsR}RtdbasetcbasetclenRRtrsRR@RRtgdeltat	nummergestnumfulltnumprevtnump1tnump2tnumothert	nump1prevt	nump2prevtchainlengthstdatasizetfullsizet	deltasizeRR?RHt	numdeltastnumoprevttotalrawsizet	fulltotalt
deltatotalt	totalsizetavgchainlentmaxchainlent	compratioRRRRtfmt2((RRs6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs&
		



	!!	


	













	
"

			
		tdebugrevspectoptimizes/print parsed tree after optimizing (DEPRECATED)s
show-stages$print parsed tree at the given stagetNAMEsno-optimizeds"evaluate tree without optimizationsverify-optimizedsverify optimized resulttREVSPECc@sddfdfdfdtjfdtjfdtjfg}|dr_|d	 }n|d
r|drtjtdntd|D}t}t}jr|d
r|j	d|j
ddg|dr|j	dqn|d
r0|dr0tjtdn|d
dgkrS|j
|nNx:|d
D].}||kr^tjtd|q^q^W|j
|d
i}	d)}
tj|d|j
}x|D]\}}|||	|<}||ks||kr||
kr|d
s&|dkr:jd|njtj|d|}
qqW|d
r!tj|	d|}
tj|	d|}jrjdtj|
djdtj|dnt|
}
t|}|
|krdSjdddjdddtjd)|
|}x|jD]\}}}}}|d*krx/|
||!D]}jd|dd qWn|d+krx/|||!D]}jd"|dd#qWn|d$krPx)|
||!D]}jd%|qWqPqPWd&Stj|}||}jrdjd'tj|dnx|D]}jd(|qkWd)S(,s-parse and apply a revision specification

    Use -p/--show-stage option to print the parsed tree at the given stages.
    Use -p all to print tree at every stage.

    Use --verify-optimized to compare the optimized result with the unoptimized
    one. Returns 1 if the optimized result differs.
    tparsedcS@s|S(N((R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR
stexpandedc@stj|S(N(R*t
expandaliases(R(R4(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR
stconcatenatedtanalyzedt	optimizedtno_optimizeditverify_optimizeds1cannot use --verify-optimized with --no-optimizedcs@s|]\}}|VqdS(N((RROR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>
st
show_stageRs'cannot use --optimize with --show-stageRsinvalid stage name: %sRs* %s:
s
s* analyzed set:
s* optimized set:
is
--- analyzed
Rasdiff.file_as+++ optimized
sdiff.file_bRJRs-%s
sdiff.deletedtinserts+%s
s
diff.insertedtequals %s
is* set:
s%s
N(RJR(RR(R*t
foldconcattanalyzeRRRRR|RARRRRt__contains__RRtmakematcherRtprettyformatsetRotdifflibtSequenceMatchertget_opcodes(R4RRRtstagest
stagenamest
showalwaystshowchangedROttreebystagetprintedtreeRRtarevstbrevstsmRtalotahitblotbhiRtfuncR((R4s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR
s

		

 $

	"	
tdebugsetparentssREV1 [REV2]cC@sZtj||j}tj||dj}|j|j||WdQXdS(sDmanually set the parents of the current working directory

    This is useful for writing repository conversion tools, but should
    be used with care. For example, neither the working directory nor the
    dirstate is updated, so file status may be incorrect after running this
    command.

    Returns 0 on success.
    RN(R+RRRR(R4RRRtr1tr2((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR+s
sdebugdirstate|debugstatesdo not display the saved mtimetdatesortssort by saved mtimecK@sR|jd}|jd}d}|r6d}nd}xt|jjjd|D]\}}|ddkrd}n.|rd	}ntjd
tj|d}|dd@rd
}	nd|dd@t	j
@}	|jd|d|	|d||fq[Wx@|jjD]/}
|jt
d|jj|
|
fqWdS(s)show the contents of the current dirstateRvR.R8cS@s|dd|dfS(Niii((R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsR{iisunset               sset                 s%Y-%m-%d %H:%M:%S ii tlnks%3ois%c %s %10d %s%s
iiscopy: %s -> %s
N(RRRjRt_mapRkRJtstrftimet	localtimeR5tumaskRRRtcopied(R4RRRvR.ttimestrtkeyfuncR~tenttmodeR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt
debugstates&+				,tdebugsubsrevision to checks[-r REV] [REV]cC@sztj||d}x^t|jjD]G\}}|jd||jd|d|jd|dq+WdS(Nspath %s
s
 source   %s
is
 revision %s
i(R+RRRjtsubstateRR(R4RRRRR@((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR:2s
"tdebugsuccessorssetss[REV]c
G@si}t}t}|jr0d}t}nxtj||D]}||}|jd||xtj||j	|D]u}|r|jd|j||dx5|dD]&}	|jd|j||	qWn|jdqWqCWdS(	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).
    cS@s
|jS(N(R(R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytctx2strdss%s
s    iiRs
N(
RRRDRR+R3RR#tsuccessorssetsR(
R4RRtcacheR=tnode2strRRtsuccssetR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR<=s"#		
"

t
debugtemplatesapply template on changesetstDtdefinesdefine template keywords	KEY=VALUEs&[-r REV]... [-D KEY=VALUE]... TEMPLATEc	K@sd
}|drM|d
kr4tjtdntj||d}ni}x~|dD]r}y?d|jddD\}}|stn|||<Wq^tk
rtjtd|q^Xq^W|j	rT|j
d}	tj|}
|j
tj|
d	tj|
|	}||
krT|j
d
tj|d	qTnd
}|d
krd}tj|||}
|jtj|
||nStj||d
|||dt}x"|D]}|j|||qW|jd
S(sparse and apply a template

    If -r/--rev is given, the template is processed as a log template and
    applied to the given changesets. Otherwise, it is processed as a generic
    template.

    Use --verbose to print the parsed tree.
    Rs5there is no Mercurial repository here (.hg not found)RDcs@s|]}|jVqdS(N(RO(RRP((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sRis malformed keyword definition: %st
templatealiass
s* expanded:
RBtbufferedN(RRt	RepoErrorRR+R3R.RRRAtconfigitemsR2RRRRRt
maketemplaterRt	stringifyRtchangeset_templaterRtshowR(R4RttmplRRtpropsR`RR@RgRtnewtreetmapfileRRBR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRBss>
"	
!	""
t	debugwalkc
O@s(tj|d||}t|j|}|s8dSd}|jddrntjdkrnd}ndtg|D]}t	|^q{tg|D]}t	|j
|^qf}x\|D]T}||||j
||j|rdpd	f}	|jd
|	j
qWdS(s&show how files match on given patternsNcS@s|S(N((R*((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsR4tslashRcS@s
tj|S(N(R5R(R*((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRssf  %%-%ds  %%-%ds  %%stexactR8s%s
(R+RRRoRRRRRR;RRSRtrstrip(
R4RRRRZRRRRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRQs	!"2
7t
debugwireargstthreetfourtfivesREPO [OPTIONS]... [ONE [TWO]]cO@stj|||}xtD]}||d=qWi}x-|jD]\}}|rD|||<qDqDW|j||}	|j||}
|jd|	|	|
kr|jd|
ndS(Nis%s
(RRt
remoteoptsRkRURR/(R4RR`RRtoptRRR@tres1tres2((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRUs
s^diffRtchangeschange made by revisions6[OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...c
O@s=|jd}|jd}|jd}|jd}|rf|rftd}tj|nR|rtj||d	j}	||	jj}
ntj	||\}
}	|r|	|
}
}	nt
j||}tj||	||}t
j||||
|	|d|d|jdd|jdd	S(
s^diff repository (or selected files)

    Show differences between revisions for the specified files.

    Differences between files are shown using the unified diff format.

    .. note::

       :hg:`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 first 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.
    RR]RqR{s2cannot specify --rev and --change at the same timetlistsubreposRR~N(RRRRR+RRRRtrevpairR$tdiffalloptsRRtdiffordiffstat(
R4RRRRR]RqR{R tnode2tnode1RRZ((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytdiffs$@!s^exports
switch-parentsdiff against the second parentsrevisions to exports*[OPTION]... [-o OUTFILESPEC] [-r] [REV]...cO@s|t|jdg7}|s.dg}ntj||}|s^tjtdnt|dkr|jtdn|jtdt	j
||d|jdd	|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::

       :hg:`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.
    RR)s&export requires at least one changesetisexporting patches:
sexporting patch:
RgRt
switch_parentRN(
RRR+R3RRRR;RRtexportR$R`(R4RRCRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRf$sCRs%search the repository as it is in REVRKtprint0s*end filenames with NUL, for use with xargsc	O@stj||jdd}d}|jdr<d}nd|}tj|||}|jd|,}tj||||||jdSWdQXdS(	slist tracked files

    Print files under Mercurial control in the working directory or
    specified revision for given files (excluding removed files).
    Files can be specified as filenames or filesets.

    If no files are given to match, this command prints the names
    of all files under Mercurial control.

    .. container:: verbose

      Examples:

      - list all files under the current directory::

          hg files .

      - shows sizes and flags for current revision::

          hg files -vr .

      - list all files named README::

          hg files -I "**/README"

      - list all binary files::

          hg files "set:binary()"

      - find files containing a regular expression::

          hg files "set:grep('bob')"

      - search tracked file contents with xargs and grep::

          hg files -0 | xargs -0 grep foo

    See :hg:`help patterns` and :hg:`help filesets` for more information
    on specifying file patterns.

    Returns 0 if a match is found, 1 otherwise.

    Rs
Rgss%sRRN(R+RRRRRRR(	R4RRRRRRRZR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRus1	
s^forgetcO@sl|stjtdntj|d||}tj|||dddtd}|rhdpkdS(sforget 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 delete the file from the working directory, see :hg:`remove`.

    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 specifiedRR8texplicitonlyiiN(	RRRR+RRRtforgetR(R4RRRRZR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRis
%tgraftsrevisions to grafttcontinuesresume interrupted grafttlogs append graft info to log messagesforce grafttcurrentdates&record the current date as commit datetcurrentusers$record the current user as committers[OPTION]... [-r REV]... REV...c	O@s*|jt||||SWdQXdS(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 --force is specified, revisions will be grafted even if they
    are already ancestors of or have been grafted to the destination.
    This is useful when the revisions have since been backed out.

    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, except
       for --force.

    .. 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 .

      - show revisions sorted by date::

          hg log -r "sort(all(), date)"

    See :hg:`help revisions` and :hg:`help revsets` for more about
    specifying revisions.

    Returns 0 on successful completion.
    N(Rt_dograft(R4RRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRjsJ
cO@s|r+|jdr+|jtdnt|}|j|jd|jdr|jdr|j|d<n|jdr|jdrdtj|d<ntj	dd	|}t
}|jd
rt}|rtj
tdny?|jjdj}g|D]}||j^q%}Wqtk
r}|jtjkrlntj|td	qXnJtj|tj||stj
td
ntj||}t}	x>|jd|D]*}
|jtd|
|	j|
qWg|D]}||	kr$|^q$}|sLdS|p^|jds+|dj}|jj|gdt}
xQt|D]C}
|
|
kr|jtd|
||
f|j|
qqW|sdSi}x^|jd|D]J}|j||j <|j!jd}|r|j||<qqW|j"dx|jj#||gD]}
||
}|j!jd}||kry||j}Wntj$k
rd}nX||kr|jtd||||
|f|j|q|||kr|dkrq|jtd||||||
||d fn9|jtd||||||
|||d f|j||qqw|j |krw||j }|jtd||||
|f|j|qwqwW|s+dSnxut&|jd|D][\}}d|j||j'j(ddd f}|j)|j*|j+|j*}|r|d!d"j,|7}n|j-td#||jd$rqDn|j!jd}i}|r1||d<|j |d%<n|j |d<|j.}|jdri|d}n|j/}|jdr|d}n|j'}|jd&r|d'|j 7}n|s=zM|j0j1d(d)|jd*d+d	t2j3|||j4d,d	g}Wd|j0j1d(d)d+d	X|rC|d-d krCg||D]}
||
j d^qT}|jj5dd+j,|d+}|jdr|d.tj6|d7}n|jdr|d/tj6|d7}n|jd&r|d07}ntd1|}tj
td2d3|qCnt
}|j7d4|d|d|d5|d6|}|dkrD|jtd7|j|fqDqDW|jd$stj8|j,dd8tnd S(9NRsLwarning: inconsistent use of --rev might give unexpected revision ordering!
RdRnRaRms%d %dRRjRks&can't specify --continue and revisionst
graftstatesno revisions specifieds%ld and merge()s'skipping ungraftable merge revision %s
iRIR)t	inclusives!skipping ancestor revision %d:%s
s%ldRsscanning for duplicate grafts
s3skipping revision %d:%s (already grafted to %d:%s)
sKskipping already grafted revision %d:%s (%d:%s also has unknown origin %s)
isFskipping already grafted revision %d:%s (%d:%s also has origin %d:%s)
sAskipping already grafted revision %d:%s (was grafted from %d:%s)
s
%d:%s "%s"s
iis (%s)Rsgrafting %s
tdry_runsintermediate-sourceRls
(grafted from %s)R4RRR8Ris
 --user %ss
 --date %ss --logs,use 'hg resolve' and 'hg graft --continue%s's$unresolved conflicts, can't continueRuRuR=Rs2note: graft of %d:%s created no changes to commit
t
ignoremissing(9RR/RRoR&R5R5tmakedateRRRRRRRRt
splitlinesRtIOErrorR}R~twrongtooltocontinueRRR+R3R|RRRRTtremoveRR=RDtfindmissingrevstRepoLookupErrorRRtdescriptionR.tnodetagsRt
nodebookmarksRRRdRaR4RR
RjRRt
shellquoteRt
unlinkpath(R4RRRRtcontRARREtskippedRRtcrevRTRLRROtpostdescRnRR=RdRaR[Rt	nodelinesRu((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRo#s'

	%


**% (


+
	tgrepsend 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@stj}
jdr(|tjO}nytjj||Wn.tjk
rq}jtd|dSXd\

jdrd
ntj	|j
fd	d	tffd
Yii	fdd

fd
}diitj
|d|
}t}	
jdfd}
jd
}xJtj||
|
D]0}|j}
|jj}xtj|
gD]}|
|}j|
ij|}|krB|rt|<qqnj|ij|p]|g}|sr|r||||||}|	p|}	|r
jdrt|<|rt|<qqqqW|
=|
=qW|j|	S(s#search revision history for a pattern in specified files

    Search revision history for a regular expression in the specified
    files or the entire project.

    By default, grep prints the most recent revision number for each
    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.

    PATTERN can be any Python (roughly Perl-compatible) regular
    expression.

    If no FILEs are specified (and -f/--follow isn't set), all files in
    the repository are searched, including those that don't exist in the
    current branch or have been deleted in a prior changeset.

    Returns 0 if a match is found, 1 otherwise.
    tignore_cases grep: invalid match pattern: %s
iRs
Rgsc3@sd}d}x|t|krj||}|s=Pn|j\}}||jd||d7}|jd||dp|}|jd|dpt|d}|d}||||||||!fVqWdS(Nis
i(R;tsearchtspantcounttrfindRf(tbodytbegintlinenumRtmstarttmendtlstarttlend(tregexp(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt
matchliness&
t	linestatec@s2eZdZdZdZfdZRS(cS@s(||_||_||_||_dS(N(RRtcolstarttcolend(tselfRRRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt__init__s			cS@st|j|jfS(N(RYRR(R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt__hash__ scS@s|j|jkS(N(R(RR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt__eq__#sc3@sp|j|jfV|j}xO|t|jkrkj|j|}|sQPn|jV|j}qWdS(s+Iterate all (start, end) indices of matchesN(RRR;RRRR(RRkRZ(R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytfindpos&s	(t__name__t
__module__RRRR((R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs			c	@sk|j|g||}xB|D]4\}}}}||||}|j|q/WdS(N(R|R(	R*RRRZtlnumtcstarttcendRR(RtmatchesR(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytgrepbody3s
c	s@stjd||}x|jD]\}}}}}|dkroxt||D]}d||fVqSWq"|dkrxt||D]}d||fVqWq"|dkr"x&t||D]}d||fVqWx)t||D]}d||fVqWq"q"WdS(NRR&RJRR(RRRRR(	RtRxR%RR&R'R(R)R@((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytdifflinestates:s"c
@sj}|jr$j}nt}jr<d}nd}t}tjfd}	idd6dd6}
jdr||}ng|D]}d	|f^q}x|D]\}
}|j	|j
d
|jjdt
fd|t
fd|jjdfg}jdrT|jd|
t
fn|jd
|jjd
fd|jj|jdfgtdt|D}xq|D]i\}}}|
j||}|j||d|dd||r||kr|jddqqWjds|jddjdr|	r|jtdq|jd|n|jt
}jdrPqqW|S(Ns%Y-%m-%ds%a %b %d %H:%M:%S %Y %1%2c@s+}tj|jjS(N(R5RRR(tflog(RR*tgetfile(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRTsRRERRRR8RRR]RdRacs@s$|]\}}}|r|VqdS(N((RRRtcond((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>lss%sRasgrep.%ssgrep.septfiles_with_matchesRus Binary file matchesttexts(RRRRR?RR5RRRRRRRRRR&Rdt
formatdateRatnexttreversedRmRRtnested(RR*RtpstateststatesRt
formatusertdatefmttfoundRRR@R]R]tcolstlastcolRRRtfield(RtdisplaymatchesteolRRRR4(RR*s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytdisplayIsP		
!. 
cS@sd}x|jD]\}}||kre|j|jdd|j||!|jdtn|j|jdd|j||!dd|jdt|}qW|t|jkr|j|jdd|j||jdtn|jdS(NiRus%sRRas
grep.match(	RRRRRRRR;R(RR]RkRRP((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR~s

#

Rc@s|j}|j}|j}j|ij|ij|g}xK|D]C}|}y|j|}Wntjk
rq]nX|j|}	o|	o|	d}
|
r|
j|i|<n|kr|
r]t|
<q]q]n|j|||kr>|||j	|n|
pG|}||kr]y,|j|}|||j	|Wqtjk
rqXq]q]WdS(Ni(
RRR|RRR6RRRR(RtfnsRtpctxRRR*RtfnodeR4Rtpfn(RRRRRtrevfilesR%(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytpreps<


RR(Rs
N(treRpRRUR5tcompileRR/RtlrucachefuncRtobjectR+RRRRRtwalkchangerevsRRRjRR(R4RtpatternRRtreflagsRERRRRRRRRR*RRRR((RRRRRRRRRRRRRRR%R4s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsb'	
	!5	!#
$

R}s1show only heads which are descendants of STARTREVtSTARTREVttoposshow topological heads onlys)show active branchheads only (DEPRECATED)s#show normal and closed branch headss[-ct] [-r STARTREV] [REV]...c@s^d}d|kr4tj|ddj}n|jdrlgj|D]}|^qS}n\g}x6jD](}|j|||jd7}qWg|D]}|^q}|rtfd|D}g|D]}|j	|kr|^q}n|jdrj|rjj|}	g|D]}|j|	krC|^qC}n|rtd|D}
||
rdj
d||
D}td	}|jdr|td
|d7}n|j|d|qn|sdSt
|d
d}tj||}
x|D]}|
j|q9W|
jdS(sshow branch heads

    With no arguments, show all open branch heads in the repository.
    Branch heads are changesets that have no descendants on the
    same branch. They are where development generally takes place and
    are the usual targets for update and merge operations.

    If one or more REVs are given, only open branch heads on the
    branches associated with the specified changesets are shown. This
    means that you can use :hg:`heads .` to see the heads on the
    currently checked-out branch.

    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
    topological heads (changesets with no children) will be shown.

    Returns 0 if matching heads are found, 1 if not.
    RRRzc3@s|]}|jVqdS(N(R	(Rtbr(R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sRbcs@s|]}|jVqdS(N(R	(RRM((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>ss, cs@s|]}|VqdS(N((RRx((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>	ss)no open branch heads found on branches %ss (started at %s)s
iR{cS@s|jS(N(R(R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsN(RR+RRRR}RWR
R|R	RRR/RjRR5RLR(R4Rt
branchrevsRRRMR}R	Rytdagheadst	haveheadstheadlessR RBR((Rs6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR}s<!")&..

t	extensionsshow only help for extensionssshow only help for commandsRtkeywordsshow topics matching keywordR7s"show help for specific platform(s)s[-ecks] [TOPIC]cK@sa|jddd}|jd}|dks=||krF|}n|jdpXg}t|dkrtjjdr|jdqtjd	kr|jd
qtjdkr|jdq|jd|jtjjn|j	r|jd
nd}d}|rd|kr|jdd\}}tj|}d|krx|jdd\}}q|t
jkr|}q|}nt
j||d||}	tj|	|d|d|\}
}|r|
o|rtjtdnd
|kr|jdn
|jdtj|	|d|d|\}
}|j|
dS(sshow help for a given topic or a help overview

    With no arguments, print a list of commands with short help messages.

    Given a topic, extension, or command name, print help for that
    topic.

    Returns 0 if successful.
    R4t	textwidthiNiiR7twintwindowstOpenVMStvmstplan9tunixRAR)itsubtopictkeepRshelp section not foundtomittedt
notomittedN(t	configintt	termwidthRR;R9tplatformRRRRARR.RRt	subtopicsthelp_R"RRRRR(R4RRRRRRRt	remainingRut	formattedtpruned((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsJ	
			
sidentify|idsidentify the specified revisiontnumsshow local revision numberR(sshow global revision idsshow branchs	show tagsR	sshow bookmarkss[-nibtB] [-r REV] [SOURCE]c	@sb|r&|r&tjtdn|jr8t}
nt}
|pY|pY|pY|pY|}g}g}
|rtj|j|\}}tj	|p||	|j
}tj||d\}
}n|s|s|s|rtjtdn|r|
r|
d}n|s.d}nj
||sI|r[|
g}nfd}|r|j|qD|rD|jrDdj|}|r|j|qqDntj||djdkr|dj}g}x!|D]}|j|jqWd}|sC|sC|rt|jsttfdjDrd	}qn|s|rd
d	jg|D]}|
|j^q|fg}n|rg|jd
d	jg|D]}t|j^q|fqgnR|s!|r9|
jg}n|r[|jtjnj}|r|jrj}|dkr|jd|ndj|}|r|j|ndjj}|rD|j|qDnN|r|jjn|r(|j|n|rD|jjn|jd
dj|dS(sidentify the working directory 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 https://www.mercurial-scm.org/repo/hg/

    See :hg:`log` for generating more information about specific revisions,
    including full hash identifiers.

    Returns 0 if successful.
    s5there is no Mercurial repository here (.hg not found)s3can't query remote revision number, branch, or tagsiRc@sng}djdkrdt}gjdjD]\}}||kr=|^q=}nt|S(NR	t
namespaces(RRRkRj(tbmsthexremoterevtbmtbmr(Rt	remoterev(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytgetbmss"RR8c3@s$|]}j|jVqdS(N(tsubtdirty(RR(R(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>sR&s%s%sRvs(%s)s%s
RN(RRRRRRRRRRRRRRR&R?RRR+RRRR$RRR;RRR	R	R(R4RRRRR(R	R$R	RRRvRRRyRRRRttaglistRktchangedRxR((RRRs6/usr/lib/python2.7/dist-packages/mercurial/commands.pytidentify_s0		!

	


;	<simport|patchROs]directory strip option for patch. This has the same meaning as the corresponding patch optionsbase path (DEPRECATED)tPATHs;skip check for outstanding uncommitted changes (DEPRECATED)s/don't commit, just update the working directorytbypasss2apply patch without touching the working directorytpartialscommit even if some hunks failRSs"abort if patch would apply lossilysapply patch to subdirectorys
import-branchs8use any branch information in patch (implied by --exact)s[OPTION]... PATCH...c
O@s?|stjtdn|f|}|jd}|rVtj||d<n|jd}|jd}|r|jdrtjtdnyt|jdpd}Wn&tk
rtjtd	nX|dks|d
krtjtdn|r@|r@tjtdn|r|jd
rmtjtdn|jdrtjtdqn|d}	d}
}}}
g}d}zU|j	}
|r
t
j||s|jdr
t
j|q
n|jds7|j
}|jd}
nt
j|d}|dj}xn|D]f}|dkr|jtd|j}d}n>tjj|	|}|jtd|tj||}t}xtj|D]}t
j||||||tj\}}}|r>t}|j|dn|sJ|r]|dj}n
||g}|r|jtd|jtdd}PqqW|s`tjtd|q`q`W|
r|
j n|r|j!dj|n|r|j n|SWd|
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).

    To read a patch from standard input, use "-" as the patch name. If
    a URL is specified, the patch will be downloaded from there.

    Import first applies changes to the working directory (unless
    --bypass is specified), import will abort if there are outstanding
    changes.

    Use --bypass to apply and commit patches directly to the
    repository, without affecting the working directory. Without
    --exact, patches will be applied on top of the working directory
    parent revision.

    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 the 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 will guard against various ways that portable
    patch formats and mail systems might fail to transfer Mercurial
    data or metadata. See :hg:`bundle` for lossless transmission.

    Use --partial to ensure a changeset will be created from the patch
    even if some hunks fail to apply. Hunks that fail to apply will be
    written to a <target-file>.rej file. Conflicts can then be resolved
    by hand before :hg:`commit --amend` is run to update the created
    changeset. This flag exists to let people import patches that
    partially apply without losing the associated metadata (author,
    date, description, ...).

    .. note::

       When no hunks apply cleanly, :hg:`import --partial` will create
       an empty changeset, importing only the patch metadata.

    With -s/--similarity, hg will attempt to discover renames and
    copies in the patch in the same way as :hg:`addremove`.

    It is possible to use external patch programs to perform the patch
    by setting the ``ui.patch`` configuration option. For the default
    internal tool, the fuzz can also be configured via ``patch.fuzz``.
    See :hg:`help config` for more information about configuration
    files and how to use these options.

    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 https://www.mercurial-scm.org/repo/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

      - use an external tool to apply a patch which is too fuzzy for
        the default internal tool.

          hg import --config ui.patch="patch --merge" fuzzy.patch

      - change the default fuzzing from 2 to a less strict 7

          hg import --config ui.fuzz=7 fuzz.patch

    Returns 0 on success, 1 on partial success (see --partial).
    s!need at least one patch to importRaRSRRs$cannot use --no-commit with --bypassRissimilarity must be a numberids$similarity must be between 0 and 100s%cannot use --similarity with --bypassRscannot use --exact with --editRs cannot use --exact with --prefixRRItimportRsapplying patch from stdin
tstdinsapplying %s
s
spatch applied partially
s1(fix the .rej files and run `hg commit --amend`)
is%s: no diffs founds
* * *
N(#RRRRR5RRRRRRRRR ReRRRRRRRRR2RR$R.ttryimportoneRRRt	write_errRtsavecommitmessageR(R4Rtpatch1tpatchesRRaRSRRRRRR RotmsgsRRtpatchurlt	patchfilethaspatchthunkR Rtrej((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytimport_st





		
 


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	@szjdr]tjgfd}tj|d|dtdSjdrjdrtjtdnjd	r@tj	j
|jd
\}}tj|}d	|jdkr
j
tddSjtd
tj|tj|Sj
|_ztj|SWd`XdS(sshow new changesets found in source

    Show new changesets found in the specified path/URL or the default
    pull location. These are the changesets that would have been pulled
    if a pull at the time you issued this command.

    See pull for valid source format details.

    .. container:: verbose

      With -B/--bookmarks, the result of bookmark comparison between
      local and remote repositories is displayed. With -v/--verbose,
      status is also displayed for each bookmark like below::

        BM1               01234567890a added
        BM2               1234567890ab advanced
        BM3               234567890abc diverged
        BM4               34567890abcd changed

      The action taken locally when pulling depends on the
      status of each bookmark:

      :``added``: pull will create it
      :``advanced``: pull will update it
      :``diverged``: pull will create a divergent bookmark
      :``changed``: result depends on remote changesets

      From the point of view of pulling behavior, bookmark
      existing only in the remote repository are treated as ``added``,
      even if it is in fact locally deleted.

    .. container:: verbose

      For remote repository, using --bundle avoids downloading the
      changesets twice if the incoming is followed by a pull.

      Examples:

      - show incoming changes with patches and full description::

          hg incoming -vp

      - show incoming changes excluding merges, store a bundle::

          hg in -vpM --bundle incoming.hg
          hg pull incoming.hg

      - briefly list changes inside a bundle::

          hg in changes.hg -T "{desc|firstline}\n"

    Returns 0 if there are incoming changes, 1 otherwise.
    Rsc@s5tj||}tj||tjdS(N(Rt	graphrevstdisplaygraphRt
asciiedges(RtchlistRBtrevdag(RRR4(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRscS@sdS(Ni((((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR
sRFiRRs&cannot combine --bundle and --subreposR	R	Rs!remote doesn't support bookmarks
scomparing with %s
N(RRtcheckunsupportedgraphflagsRt	_incomingRRRRRRRRR/RR5RR	tincomingt_subtoppath(R4RRRRRyR((RRR4s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs(B% s^inits![-e CMD] [--remotecmd CMD] [DEST]cK@s&tj|||j|dtdS(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.
    RN(RRRR(R4RR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytinit$stlocatetfullpaths-print complete paths from the filesystem roots[OPTION]... [PATTERN]...c
O@s|jdrd}nd}tj||jddj}d}||}tj|||dddd	}xm|j|D]\}	|jd
r|j|j|	|n%|j|r|j	|	p|	|d}qW|S(
s>locate files matching specific patterns (DEPRECATED)

    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.

    See :hg:`help files` for a more versatile command.

    Returns 0 if a match is found, 1 otherwise.
    Rgss
RiRvtrelglobRcS@stS(N(R(RR<((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRZsRiN(
RR+RRRRRRtwjoinR(
R4RRRRRRRRZR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR
5s	$
%
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 revsets*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]cO@s|jdrJ|jdrJtjd|jdg|d<|d=n|jdrotj||||Stj|||\}}}tj|}d}d}	|jdrd}
|jdrtj	||jdj
d}
ntj|d|
}	ntj
|||d	t}x|D]}||krDPn||}
d}|	dk	r|rg}xF|
jD]5}|	||}|ry|j||dfqyqyWn|r||
j}nd}|j|
d|d
||j|
r.|d7}q.q.W|jdS(sshow 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.

    With --graph the revisions are shown as an ASCII art DAG with the most
    recent changeset at the top.
    'o' is a changeset, '@' is a working directory parent, 'x' is obsolete,
    and '+' represents a fork where the changeset from the lines below is a
    parent of the 'o' merge on the same line.

    .. note::

       :hg:`log --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, :hg:`log FILE` may omit duplicate changes
       made on branches and will not show removals or mode changes. To
       see all such changes, 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"

      - the full hash identifier of the working directory parent::

          hg log -r . --template "{node}\n"

      - list available log templates::

          hg log -T list

      - check if a given changeset is included in 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 and ordering revisions.

    See :hg:`help templates` for more about pre-packaged styles and
    specifying custom templates.

    Returns 0 on success.

    RRsreverse(::%lr)RsiRitendrevRFRN(RR*t
formatspecRtgraphlogt
getlogrevstloglimitRR+R3RR1tgetrenamedfnR5RRRRRLtflushR(R4RRRRRtfilematcherRnRt
getrenamedRRBRRRR*RKt
revmatchfn((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRlesBy"
(

!srevision to displayslist files from all revisionsc	K@s@|jd|}|jdr&|s-|rEtjtdng}d}d}t|}	t|}
|jmxe|jjD]T\}}}
|
dkr||
|kr||	 |kr|j	||	|
!qqWWdQXx+|D]#}|j
|jdd	|qW|jdS|rJ|rJtjtd
n|sY|}nidd6d
d6dd6}idd6dd6dd6}t
j||}|j}x|D]z}|j
||j}|j|jddt|||j|jdd|||||jdd	|qW|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.
    RRs#can't specify a revision with --allsdata/s.iiNRs%s
s please specify just one revisionRSR]R`RR8t644t755RYs%s s	mode types%s %1s (RRRRRR;R tstoret	datafilesRRRRR+RRRRmRRRA(R4RRRRRtresRtsuffixtplentslenR*RxRHRtcharR8RR
tfl((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsB
-"


	

#$s^merges8force a merge including outstanding changes (DEPRECATED)srevision to mergetpreviews1review revisions to merge (no merge is performed)s[-P] [[-r] REV]c
	K@s|jdr-|r-tjtdn|sE|jd}n|rftj||j}n|s|tj|j}n|jdr|j	d}|j	|}|j
jd|gd|g}tj
|||}x|D]}|j||qW|jdSzf|jjdd	|jd
dd|jd
}ddg}	tj||d
|d|d|	SWd|jdd	ddXdS(smerge another revision into working directory

    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.

    See :hg:`help resolve` for information on handling file conflicts.

    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.
    Rs please specify just one revisionR$R)RR}iR4RRR8R!RIsworking copys	merge revt
mergeforceRuN(RRRRR+RRRt	destmergeRRtfindmissingRR5RLRR4RRR!(
R4RRRRRRARBRIRu((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR!Bs0%!

%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	K@s|jdrtjg|tj||||\}}|s`tj|||||dStj|||}tj|||dt}tj	||||t
jtj|||||dS|jdr|j|pd|pd}tj
||jd\}}tj|||}d|jd	krX|jtd
dS|jtdtj|tj|||S|j|pd|pd|_ztj||||SWd|`XdS(s'show 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.

    .. container:: verbose

      With -B/--bookmarks, the result of bookmark comparison between
      local and remote repositories is displayed. With -v/--verbose,
      status is also displayed for each bookmark like below::

        BM1               01234567890a added
        BM2                            deleted
        BM3               234567890abc advanced
        BM4               34567890abcd diverged
        BM5               4567890abcde changed

      The action taken when pushing depends on the
      status of each bookmark:

      :``added``: push with ``-B`` will create it
      :``deleted``: push with ``-B`` will delete it
      :``advanced``: push will update it
      :``diverged``: push with ``-B`` will update it
      :``changed``: push with ``-B`` will update it

      From the point of view of pushing behavior, bookmarks
      existing only in the remote repository are treated as
      ``deleted``, even if it is in fact added remotely.

    Returns 0 if there are outgoing changes, 1 otherwise.
    RsNRFiR	sdefault-pushRvR	Rs!remote doesn't support bookmarks
scomparing with %s
(RRRRt	_outgoingt
outgoinghooksRR5RRRRRRRRR/RRR5RR	RR(	R4RRRRRRRBRy((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs0.! !Rs&show parents of the specified revisions[-r REV] [FILE]c
K@stj||jdd}|rFtj||f|}|js`t|jdkrxtj	t
dn|jd}g}xQ|jD]C}|sqny|j|j
|Wqtjk
rqXqW|stj	t
d|ng}x^|D].}	|j|d|	}
|j|
jqWn%g|jD]}|j^qS}tj|||}x.|D]&}|tkr|j||qqW|jdS(sshow the parents of the working directory or revision (DEPRECATED)

    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.

    This command is equivalent to::

        hg log -r "p1()+p2()" or
        hg log -r "p1(REV)+p2(REV)" or
        hg log -r "max(::p1() and file(FILE))+max(::p2() and file(FILE))" or
        hg log -r "max(::p1(REV) and file(FILE))+max(::p2(REV) and file(FILE))"

    See :hg:`summary` and :hg:`help revsets` for related information.

    Returns 0 on success.
    Ris%can only specify an explicit filenameis'%s' not found in manifest!tfileidN(R+RRRRtanypatsR;RRRRRRRR6tfilectxRRR5RRLR(
R4RR~RRRZt	filenodestcpRkR*RRBRO((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs4$
%
Rs[NAME]c
K@s|rCg|jjD]$\}}||kr||f^q}nt|jj}|jd|}|jrtj}nt}|jrd}	nd}	|o|j}
x|D]\}}|j	|j
|d|	||j
|jdd||jxkt|jj
D]T\}}|dks<t|
r\|jd||fn|j
|
|d|qWqW|j|r|r|js|jtdndSd	Sd
S(sshow 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::

       ``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
s%s = Rturls%s:%s = snot found!
iiN(RR/(RRkRjRRR5RRR?RRmtrawloct
suboptionsRR<RRR/R(
R4RRRRRt	pathitemsRRtnamefmttshowsuboptstsuboptR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs6 !		
#"

	tphasetpublicsset changeset phase to publictdraftsset changeset phase to draftsset changeset phase to secretsallow to move boundary backwardstarget revisions[-p|-d|-s] [-f] [-r] [REV...]c@s(d}xTttjD]C\}}||r|dk	rPtjtdn|}qqWt|}|j|d|sg|dj	D]}|j
^q}ntj||}d}d}	|dkrxK|D]3}
||
}|j
d|j
|jfqWn
d}|j}z|jd}|sYtjtdng|D]}
||
j^q`}
|j}|jj}g|D]}
|||
^qtj||||
|drtj||||
n|jWd|dk	r|jn|jX|jj}g|D]}
|||
^q4tfd	|D}|j}g|
D]%}|j
||kr~|^q~}|r|jtd
t|d}	n|rtd|}|	r|j|q$|j|n|jtd
|	S(sset or show the current phase name

    With no argument, show the phase name of the current revision(s).

    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

    Returns 0 on success, 1 if some phases could not be changed.

    (For more information about the phases concept, see :hg:`help phases`.)
    sonly one phase can be specifiedRis%i: %s
R6sempty revision setRINc3@s#|]}||kVqdS(N((RR(tnewdatatolddata(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>ss9cannot move %i changesets to a higher phase, use --force
is phase changed for %i changesets
sno phases changed
(RRR%t
phasenamesRRRRoR&RRR+R3RRR ReRRt_phasecacheR6tadvanceboundarytretractboundaryRRRRR/R;RR(R4RRRttargetphaseRgRRR RRRRoRAtunfitgetphasetchangesR!RORR ((R9R:s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR6Osf

,

*#"

"	
%	c
C@s|dkrdS|rytj||||SWqtjk
r|}tdt|}|j}tj|d|qXn|dkrt|j}	|	|kr|j	tdq|	dkr|j	tdq|j	tdn|j	td	dS(
scRun after a changegroup has been added via pull/unbundle

    This takes arguments below:

    :modheads: change of heads by pull/unbundle
    :optupdate: updating working directory is needed or not
    :checkout: update destination revision (or None to default destination)
    :brev: a name, which might be a bookmark to be activated after updating
    iNsnot updating: %sRuis3(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)
(
Rt
updatetotallyRtUpdateAbortRRRuR;R
R(
R4Rtmodheadst	optupdateRtbrevRER Rutcurrentbranchheads((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytpostincomings"
	s^pullRs3update to new branch head if changesets were pulleds,run even when remote repository is unrelatedRNsbookmark to pulltBOOKMARKs9[-u] [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [SOURCE]cK@stj|j||jd\}}|jtdtj|tj|||}z_tj	||||jd\}}i}|jdr)|sg}n|j
d}	|	|d<x`|dD]Q}
|jj|
}
|
|	krt
jtd|
n|j|	|
qWn|ryR|}g}x?|D]7}|j|}
|j|
||krE|
}qEqEWWqt
jk
rtd}t
j|qXn|j|jd	itj||d
|d|jdd|jddd	|j}d}|rt|jj|}|jdrU|dd}q|jdru|dd}q|d}n||_z(t||||jd
||}Wd|`XWd|jX|S(spull changes from the specified source

    Pull changes from a remote repository to a local one.

    This finds all changes from the repository at the specified path
    or URL and adds them to a local repository (the current one unless
    -R is specified). By default, this does not update the copy of the
    project in the working directory.

    Use :hg:`incoming` if you want to see what would have been added
    by a pull at the time you issued this command. If you then decide
    to 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.

    Specifying bookmark as ``.`` is equivalent to specifying the active
    bookmark's name.

    Returns 0 on success, 1 if an update had unresolved files.
    R	spulling from %s
RRNR	tremotebookmarkssremote bookmark %s not found!sOother repository doesn't support revision lookup, so a rev cannot be specified.topargsR}RIiRN((RRRRRRR5RRRRRdt
expandnameRRRRtCapabilityErrorRRRtcgresultRRRRRRIR(R4RRRRyRRRt
pullopargsRKRxtoldrevsRRRDRERGR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRsb!* 	



	s^pushs
force pushsbookmark to pushs
new-branchsallow pushing a new branchs2[-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]c
K@sL|jdr|jdd|ddxk|dD]\}|jj|}||jkrw|jdgj|q4|jdgjdq4Wn|jj|dd}|stj	t
d	d
t
dn|jp|j}|j
|jdpgf}|jt
d
tj|tj||||jd\}}tj|||}	|rgtj||D]}
|j|
^q~}|s=tj	t
dd
t
dq=nw|jr=tjd|j}tj||g}g|D]}||j^q}|s=tj	t
dq=n||_zW|d}
|
j}x=t|D]/}|
j|j|}|dkri|SqiWWd|`Xt j||	|jdd|d|jdd|jddd|jd}|j!}|j"dk	rH|j"dkr,d}qH|rH|j"rHd}qHn|S(spush 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.

    .. note::

       Extra care should be taken with the -f/--force option,
       which will push all new heads on all branches, an action which will
       almost always cause confusion for collaborators.

    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. Specifying ``.`` is equivalent to specifying the active
    bookmark's name.

    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.
    RNR	tpushingtpushRRRvsdefault-pushs"default repository not configured!Russee 'hg help config.paths'R	spushing to %s
s,specified revisions evaluate to an empty sets use different revision argumentss	heads(%r)s6default push revset for path evaluates to an empty setR8iNRIRt	newbrancht
new_branchRLi(sdefault-pushRv(($RRRdRMR|RRtgetpathRRRtpushloctlocR	RR5RRRRR+R3RtpushrevR*RRRR;RjRRSRROtbkresultR(R4RRRRxRRyRRRRRRRtsubsRtresulttpushop((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRS7s^1  '.	#	
	
!
	trecovercC@s|jrtj|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^Rtverify(R4R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR^s
s
^remove|rmsrecord delete for missing filess)forget added files, delete modified filescO@s|jd|jd}}|rE|rEtjtdntj|d||}|jd}tj|||d|||S(s'remove 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):

      ========= == == == ==
      opt/state A  C  M  !
      ========= == == == ==
      none      W  RD W  R
      -f        R  RD RD R
      -A        W  W  W  R
      -Af       R  R  R  R
      ========= == == == ==

      .. note::

         :hg:`remove` never deletes files in Added [A] state from the
         working directory, not even if ``--force`` is specified.

    Returns 0 on success, 1 if any warnings encountered.
    RRIsno files specifiedRR8N(	RRRRR+RRRRx(R4RRRRRIRZR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRxs.srename|move|mvs)record a rename that has already occurreds[OPTION]... SOURCE... DESTcO@s6|jt!tj||||dtSWdQXdS(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.
    RKN(RRRRR(R4RRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRKstresolvesselect all unresolved filesRos!list state of files needing mergeRQsmark files as resolvedtunmarksmark files as unresolveds	no-statusshide status prefixc 
O@sdj}g|D]}|j|^q\}}}}	}
|	rO|s[|s[|rs|rstjtdn|r|rtjtdn|p|p|	p|p|stjtdddn|	r|jd|}tjj|}t	j
|d||}
x|D]}|
|s5qndid	d
6dd6d
d6||}|j|j
|
dd||jd||jdd|d|qW|jdS|jtjj|}|jp|jjtkstjtdn|d}|jrp|jd
krptj|||}|j|rp|rp|rpdSnt	j
|||}
d}t}t}g}x|D]
}|
|sqnt}||dkr?|
j|}|r
|r9|jtd|q9q|r3|r9|jtd|q9qt}qn|rX|j|dq|rq|j|d
q|j|}yt j!||dWn1t"t#fk
r}|j$t$j%krqnXzc|j&dd|jddd|j'||\}}|s|j(|n|r.d}nWd|j&dddd|jX|ry't j)|dt	j*|||Wqt#k
r}|j$t$j%krqqXqqWx|D]}zG|j&dd|jddd|j+||}|rd}nWd|j&dddd|jX|j|}y't j)|dt	j*|||Wqt#k
r}|j$t$j%krqqXqW|j|j,|r|rd}t-g|D]!}|j.ddkr|^qsg|D]}d |^q}t	j
|||}
x||D]q}|
|sAq)ndj/g|D]#}|j|rNd!|d^qN}td"|d#j/|f}Pq)Wn|jtd$|rC|j|qCnv|jrC|jd%krC|st0|j1rCt0|j2rCtj3|||}|j|s@dSqCnWdQXt0|j2}t0|j1}|r|r|j4td&t5j6|n|s|j4td'n|S((sredo 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::

       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 patternss!no files or directories specifiedRus*use --all to re-merge all unresolved filesR`sresolve.t
unresolvedRctresolvedRtdriverresolvedR`Rs%s RaRs%s
is/resolve command not applicable when not mergingis(not marking %s as it is driver-resolved
s*not unmarking %s as it is driver-resolved
s.resolveR4RRR8NRspath:%ss-%s s(try: hg resolve %s%s)
Rs1arguments do not match paths that need resolving
Rs(no more unresolved files)
sA(no more unresolved files -- run "hg resolve --all" to conclude)
(7R.RRRRRR
RiRR+RRRRmtupperRRRRbRRRtmergedriverRXtdriverpreprocessRRRRSR/RQR
R5tcopyfileRvR|R}R~Rt
preresolveRRKtorigpathR`t
recordactionsRRfRRoRdRbtdriverconcludeRRtcheckafterresolved( R4RRRtflaglistRRRQRaRLtnostatusRRmRZRR]twctxtproceedRtdidworktrunconcludet
tocompleteRSRtRERRRuRkRtunresolvedftdriverresolvedf((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR`s11

'

!







'


4
&	
Rs*revert all changes when no arguments givenstipmost revision matching dates revert to the specified revisions	no-backups"do not save backup copies of filess/interactively select the changes (EXPERIMENTAL)s[OPTION]... [-r REV] [NAME]...cO@s|jdrV|jdr6tjtdntj|||d|d<n|jj\}}|jdr|tkrtjtddtdnt	j
||jd}|p|jdp|jdp|jd	p|jd
std}|tkrDtd}tj|d|nt|j}	|j
}
|
|kr|	rtd
|j}qtd|j}n!|	rtd}ntd}tj|d|ntj|||||f||S(srestore 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. It is possible to store
    the backup files in a custom directory relative to the root of the
    repository by setting the ``ui.origbackuppath`` configuration
    option.

    See :hg:`help dates` for a list of formats valid for -d/--date.

    See :hg:`help backout` for a way to reverse the effect of an
    earlier changeset.

    Returns 0 on success.
    RaRs'you can't specify a revision and a dates,uncommitted merge with no revision specifiedRus'use 'hg update' or see 'hg help revert'RVRYRRs!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(RRRRRtfinddateRRRR+RRRRRR(R4RRRRRRR RuRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs8. $		trollbacksignore safety measurescK@s[|jddts3tjtdddn|jd|jdd|jdS(	sroll back the last transaction (DANGEROUS) (DEPRECATED)

    Please use :hg:`commit --amend` instead of rollback to correct
    mistakes in the last commit.

    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.

      The rollback command can be entirely disabled by setting the
      ``ui.rollback`` configuration setting to false. If you're here
      because you want to use rollback and it's disabled, you can
      re-enable the command by setting ``ui.rollback`` to true.

    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.
    R4Rxs)rollback is disabled because it is unsafeRus)see `hg help -v rollback` for informationtdryrunRrRI(RRRRRRxR(R4RR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRx4s
/cC@s|j|jddS(sprint the root (top) of the current working directory

    Print the root directory of the current repository.

    Returns 0 on success.
    s
N(RR~(R4R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR~iss^servet	accesslogs#name of access log file to write totdaemonsrun server in backgroundsdaemon-postexecsused 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)Rs6name 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 filecK@s|dr,|dr,tjtdn|dry|dkrZtjtdntj||}|jn|drtj|||}nt	j|||}t
j|d|jd|j
S(sstart stand-alone webserver

    Start a local HTTP repository browser and pull server. You can use
    this for ad-hoc sharing and browsing of repositories. It is
    recommended to use a real web server to serve a repository for
    longer periods of time.

    Please note that the server does not implement access control.
    This means that, by default, anybody can read from the server and
    nobody can write to it by default. Set the ``web.allow_push``
    option to ``*`` to allow everybody to push to the server. You
    should use a real web server if you need to authenticate users.

    By default, the server logs accesses to stdout and errors to
    stderr. Use the -A/--accesslog and -E/--errorlog options to log to
    files.

    To have the server choose a free port number to listen on, specify
    a port number of 0; in this case, the server will print the port
    number it uses.

    Returns 0 on success.
    RRs#cannot use --stdio with --cmdservers5there is no Mercurial repository here (.hg not found)tinitfntrunfnN(RRRRRGR.t
serve_foreverR
t
createserviceRRtserviceR	trun(R4RRRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytservess4


s
^status|stsshow status of all filestmodifiedsshow only modified filestdeleteds%show only deleted (but tracked) filessshow only files without changestunknowns%show only unknown (not tracked) filesRsshow only ignored filessshow source of copied filessshow difference from revisions$list the changed files of a revisionc	O@s8|jd}|jd}|rH|rHtd}tj|nR|rtj||dj}||jj}ntj	||\}}|r|j
}	nd}	|jdrd}
nd}
i}dj}g|D]}
|j|
r|
^q}|jd	rC||jr9|d
 dgp<|7}n|sl|jr_|d
 }ql|d }ntj
||||}|j|||d
|kd|kd|k|jd}t|d|}|jd	s|jds|jddr3|jdr3tj|||||}n|jd|}d|
}|jd}x|D]\}}}||krfd|}x|D]}|j|j|dd|d||jd||j||	d|||kr|jdd|
|j|||	ddqqWqfqfW|jdS(spshow 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::

       :hg:`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 (with --copies)

    .. container:: verbose

      Examples:

      - show changes in the working directory relative to a
        changeset::

          hg status --rev 9353

      - show changes in the working directory relative to the
        current directory (see :hg:`help patterns` for more information)::

          hg status re:

      - 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.
    RR]s2cannot specify --rev and --change at the same timeR8Rgss
s4modified added removed deleted unknown ignored cleanRiRiRRRsMAR!?ICRR4tstatuscopiest	no_statusRs%ssstatus.s%s RaRRs  %ss
status.copiedN(RRRRR+RRRRR_RR.R?RRRRRt
pathcopiesRRRmRRR(R4RRRRR]R RbRcR:RRRRRLRZRqtchangestatesRRtshowcharR?R"RRaR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs\N	('	

" 



%&s^summary|sumRscheck for push and pulls
[--remote]c0@stdE}|j}|dj}g}dE}ytjj}WnEtjk
r}dj|j	}	j
td|	d}
n*Xg|D]}||dkr|^q}
x"|D]}jtd|j
t|fdd|jjdj|jdd|jrC|j|jn|j
d	krtswjtd
qjtdnjd|jrjd|jjdjddd
qqW|j}
j|
}td|
}|
dkr+j|ddnj|dd|rj}jtddd|dEk	r||krjd|dt|j|qjd|dtnx%|D]}jd|ddqWjdddnjdt}jj}gg}}xx|j D]j\}}	|	|j!krs|j!j|	|j"|n
|j"|||j#kr8|j#j|q8q8Wg|j$D]!}	|j%|	j&r|	^q}j'tdd|j(fj'tdd|j#fj'tdd|j!fj'tdd|fj'tdd|fj'tdd |j)fj'td!d"|j*fj'td#d$|
fj'td%d|fg	}g}x4|D],\}}	|	r|j"|t|	qqWd&j|}t+}j,j-d'rV|td(7}nj,j-d)r{|td*7}nt|d+kr|td,7}n|
|djkr|td-7}n|dj.r|j|
d.tkr|td/7}ne|j(p1|j#p1|j!p1|p1|p1|sM|td07}t}n||krl|td17}n|rt/d2|D}n	t0j1}|t0j2kr|d3t0j3|7}n|rjtd4|jnjtd4|jtj4j5g|D]}|j^q|}|dkrZjtd5nI||krjtd6|n#jtd7|t|fg}tj6d8}|r|j"td9|ntj6d:}|r|j"td;|n|s|rBjtd<d&j|nt7j8t7j9rxdPD]t} tj6| d@}!itdAd=6tdBd>6tdCd?6}"|!dkr^j|"| |!dq^q^Wnt:j;j<dDr	tt}#}$nft+t+}#}$xDt:j=dED]*\}%}&|%rI	t}#n|&r.	t}$q.	q.	W|#rn	|$rn	dESfdF}'|#r	|'\}(ndE}(fdG})|$r	|)\}*}+},}-ndE}*}+},}-j<dDr<g}|(r<
|j"tdHn|-j>}&|&rk
|j"tdIt|&n|,pt
}.dJ|.j?dKkr
tj@|.}/|/ddkr
|j"tdL|/dn|/d+dkr
|j"tdM|/d+q
n|r&jtdNd&j|q<jtdOnt:j=f|*|+|,|-ffdES(QsTsummarize working directory state

    This generates a brief summary of the working directory state,
    including parents, branch, commit status, phase 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.
    iRs6warning: merge state has unsupported record types: %s
Rcsparent: %d:%s Raslog.changeset changeset.%sslog.tagis (empty repository)s (no revision checked out)s
slog.summarysbranch: %s
Rvs
log.branchs
bookmarks:slog.bookmarks *s [%s]Rs%d modifiedsstatus.modifieds%d addedsstatus.addeds
%d removedsstatus.removeds
%d renameds
status.copieds	%d copieds
%d deletedsstatus.deleteds
%d unknownsstatus.unknowns
%d unresolvedsresolve.unresolveds%d subreposs, Rps (graft in progress)tupdatestates (interrupted update)is (merge)s
 (new branch)Rzs (head closed)s (clean)s (new branch head)cs@s|]}|jVqdS(N(R6(RRk((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>ss (%s)scommit: %s
supdate: (current)
s#update: %d new changesets (update)
s3update: %d new changesets, %d branch heads (merge)
sdraft()s%d draftssecret()s	%d secretsphases: %s
tunstablet	divergenttbumpeds()sunstable: %d changesetssdivergent: %d changesetssbumped: %d changesetsRNc@s)tjjd\}}|d}ytji|}Wn9tjk
r|jdrin||dddfSXtj||d\}}|rg|D]}|j	|^q}nj
dtj|j
jtj|d|}j
j|||||dfS(NRviRscomparing with %s
R}i(RRRRRRGRRRRRDR5RR4t
pushbufferRRt	popbuffer(RRytsbranchRRRRt	commoninc(RRR4(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytgetincomings 
%

c	@stjjdd\}}|d}tj|d\}}|krytji|}Wn6tjk
rjdrn||ddfSXj	dt
j|n"dkr||ddfS}|ks
dk	r|krd}n}|rDg|D]}j|^q&}nj
jtj|d|d|}j
j||||fS(Nsdefault-pushRviRscomparing with %s
RR(RRRRRRRRGRRDR5RRR4RRRR(	RRytdbranchRRtdotherRRR(RRRRtsotherRR4(s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytgetoutgoings0!
$	%
	
s1 or more incomings%d outgoingR	Rs%d incoming bookmarkss%d outgoing bookmarkssremote: %s
sremote: (synced)
(RRR(ARRRR
RiRRtUnsupportedMergeRecordsRtrecordtypesR/RRRRRR$R	R&R;R{RRuROR	R
RfRlRxRRRRkRRRR;RRRaRRRRRRtclosesbranchRR%R7tnewcommitphaseR;RR'RR#RRRtsummaryhooksRtsummaryremotehookstmissingRtsummary(0R4RRRRtpnodeR^RmRPRRbRRkR	RRZRbRRR4RR`R[RuRR]tcleanworkdirtpendingphaseRRR8Rttroublet
numtroublet
troublemsgt
needsincomingt
needsoutgoingR@RRRRRRRRRtcounts((RRRRRRR4s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR?s@

)
("
*	


1!!		 (#


#
%	
!	 !#Rs	force tagsmake the tag localsrevision to tagRxsremove a tags8[-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...c	O@sd}}z|j}|j}d}g|f|D]}|j^q9}t|tt|krtjtdnx?|D]7}	t	j
||	d|	stjtdqqW|jdr|jdrtjtdn|jdr|d}n|jd}
|jdr|jd	rQd	}nd
}x|D]}	|j|	stjtd|	n|j|	|kr^|d
krtjtd|	qtjtd
|	q^q^Wd}|
sbddj
|}
qbnQ|jdsbx?|D]4}	|	|jkr'tjtd|	q'q'Wn|jd	s|jj\}}
|
tkrtjtdn|j}|jdr|r||krtjtdqnt	j||j}|
s3ddj
|t|f}
n|jd}|rZtj|}n|jdrrd}nd}tjd||}|jdrt	j||jtkrtjtdn|j|||
|jd	|jd|d|Wdt||XdS(sadd 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.

    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 uniqueRs/tag names cannot consist entirely of whitespaceRRxs#--rev and --remove are incompatibleR[RRstag '%s' does not existstag '%s' is not a global tagstag '%s' is not a local tagRsRemoved tag %ss, RIs)tag '%s' already exists (use -f to force)suncommitted merges;working directory is not at a branch head (use -f to force)sAdded tag %s for changeset %sRas
tag.removestag.addRscannot tag null revisionRdRN(RRR ROR;R|RRRR+RPRttagtypeRR$RRRR
RRRR5RRRRRRR(R4Rtname1RnRRR trev_RROR[texpectedtypeRRRRRaRR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyROsx*
&

	
 
"	-c	K@s-|jd|}|j}d}xt|jD]\}}||}d}	d}|j|dkr|d}	d}n|j|jdd|d|	d	d
tj|d}
|j	|j
d|
|jj||d|	|j	|j
o|d
d|d|	|jdq4W|jdS(slist repository tags

    This lists both regular and local tags. When the -v/--verbose
    switch is used, a third column "local" is printed for local tags.
    When the -q/--quiet switch is used, only the tag name is printed.

    Returns 0 on success.
    R$R8stags.normalRs
tags.localRs%sRaRis %5d:%ssrev nodeRs %ss
N(RRRttagslistRRRRRRmR?RRRARR(R4RRRRRRROthnRaR((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR$s&		

Rs	[-p] [-g]cK@s4tj|||}|j|d|jdS(s6show the tip revision (DEPRECATED)

    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.

    This command is deprecated, please use :hg:`heads` instead.

    Returns 0 on success.
    RN(RR5RLR(R4RRRB((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRstunbundles6update to new branch head if changesets were unbundleds[-u] FILE...cO@s|f|}|j}xu|D]m}tj||}tj|||}t|tjr?|jd}z{y3tj	|||dddd|}	|j
WnAtjk
r}
tj
td||
fdtdnXWd|r|jnXg|	jd	D]}|jd
d^q}tj|}
q!t|tjrutj
tddtd
q!|j|dd|}
q!WWdQXt|||
|jdddS(sapply 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.
    RRR/sbundle:s%s: unknown bundle feature, %sRusEsee https://mercurial-scm.org/wiki/BundleFeature for more informationNRtreturnis3packed bundles cannot be applied with "hg unbundle"s$use "hg debugapplystreamclonebundle"R(R RR2RR4R5R
R6RetapplybundleRRtBundleUnknownFeatureErrorRRRRTRRtcombineresultsR0tstreamcloneapplierRSRIR(R4Rtfname1tfnamesRRRR:RoRRRRBRE((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyRs6




)#s^update|up|checkout|cos'discard uncommitted changes (no backup)tchecksrequire clean working directorys[-c] [-C] [-d DATE] [[-r] REV]c	
C@sM|r$|r$tjtdn|dks<|dkrE|}n|ro|dk	rotjtdn|r|rtjtdn|jtj||rtj|||}n|}tj	|||j
}|rtj|dtn|j
jdd|dtj||||d	|d
|SWdQXdS(supdate working directory (or switch revisions)

    Update the repository's working directory to the specified
    changeset. If no changeset is specified, update to the tip of the
    current named branch and move the active 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 revisionR8s'you can't specify a revision and a dates-cannot specify both -c/--check and -C/--cleanR!R4RRRRN(RRRRRRtclearunfinishedRwR+RRRRR4RRRC(	R4RRRRRaRRRG((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR-s$:	

R_cC@s
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 https://mercurial-scm.org/wiki/RepositoryCorruption
    for more information about recovery from corruption of the
    repository.

    Returns 0 on success, 1 if errors are encountered.
    (RR_(R4R((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyR_scK@s|jd|}|j|jdtdtjtd}|js`|j|n|jr|jtdng}g}g}xYt	j	D]K\}}|j
||j
t	j|pd|j
t	j
|qW|jd}	|rdtd|D}
td	td
g}xt|||D]\}}
}|	j|	j|jd|
||jr|	jd||n|	jd
||	j|jo|
dd|
|jrG|	jdqGqGWn|	j|jdS(s(output version and copyright informationRLRs'Mercurial Distributed SCM (version %s)
s(see https://mercurial-scm.org for more information)

Copyright (C) 2005-2016 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.
s
Enabled extensions:

Rs
  %%-%ds  cs@s|]}t|VqdS(N(R;(RRO((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pys	<genexpr>stexternaltinternalRs%s  Rs%ss
N(RRRRR5RLR?RRARRt
moduleversionRRRRRRmRR(R4RRtlicenseRntverstisinternalsRtmoduleR*R3tplacesROR@Rk((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytversion_s@

			
"
		
cC@seg|D]}|tkr|^q}|rT|jtd|dj|fntj|dS(s3Load command functions from specified cmdtable
    s&extension '%s' overrides commands: %s
RN(R_R/RRR(R4RtcmdtableR>t	overrides((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pytloadcmdtables
%(t
__future__RRR}RRRRRCRzR9RRJti18nRRRRRRRRR8RR	R
RRR
RRRRRRRRRRRRRRRRRRR RR!R
R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1R2R3R4RR5RR_R'RlRRGRRct
dryrunoptsRYtwalkoptst
commitoptstcommitopts2t
formatteroptsttemplateoptstlogoptsRt
diffwsoptst	diffopts2t
mergetooloptstsimilarityoptstsubrepooptstdebugrevlogoptsRRRRRRRR"RNR	RyRRRRRRBRRRR0R8R7RNRRRTR\RaRkRRRRRRRRRRRRRHRMRORNRqRRRRRRRRRR+R9R:R<RBRQRURdRfRRiRjRoRR}RRRRR	R
RlRRRRR6RIRRSR^RxRKR`RRxR~RRRRR$RRRR_RR(((s6/usr/lib/python2.7/dist-packages/mercurial/commands.pyt<module>sj.1																								F	%		0HzA	<i		;	6		!f	x	A	dd5'
&7	<!-!
!-	"4	a%'
!c!	Dtf<'!!			U	4!/'OR	!KB8'%
A		@?	
T+G7		>A!3C!U		c			e505xK	(4
		!*3x*!m!	+!O"+