
    6h?                   :   S SK Jr  S SKrS SKrS SKrSSKJr  SSKJrJ	r	J
r
JrJr  SSKJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJ r J!r!J"r"J#r#J$r$J%r&J'r'J(r(J)r)J*r*J+r,J-r.J/r/J0r0J1r1J2r2J3r3J4r4J5r5J6r6J7r7J8r8J9r9J:r;J<r=J>r?J@r@JArBJCrC  SSKDJErF  SSKGJHrI  SS	KJJKrKJLrLJMrMJNrN  0 rO\OR                  \R                  R                  5        \OR                  \R                  R                  5        \5R                  " \O5      rH\5R                  rRS
SS\" S5      \" S5      4SSS\" S5      \" S5      4SSS\" S5      4SSS\" S5      4SSS\" S5      4SSS\" S5      \" S5      4SS/ \" S5      \" S 5      4SS!/ \" S"5      \" S#5      4SS$S\" S%5      4SS&S\" S'5      4SS(\R<                  \" S)5      \" S*5      4SS+\R                  \" S,5      \" S-5      4SS.S\" S/5      4SS0S\" S15      4SS2S\" S35      4SS4S\" S55      4S6S7S\" S85      4SS9S:\" S;5      4SS<S=\" S>5      \" S5      4/rT\R                  rU\R                  rV\R                  rW\R                  rX\R                  rY\R                  rZ\R                  r[\R                  r\\R                  r]\R                  r^\R                  r_\R                  r`\R                  ra\R                  rb\R                  rc\R                  rd\H" S?\U\HR                  S@SA9SB 5       rf\H" SC\W\c-   \U-   \" SD5      \HR                  S@S@SE9SF 5       rh\H" SG\b\c-   \W-   \U-   \" SD5      \HR                  S@SH9SI 5       ri\H" SJSKSLS\" SM5      \" SN5      4SSOS\" SP5      4SSQS\" SR5      4SSSTS\" SU5      4SVSWS\" SX5      4SYSZS\" S[5      4S\S]S\" S^5      4S_S`S\" Sa5      4SbScS\" Sd5      4SeSfS\" Sg5      4SSh/ \" Si5      \" SN5      4SjSk/ \" Sl5      \" Sm5      4/\_-   \W-   \[-   \" Sn5      \HR                  S@S@SE9So 5       rk\H" SpSSqS\" Sr5      4SsStS\" Su5      \" Sv5      4SKSLS\" Sw5      \" SN5      4SxSyS\" Sz5      \" S5      4/\c-   \W-   \" S{5      \HR                  S|9S} 5       rm\H" S~SSS\" S5      4SSS\" S5      4SSS\" S5      4SSS\" S5      \" SN5      4SKSLS\" S5      \" SN5      4SSS:\" S5      4/\a-   \W-   \X-   \Y-   \" S5      \HR                  S|9GSS j5       rnGSS jro\H" SSKSS:\" S5      4SSS:\" S5      4SSS:\" S5      4SShS:\" S5      4SSS:\" S5      4SbSS\" S5      \" S5      4SSS:\" S5      4/\" S5      \HR                  S|9         GSS j5       rq\H" SSYSS:\" S5      4SKSLS\" S5      \" SN5      4S\SS:\" S5      4SSS\" S5      \" S5      4SSS:\" S5      4SeSS:\" S5      4/\[-   \" S5      \HR                  S|9S 5       rs\H" SSYSS\" S5      4SSS\" S5      4SKSL/ \" S5      4/\" S5      \HR                  S|9GSS j5       rt\H" SSSSS:\" S5      4SbSS:\" S5      4SKSL/ \" S5      4/\[-   \" S5      \HR                  \R1S9GSS j5       ru\H" SSSS\" S5      4SYSS\" S5      4SKSL/ \" S5      \" SN5      4SS/ \" S5      \" S5      4SS/ \" S5      \" SN5      4SSSS\" S5      4SxSyS\" S5      \" S5      4/\V-   \" S5      \HR                  S|9S 5       rv\H" SSSS\" S5      \" S5      4SKSLS\" S5      \" SN5      4SSS\" S5      4/\W-   \[-   \" S5      \HR                  S@\R1S9S 5       rw\H" SSSS\" S5      4SVSS\" S5      \" SN5      4SKSL/ \" S5      \" SN5      4SS/ \" S5      \" S5      4SSS\" S5      4SSS\" S5      4SSS\" S5      4/\V-   \" S5      \HR                  S@S@S9GSS j5       ry\H" SSSGS\" S5      4SSS\" S5      4SSS\" S5      4SSS\" S5      4SSS\" S5      4SSS\" S5      4SSS\" S5      4SSS\" S5      4/\W-   \X-   \Y-   \c-   \" SD5      \HR                  S@S@SE9S 5       r{S r|\H" SSVSS\" GS 5      4SGSS\" GS5      4SSS\" GS5      4SeGSS\" GS5      4SGSS\" GS5      4SGSS\" GS	5      4SGS
S\" GS5      4SGSS\" GS5      4/\[-   \" GS5      \HR                  S@\R1GS9GS 5       r~\H" GS\U\HR                  S@SA9GS 5       r\H" GSSGSS\" GS5      4SGSS\" GS5      4SGSS\" GS5      \" SN5      4SYSS\" GS5      4/\W-   \U-   \" GS5      \HR                  S|9GS 5       r\H" GS/ \" GS5      \HR                  S@GS9GSGS  j5       r\H" GS!SGS"S\" GS#5      4/\" GS$5      \HR                  S@GS9GSGS% j5       r\H" GS&SKSL/ \" GS'5      \" SN5      4SGS(S\" GS)5      \" GS*5      4SGS+S\" GS,5      \" GS-5      4SbGS.S\" GS/5      \" SN5      4SGS0S:\" GS15      4/\^-   \`-   \W-   \c-   \" GS25      \HR                  S@S@\R1GS39GS4 5       r\H" GS5GS6GS7S\" GS85      \" GS95      4SSS\" S5      \" S5      4SGS:S\" GS;5      4SKSL/ \" GS<5      \" SN5      4/\^-   \[-   \" GS=5      \HR                  S@\R1GS>9GS? 5       r\H" GS@SKSLS\" GSA5      \" SN5      4GSBGSCS\" GSD5      4/\W-   \[-   \c-   \" SD5      \HR                  \R1S9GSE 5       r\H" GSSSS\" S5      4/\W-   \U-   \" S5      \HR                  S@S@SE9GSF 5       r\H" GSGSKSL/ \" GSH5      \" SN5      4SSS\" GSI5      \" SN5      4SGS+S\" GSJ5      4SbGSS:\" GSK5      4SGSLS:\" GSM5      4SS?S:\" GSN5      4SSS:\" S5      4SGSOS\" GSP5      4SSS\" GSQ5      4SYSS:\" GSR5      4GSSGSTS:\" GSU5      4SGSVS:\" GSW5      4/\Y-   \a-   \U-   \" GSX5      \HR                  S|9GSY 5       rE\=GR                  " GSGGSZS@S@S@\GR                  \" GS[5      GS\9  \H" GS]GSBGSCS\" GS^5      4SSS\" GS_5      4SGS&S\" GS`5      4SSSTS\" SU5      4SYSOS\" GSa5      4SGSbS\" GSc5      4SeGSdS\" GSe5      4S_SfS\" GSf5      4SKSL/ \" GSg5      \" SN5      4SGShS\" GSi5      4SVSWS\" SX5      4S\S]S\" S^5      4/\[-   \W-   \" GSj5      \HR                  S@\R1S9GSk 5       r%\H" GSlSKSLS\" GSm5      \" GSn5      4SxGSoS:\" GSp5      4SSSS:\" GSq5      4SbSS:\" GSr5      4/\\-   \" GSs5      \HR                  \R1S9GSt 5       r\H" S7SGSuS\" GSv5      4SbSS\" GSw5      4GSxGSyS\" GSz5      4SGS{/ \" GS|5      \" GS}5      4/\" GS~5      \HR                  S@\R1GS9GSGS j5       r\H" GSSKSLS\" GS5      \" SN5      4S_GSS\" GS5      4SGSS\" GS5      4SSS\" GS5      4SxGSS\" GS5      4GS6GSS\" GS5      4/\V-   \[-   \" GS5      \HR                  S@\R1GS9       GSGS j5       r\H" GSSsGSS\" GS5      \" GS5      4SSS\" GS5      \" GS5      4SSS\" S5      4SSS:\" S5      4SYSS\" GS5      4SSS\" GS5      4SGSS\" GS5      4SGSS\" GS5      4SSS\" GS5      4SStS\" GS5      \" S5      4SGSS\" GS5      4/\X-   \Y-   \b-   \" GS5      \HR                  S|9GSGS j5       r\H" GSSYSS\" GS5      4S_GSS\" GS5      4SSS\" GS5      \" GS5      4SKSL/ \" GS5      \" SN5      4GS6GSS:\" GS5      4SS/ \" GS5      \" S5      4/\]-   \V-   \c-   \" GS5      \HGR                  S|9GSGS j5       r\H" GS\V\" GS5      \HR                  S@S@S9GSGS j5       r\H" GSSKSLS\" GSA5      \" SN5      4GSBGSCS\" GSD5      4SYGSS\" GS5      4/\W-   \" GS5      \HR                  S|9GS 5       r\H" GSSYSOS\" GSa5      4SGSS\" GS5      4S\S]S\" GS5      \" GS5      4SGSS\" GS5      4GSxGSy/ \" GS5      \" GS5      4SKSL/ \" GS5      \" SN5      4SjSk/ \" Sl5      \" Sm5      4SGSS\" GS5      4SGSS\" GS5      4SVSW/ \" GS5      \" GS5      4SGS/ \" GS5      \" S5      4SS/ \" GS5      \" S5      4GS6GS7/ \" GS5      \" GS95      4GSGS/ \" GS5      \" SN5      4/\]-   \W-   \" GS5      \HR                  S@S@\R1GS39GS 5       r\H" GSSKSLS\" GS5      \" SN5      4SSS:\" GS5      4/\[-   \" GS5      \HGR"                  \R1S9GSGS j5       r\H" SSYSS\" GS5      4SKSLS\" GS5      \" SN5      4GSGSS\" GS5      4SS?S\" GS5      4/\a-   \" GS5      \HR                  S@SA9GSGS j5       r+\=GR                  " SSS@S@\" GS5      \)GR&                  \" GS5      \" GS5      GS9  \H" GSSYSS\" S5      4SKSL/ \" GS5      \" SN5      4S_GSS\" GS5      4GS6GSS:\" GS5      4SS/ \" GS5      \" S5      4/\]-   \V-   \c-   \" GS5      \HGR                  S|9GS 5       r\H" GSSKSLS\" GS5      \" SN5      4/\\-   \" GS5      \HR                  S@SH9GSGS j5       r\H" GS\[\" GS5      \HGR                  S@\R1GS9GSGS j5       r\H" GSSsGSS:\" GS5      4S\SS:\" GS5      4SSS:\" GS5      4SYSS:\" GS5      4SKSL/ \" GS5      \" SN5      4/\" GS5      \HR                  S|9GS 5       r\H" SSVGSS\" GS5      4SYSS\" GS5      4SGSS\" GS5      4SKSL/ \" GS5      \" SN5      4GS6GS7/ \" GS5      \" GS95      4SS/ \" GS5      \" S5      4SGSS:\" GS5      4/\V-   \" GS5      \HGR                  S@SA9GS 5       r\H" GSSSGSS\" GS5      4SSS\" GS5      4SGSS\" GS 5      4SGSS\" GS5      4SGS@S\" GS5      4SsGSS\" GS5      4GSBGSCS\" GS5      4SGSS\" GS5      4/\R                  -   \" GS5      \HR                  S|9GS	 5       r\H" GS
SYSS\" GS5      4SKSL/ \" GS5      \" SN5      4GS6GS7/ \" GS5      \" GS95      4SGSS\" GS5      4SS/ \" GS5      \" S5      4SGSS:\" GS5      4SGS/ \" GS5      4SGSS:\" GS5      4/\V-   \" GS5      \HGR                  S@SA9GS 5       r\H" GSGS/\HGR"                  S|9GS 5       r\H" GSSGSS\" GS5      4SYSS\" GS5      4/\c-   \W-   \U-   \" S5      \HR                  S@S@SE9GS 5       r\H" GSSGSS\" GS5      4SGSS\" GS 5      4SGSS\" GS!5      \" SN5      4SYSS\" GS"5      4/\W-   \U-   \" GS#5      \HR                  S|9GS$ 5       r\H" GS%SSSS\" GS&5      4SeSS\" GS'5      4SGS(S\" GS)5      4SVGS*S\" GS+5      4S_GS,S\" GS-5      4SGS.S\" GS/5      4/\a-   \W-   \[-   \" SD5      \HR                  S@SH9GS0 5       r\H" GS1SSSS\" GS25      4S\S]S\" GS35      \" GS5      4SKSLS\" GS45      \" SN5      4SGS5S\" GS65      4SSS\" GS75      4/\W-   \U-   \" GS85      \HR                  S|9GS9 5       r\H" GS:\USYSS:\" GS;5      4/-   \HGR"                  S|9GS< 5       r\H" GS=/ \[-   \R1\HR                  GS>9GS? 5       r\H" GS@SGSAS\" GSB5      \" GS5      4S\GSCS\" GSD5      4SGSE/ \" GSF5      4GSGGSHS\" GSI5      \" GS5      4SsGSJS\" GSK5      \" GSL5      4SSGSMS\" GSN5      \" GSO5      4SStS\" GSP5      \" Sv5      4S_GSQS\" GSR5      \" GSS5      4SGSTS\" GSU5      \" GS5      4SGSVS\" GSW5      \" GS5      4SGSXS\" GSY5      \" GS5      4SGSZS\" GS[5      4SGS\S\" GS[5      \" S-5      4SxGS]S\" GS^5      \" GS_5      4SGS`S\" GSa5      \" GSb5      4GScGSdS\" GSe5      4SGSfS\" GSg5      \" GS5      4SGShS\" GSi5      4/\c-   \" GSj5      \HGR                  S@S@GSk9GSl 5       r\H" GSmSSGS\" GSn5      4SVGSoS\" GSp5      4SGSqS\" GSr5      4SS]S\" GSs5      \" GS5      4S\SS\" GSt5      4SSS:\" S5      4GSxGSuS:\" GSv5      4SeSS\" GSw5      4SGSxS\" GSy5      \" GS5      4S_GSQS\" GSz5      \" GSS5      4SsGS{S\" GS|5      4SSS\" GS}5      4SGS~S\" GS5      4/\R                  -   \" GS5      \HR                  S|9GS 5       r:GSr\H" GSSSS\" GS5      4SGSS\" GS5      4SSGSS\" GS5      4SKGSS\" GS5      4S\GSS\" GS5      4SbSS\" GS5      4SVGSoS\" GS5      4SGSS\" GS5      4S_GS,S\" GS-5      4SxGS\\" GS5      4SGSS\" GS5      4GSBGSCS\" GSD5      4SSL/ \" GS5      \" SN5      4SGS.S\" GS5      \" SN5      4/\W-   \c-   \[-   \" SD5      \HR                  S@S@\R1GS39GS 5       r\H" GSSGSS\" GS5      4/GS\HR                  S@\R1GS>9GS 5       r\H" GSSYSS\" GS5      4SeGSS\" GS5      4SKSLS\" GS5      \" SN5      4SGSS\" GS5      4SSS\" S5      4SGSxS\" GS5      \" GS5      4/\Y-   \" GS5      \HR                  S|9GS 5       r\H" GS\[S\HR                  \R1S9GS 5       r>\H" GSSsGS{S\" GS5      4SGSS\" GS5      4/\\-   \" GS5      \HR                  S|9GS 5       r\H" GSSVGSS\" GS5      4/\" GS5      \HR                  S|9GS 5       r\H" GSSSS?S\" GS5      4SbGSS\" GS5      4SSS\" GS5      4GSxGSuS\" GS5      4S_GSQS\" GS5      \" GSS5      4SxGSS\" GS5      4SS]S\" GS5      \" GS5      4/\" GS5      \HR                  S|9GS 5       r\=GR                  " GSGSS@\;GRT                  \;GRV                  \" GS5      GS9  \H" GSSSS\" GS5      4SbGSS\" GS5      4SSS\" GS5      4S\S]S\" GS35      \" GS5      4SKSLS\" GS5      \" SN5      4/\a-   \" GS5      \HR                  S@SA9GSGS j5       rP\H" GSGS/\HGR"                  S|9GS 5       rA\H" S4/ \[-   \HR                  S@\R1GS9GS 5       rGS rg(      )annotationsN   )_)hexnullidnullrevshortwdirrev),admin_commandsarchival	bookmarksbundle2bundlecacheschangegroupcmdutilcontextcopiesdebugcommandsdestutildiffutil	discoveryencodingerrorexchange
extensions	filemerge	formattergraphmodgrephbisecthelphg
logcmdutilmerge
mergestate
narrowspecobsoleteobsutilpatchphasespycompat	registrar
revsetlangrewriteutilscmutilservershelvestatetagsutilverifywireprotoserver)graft)command)dateutilprocutil
stringutilurlutil   Rs
   repository    s8   repository root directory or name of overlay bundle files   REPOs   cwds   change working directorys   DIR   ys   noninteractivesB   do not prompt, automatically pick the first choice for all prompts   qs   quiets   suppress output   v   verboses   enable additional outputs   colors9   when to colorize (boolean, always, auto, never, or debug)s   TYPE   configs5   set/override config option (use 'section.name=value')s   CONFIGs   config-files/   load config file to set/override config optionss   HGRCs   debugs   enable debugging outputs   debuggers   start debuggers   encodings   set the charset encodings   ENCODEs   encodingmodes   set the charset encoding modes   MODEs	   tracebacks%   always print a traceback on exceptions   times   time how long the command takess   profiles   print command execution profile   versions#   output version information and exit   h   helps   display help and exits   hiddenFs   consider hidden changesetss   pagers   autos2   when to paginate (boolean, always, auto, or never)   abortT)helpcategory	helpbasicc                   UR                  S5      n[        R                  " U5      nU(       d  [        R                  " [        S5      5      eUR                  (       d9  [        R                  " [        S5      UR                  -  UR                  5       S9eU(       a(  U R                  [        S5      UR                  -  5        gUR                  X5      $ )zabort an unfinished operation (EXPERIMENTAL)

Aborts a multistep operation like graft, histedit, rebase, merge,
and unshelve if they are in an unfinished state.

use --dry-run/-n to dry run the command.
dry_run   no operation in progresss.   %s in progress but does not support 'hg abort'hints    %s in progress, will be aborted
N)getr   getunfinishedstater   
StateErrorr   	abortfunc
InputError_opnamerN   status)uirepooptsdryrun
abortstates        4/usr/lib/python3/dist-packages/mercurial/commands.pyabortr\      s     XXi F++D1Jq!<=>>CD%%' "
 	
 
		23z7I7IJ	
 	))r>   s   adds   [OPTION]... [FILE]...)rH   rI   	inferrepoc           
        UR                  5          UR                  R                  U5         [        R                  " US   U[
        R                  " U5      5      n[        R                  " USS9n[        R                  " XUSUS40 UD6nU=(       a    S=(       d    SsSSS5        sSSS5        $ ! , (       d  f       O= fSSS5        g! , (       d  f       g= f)aP  add 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.
NTlegacyrelativevaluer>   Fr   r   )
wlockdirstatechanging_filesr/   matchr+   byteskwargsgetuipathfnr   add)rV   rW   patsrX   muipathfnrejecteds          r[   rg   rg      s    f 
t}}33D9MM$t*dH,@,@,FG&&tF;;rC5IDI~A"	 :999s#   CA3B3 	C3
C	=C
C	   addremove)rH   r]   c           	        [         R                  " U5      nUR                  S5      (       d  SUS'   UR                  5          UR                  R                  U5         [        R                  " US   X#5      n[        R                  " X#5      n[        R                  " XS9n[        R                  " XSXc5      sSSS5        sSSS5        $ ! , (       d  f       O= fSSS5        g! , (       d  f       g= f)a  add 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.
s
   similaritys   100Nr_   r>   )r+   re   rO   ra   rb   rc   r/   rd   anypatsrf   	addremove)rV   rW   rh   rX   matcherrelativerj   s          r[   ro   ro     s    J %D88M""$]	t}}33D9--T
D7??4.&&tJ  XD	 :999s%   C'AC:	C'
C	C''
C5s   annotate|blame   r   revs   annotate the specified revisions   REV   follows8   follow copies/renames and list the filename (DEPRECATED)s	   no-follows   don't follow copies and renames   a   texts   treat all files as text   u   users   list the author (long with -v)   f   files   list the filename   d   dates   list the date (short with -q)   n   numbers"   list the revision number (default)   c	   changesets   list the changeset   ls   line-numbers(   show line number at the first appearance   skips$   revset to not display (EXPERIMENTAL)   Ls
   line-ranges2   follow line range of specified file (EXPERIMENTAL)s
   FILE,RANGEs3   [-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...c                  ^^^.^/^0^1 [         R                  " T5      mTR                  S5      nU(       a5  TR                  S5      (       a  [        R                  " [        S5      5      eU(       a&  U(       a  [        R                  " [        S5      5      eU(       d&  U(       d  [        R                  " [        S5      5      eTR                  S5      (       a  STS'   TR                  S	5      (       dG  TR                  S
5      (       d1  TR                  S5      (       d  TR                  S5      (       d  STS'   TR                  S5      SLnU(       aK  TR                  S
5      (       d5  TR                  S5      (       d  [        R                  " [        S5      5      eTR                  S5      nU(       a  [        R                  " TU/S5      m[        R                  " TU5      m.U(       d+  [        R                  " TT5       VVs/ s H  u  pxUPM	     nnnU R                  S5        U R                  ST5      n	U R                  (       a  [         R                  m1OS m1U R                  (       a  [         R"                  n
O[         R$                  n
T.R'                  5       c,  TR                  S
5      (       a  U.4S jnOU.4S jnU.UU14S jnOSR(                  nT1nS	SS U R*                  4SSS U4SSS U4SSS [,        R.                  " U
5      4SSS [         R0                  4S S!S" [         R0                  4/nSS
SSS#.m0U	R3                  5       (       a  S$ nOS% nU	R5                  5       m/U VVVVs/ s H@  u  nnnnTR                  T0R                  X5      5      (       d  UT/;   d  M5  U" UU5      U4PMB     nnnnnUS&   S&   S'4US&'   SR7                  U/U0U4S( jU 5       5      nS) n[        R8                  " T.UTUS*9nTR                  S5      (       + n[:        R<                  " U TSSS+9nTR                  S,5      nU(       a  [        R>                  " TU5      n[        R@                  " TSS-9nT.RC                  U5       GH  nT.U   nU	RE                  5         U	RG                  US.9  TR                  S/5      (       d:  URI                  5       (       a%  U	RK                  [        S05      U" U5      -  5        Mx  U	RM                  S1S2S39nURO                  UUUS49nU(       a\  [Q        [        R                  " TT5      5      S&   u  nu  n n![S        U5       V"V#s/ s H  u  n"n#U U"s=::  a  U!:  d  M  O  M  U#PM     nn"n#U(       d  URU                  5         GM  / n$/ n%U H  u  n&nU V's/ s H  n'U&" U'5      PM     n(n'UR3                  5       (       a`  U( V)s/ s H  n)[V        RX                  " U)5      PM     n*n)[[        U*5      n+U$R]                  U* V,s/ s H  n,USU+U,-
  -  -   S5-   PM     sn,5        OU$R]                  S5/[_        U(5      -  5        U%R]                  U(5        M     [a        [a        U$6 [a        U%6 U5       H  u  n&n-n'URE                  5         URc                  U'Rd                  S69  URf                  " US'R7                  U&5      /U-Q76   U'Rh                  (       a  S7nOS8nURg                  S9UU'Rj                  5        M     US:   Rj                  Rm                  S;5      (       d  URK                  S;5        URU                  5         GM     U	RU                  5         gs  snnf s  snnnnf s  sn#n"f s  sn'f s  sn)f s  sn,f )<a  show changeset information by line for each file

List changes in files, showing the revision id responsible for
each line.

This command is useful for discovering when a change was made and
by whom.

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.

.. container:: verbose

   Use -L/--line-range FILE,M:N options to filter the output to the lines
   from M to N in FILE. This option is incompatible with --no-follow and
   cannot be combined with file pattern arguments. When combined with --rev
   the line ranges refer to the state of the file at the requested revision.

.. container:: verbose

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions. See also :hg:`help templates`.

  :lines:   List of lines with annotation data.
  :path:    String. Repository-absolute path of the specified file.

  And each entry of ``{lines}`` provides the following sub-keywords in
  addition to ``{date}``, ``{node}``, ``{rev}``, ``{user}``, etc.

  :line:    String. Line content.
  :lineno:  Integer. Line number at that revision.
  :path:    String. Repository-absolute path of the file at that revision.

  See :hg:`help templates.operators` for the list expansion syntax.

Returns 0 on success.

   line_ranges	   no_follows-   --line-range is incompatible with --no-follows3   cannot combine filename or pattern and --line-ranges,   at least one filename or pattern is requiredrt   Trz   rx   r   r|   r~   s   line_numberNs(   at least one of -n/-c is required for -lrs      nowarns   annotatec                    U S S $ )N    )hs    r[   shorthexannotate.<locals>.shorthex  s    Sb6Mr>   c                d   > U [         :X  a!  STR                  5       R                  5       -  $ SU -  $ )N   %dr
   p1revr   ctxs    r[   	formatrevannotate.<locals>.formatrev  s+    '> 3668<<>11 3;&r>   c                d   > U [         :X  a!  STR                  5       R                  5       -  $ SU -  $ )Ns   %d+s   %d r   r   s    r[   r   r     s+    '>!CFFHLLN22!C<'r>   c                   > U TR                   R                  :X  a0  ST" [        TR                  5       R	                  5       5      5      -  $ ST" U 5      -  $ )Ns   %s+   %s )nodeconstantswdirhexr   r   node)r   r   rW   r   s    r[   	formathexannotate.<locals>.formathex  sG    D&&...SVVX]]_)= >>>++r>   r       c                6    U R                   R                  5       $ N)fctxuserxs    r[   <lambda>annotate.<locals>.<lambda>      !&&++-r>   c                B    [         R                  " U R                  5      $ r   )r/   intrevr   r   s    r[   r   r     s    !7r>      nodec                T    [        [        R                  " U R                  5      5      $ r   )r   r/   binnoder   r   s    r[   r   r     s    #gooaff&=">r>   c                6    U R                   R                  5       $ r   )r   dater   s    r[   r   r     r   r>      pathc                6    U R                   R                  5       $ r   )r   pathr   s    r[   r   r     r   r>      lineno   :c                    U R                   $ r   )linenor   s    r[   r   r     s    AHHr>   )rs   r   r   r   c                   ^ ^ UU 4S j$ )Nc                    > T" T" U 5      5      $ r   r   )r   fmtrO   s    r[   r   ,annotate.<locals>.makefunc.<locals>.<lambda>)  s    SQ[r>   r   rO   r   s   ``r[   makefuncannotate.<locals>.makefunc(  s	    ((r>   c                    U $ r   r   r   s     r[   r   r   -  s    Jr>   r   r>   c              3     >#    U  H7  u  pp4TR                  TR                  X5      5      (       d  UT;   d  M3  Uv   M9     g 7fr   rO   ).0fnseprO   r   datahint	opnamemaprX   s        r[   	<genexpr>annotate.<locals>.<genexpr>7  s=      !&BS88IMM")**bHn 	!&s
   2A	Ac                6    [         R                  " SX4-  5      e)Ns   %s: %s)r   rS   r   ys     r[   badannotate.<locals>.bad=  s    yA6122r>   )badfn)section
whitespacer   r_   r   rv   s   %s: binary file
s   liness   {rev}: {line}tmpl)followskiprevsdiffopts   %s)r   s   * %ss   : %ss   line   
)7r+   re   rO   r   rS   r   r/   unhidehashlikerevsr#   	revsingle_parselinerangeoptpagerr   	debugflagidentityquietr9   	shortdatedatestrr   __mod__	shortuserr4   	cachefuncbytestrisplainr   joinrd   r)   difffeatureoptsrevrangerf   walk	startitemdataisbinaryplainnestedannotatelist	enumerateendr   colwidthmaxappendlenzipr   r   writeskiptextendswith)2rV   rW   rh   rX   	linerange
linenumberr   fname_rangesrootfmdatefuncr   r   opmapr   r   r   rO   r   funcmapfieldsr   ri   r   r   r   rj   absr   fmlines_fname
line_startline_endnolineformatspiecesfnlr   sizesmlwpr   r   r   r   s2    ` `                                          @@@@r[   r   r   a  s   v %D'ITXXl++>?
 	
 	DE
 	
 	=>
 	
 xx	 W HHW&&!!!!Y.)5J,'')$$q!LMNN
((6
C
))$yA


tS
)C #-"?"?d"K
"K "K 	 

 HH[\\+t,F	||$$	 
xx%%##
wwy88L!!'(	, 	, MM		 
$/>	7C	$>	J	$/1IJ	$/1A1AB	D,h.>.>?E !	I ~~	)
	  H "'!&BS#88IMM")**bHn 	"#s	S!!&  
 !*Q-%GAJYY !& F3 	c4S1A,''F$$
D+$H xx H&&tX6""4TBHxx{3xxx  T]]__LL/08C=@A]]8*:];Hx  
 -1--dD9..*F*Z
 !*% 0 0HB.h. .  0   FFHFAs$%u!1uA%zz||789q!**1-q9ZuMu!db1fo 5 =uMNwQ/0MM!  3=#v,>GAq!LLNJJAFFJ#HHVSXXa[-1-vvHHWc166* ? Ry~~&&u--HHUO
e h JJLk
NT &9Ms6   
]+:4]1
2]1
#]9;]9?]92]? ^^	s   archives	   no-decodes"   do not pass files through decoders   ps   prefixs%   directory prefix for files in archives   PREFIXs   revision to distribute   t   types   type of distribution to creates   [OPTION]... DEST)rH   c                &  ^	^
 UR                  S5      nU(       a  [        R                  " X/S5      n[        R                  " X5      m	T	(       d  [
        R                  " [        S5      5      eT	R                  5       n[        R                  " T	U5      n[        R                  R                  U5      UR                  :X  a  [
        R                  " [        S5      5      eUR                  S5      =(       d    [        R                   " U5      =(       d    SnUR                  S5      nUS:X  aa  US:X  a  [
        R                  " [        S	5      5      eUm
U	U
4S
 jnU(       d,  [        R                  R#                  UR                  5      S-   n[        R                  " T	U5      n[        R$                  " T	/ [&        R(                  " U5      5      n[        R*                  " UUUUUR                  S5      (       + UUUR                  S5      S9  g)a  create an unversioned archive of a repository revision

By default, the revision used is the parent of the working
directory; use -r/--rev to specify a different revision.

The archive type is automatically detected based on file
extension (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
:``txz``:   tar archive, compressed using lzma (only in Python 3)
:``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.
r   r   s/   no working directory: please specify a revisions%   repository root cannot be destinationtype   filesprefix   -s$   cannot archive plain files to stdoutc                 2   > [         R                  " T T5      $ r   )r   makefileobj)r   realdests   r[   r   archive.<locals>.<lambda>  s    w**39r>   s   -%h	no_decodesubrepos)r#  N)rO   r/   r   r#   r   r   rS   r   r   r   makefilenameosr   realpathrootr   	guesskindbasenamerd   r+   re   archive)rV   rW   destrX   r   r   kindr  rd   r   r   s            @@r[   r*  r*    s   z ((5/C
))$yA


t
)C@A
 	
 88:DT*D	ww*q!IJKK88FCx11$7C8DXXhFt|8""1%L#MNN9WW%%dii069F!!#v.FMM#r8#7#7#=>EHH[!!*%	r>      backout   merges,   merge with old dirstate parent after backout   commits4   commit if no conflicts were encountered (DEPRECATED)s	   no-commits   do not commits   parents4   parent to choose when backing out merge (DEPRECATED)s   revision to backout   e   edits    invoke editor on commit messagess   [OPTION]... [-r] REVc                    UR                  5          UR                  5          [        XX#40 UD6sSSS5        sSSS5        $ ! , (       d  f       O= fSSS5        g! , (       d  f       g= f)a  reverse 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)ra   lock
_dobackout)rV   rW   r   r   rX   s        r[   backoutr5    s<    j 
tyy{"D66 #{{{s!   AA	A
A	A
A*c           	       ^^ [         R                  " USSS/5        U(       a&  T(       a  [        R                  " [	        S5      5      eU(       d  TnU(       d  [        R                  " [	        S5      5      eUR                  S5      nU(       a  [        R                  " U5      US'   [         R                  " T5        [         R                  " T5        [        R                  " TU5      nUR                  5       mTR                  R                  5       u  pxTR                  R!                  TU5      (       d  [        R                  " [	        S5      5      eTR                  R                  T5      u  pU	TR"                  :X  a  [        R                  " [	        S5      5      eU
TR"                  :w  a  UR                  S	5      (       d  [        R                  " [	        S
5      5      eTR%                  US	   5      nXU
4;  a6  [        R                  " [	        S5      ['        U5      ['        T5      4-  5      eUnO7UR                  S	5      (       a  [        R                  " [	        S5      5      eU	nTR                  R)                  5       nTR+                  U5      n[,        R                  " T[/        U5      5      nUR                  S5      (       d  UT:w  a  TR1                  S5         SUR                  SS5      0nU R3                  US5         [4        R6                  " UTU   S9nS S S 5        TR9                  Xx5        S S S 5        [:        R<                  " TW5        UR>                  (       a%  TR@                  RC                  [	        S5      5        gOX[:        RD                  " TTSS9  TR                  RG                  UTRI                  5       5        [         RJ                  " U TU5        UR                  S5      (       a)  [	        S5      nU RC                  U['        T5      -  5        gU4S jnTR                  RM                  5       n[         RN                  " U TU/ [P        RR                  " U5      5      nU(       d  U RC                  [	        S5      5        g[         RT                  " TUXU5        U4S jnU RC                  [	        S5      U" U5      U" T5      4-  5        UR                  S5      (       a  UT:w  a  [:        RD                  " TUSS9  U RC                  [	        S5      U" U5      -  5        SUR                  SS5      0nU R3                  US5         [:        RV                  " TS   5      sS S S 5        $ g! , (       d  f       GNf= f! , (       d  f       GN_= f! , (       d  f       g= f)N	no_commitcommitr$       please specify just one revisions$   please specify a revision to backoutr   s-   cannot backout change that is not an ancestors'   cannot backout a change with no parentsparents    cannot backout a merge changesets   %s is not a parent of %ss*   cannot use --parent on non-merge changesetr-     uis
   forcemergetoolr>   )r:  s1   use 'hg resolve' to retry unresolved file merges
r   F
show_statss1   changeset %s backed out, don't forget to commit.
r   c                  > Sn[         R                  " S	SU0[        R                  " U5      D6nU(       d#  S[	        T5      -  n[         R                  " SUS9nUR                  X$R                  S5      UR                  S5      X6S9$ )
Nr-  editforms   Backed out changeset %sT)editrA  rx   r|   editorr   )r   getcommiteditorr+   	strkwargsr	   r8  rO   )rV   rW   messagerd   rX   rA  er   s          r[   
commitfunc_dobackout.<locals>.commitfunc  s    ## 

!)!3!3D!9
 05;>G''THEA{{XXg&(95  
 	
r>      nothing changed
c                V   > STR                   R                  U 5      [        U 5      4-  $ )Ns   %d:%s)	changelogr   r	   )r   rW   s    r[   nice_dobackout.<locals>.nice  s&    4>>--d3U4[AAAr>   s$   changeset %s backs out changeset %s
s   merging with changeset %s
   tip),r   check_incompatible_argumentsr   rS   r   rO   r9   	parsedatecheckunfinishedbailifchangedr#   r   r   rb   parentsrM  
isancestorr   lookupr	   branchbranchheadsr/   r   transactionconfigoverridemergemodback_out
setparentsr"   
_showstatsunresolvedcountrV   rU   clean	setbranchcurrenttransactionreverttipr8  r+   re   commitstatusr$   )rV   rW   r   r   rX   r   r   op1op2r   p2r  r:  rX  bheadsrctx	overridesstatsmsgrI  re  newnoderN  s    ``                    r[   r4  r4  >  s   (({Xw<OP
tq!DEFFq!HIJJ88FD))$/VD!$


tS
)C88:D}}$$&HC>>$$T3//>?
 	
 ^^##D)FB	T[[q!KLMM	T[[xx!!""1%H#IJJKKX'H""-.%(E$K1HH  88H""?@   ]]!!#Ff%FT3v;/D88Gj)/&#1FGI""9j9 ))#d6lC :OOC%	 *
 	dE"  GGNNGH 	 ! 	t.(?(?(ABr4&xxEF
		#d#$
 ..


Cnn
D*b("6"6t"<G 
		!()*w<B II	
23=$t*
%	& xxSD[
su-
		!23d7mCD+TXXfc-BC	y*588DL) 65q :9 *)p 65s0   -'VV-V(V0
V	V
V-0
V>   bisect   resets   reset bisect state   g   goods   mark changeset good   b   bads   mark changeset bad   ss   skip testing changesets   extends   extend the bisect ranges   commands$   use command to check changeset states   CMD   Us   noupdates   do not update to targets   [-gbsr] [-U] [-c CMD] [REV]c                0  ^
 / nUS;   aB  U R                  [        S5      5        UnUR                  U5        US:X  a  SnOFUS:X  a  SnO=SnO:U(       a  [        R                  " [        S5      5      eUb  UR                  U5        U[        U5      U	UUUS.nU Vs/ s H  oU   (       d  M  UPM     nn[        U5      S	:  a7  [        R                  " [        S
5      [        [        U5      SS 5      -  5      eU(       a  [        R                  " U5        g[        R                  " U5      nU(       a  [        R                  " X5      nUS   nUS   nU(       a5  U(       a.  UR                  SUU5      nUUR                  SUU5      -  nUU-  nU Vs/ s H  nUR                  R!                  U5      PM      nnOUR#                  S5      /nU(       d  U(       d  U(       aj  U(       a  US==   U-  ss'   O)U(       a  US==   U-  ss'   OU(       a  US==   U-  ss'   [        R$                  " UU5        US   (       a
  US   (       d  gS%U
4S jjn[        R&                  " X0 5      nU(       Ga  S	nT
(       a
   US   S   nOLUR,                  R/                  5       u  nnUUR0                  :w  a  [        R*                  " [        S5      5      eU(       a<  U(       d  [        R                  " [        S5      5      eUUS      R!                  5       n[        R2                  " UUU5         U(       Ga5  U/US'   [        R$                  " UU5        U R5                  US[7        U5      0SS9nUS:X  a  SnO[US:X  a  SnORUS:X  a"  [        R8                  " [        S5      U-  5      eUS:  a"  [        R8                  " [        S5      U-  5      eSnUU   R                  U5        UU   n[:        R<                  " U US5      nU R?                  [        S5      UU4-  5        [        R@                  " U5        [        RB                  " UU5      u  nnn US   nU" UUSS 9  U(       a  GM5  SSS5        [        RD                  " XUUUW 5        g[        R@                  " U5        [        RB                  " UU5      u  nnnU	(       a  U(       d  [        RF                  " UUUU5      n!U!bu  U RI                  [        S!5      [:        R<                  " U U!S5      -  5        U!R!                  5       /US'   [        R$                  " UU5        U" UU!R!                  5       5      $ [        R*                  " [        S"5      5      eUS:X  a  [        RD                  " XUUUU5        g[        U5      S	:X  d   eUS   nS#u  n"n#U#U::  a  U"S	-   U#S-  n#n"U#U::  a  M  UR                  RK                  U5      n[:        R<                  " XU   S5      nU RI                  [        S$5      UUU"4-  5        U/US'   [        R$                  " UU5        U" UU5      $ s  snf s  snf ! [(         a     [        R*                  " [        S5      5      ef = f! , (       d  f       GN= f)&a	  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 revisions.bisect` for more about the `bisect()` predicate.

Returns 0 on success.
)rs  ru  rq     inits)   (use of 'hg bisect <cmd>' is deprecated)
rs  Tru  s   incompatible argumentsN)s   --bads	   --commands   --extends   --goods   --resets   --skipr   s   %s and %s are incompatibler      s   (%ln)::(%ln)   .r   c                   > T(       a  g[         R                  " U 5        [         R                  " U 5        [        R                  " XUS9$ )zcommon used update sequenceNr>  )r   rS  rT  r"   ra  )rW   r   r?  noupdates      r[   	mayupdatebisect.<locals>.mayupdate_  s6    %d#xxz::r>   s   currents>   current bisect revision is unknown - start a new bisect to fixs"   current bisect revision is a merge   empty revision setr   s   HG_NODEs   bisect_check)environ
blockedtag}      s   failed to execute %ss	   %s killedrp  s   changeset %s: %s
Fr>  s!   Extending search to changeset %s
s   nothing to extend)r   rz  s:   Testing changeset %s (%d changesets remaining, ~%d tests)
)T)&warnr   r   r   rS   boolr   tuplesortedr    
resetstate
load_stater#   r   revsrM  r   rW  
save_statechangesetdisplayerLookupErrorrQ   rb   rU  r   restore_statesystemr   Abortr   format_changeset_summaryrU   
checkstatebisectprintresultextendranger   r   )$rV   rW   positional_1positional_2r8   resetgoodr   r   extendr}  r   cmdincompatiblesr   enabledr2   r  	goodnodesbadnodes
candidatesinodesr~  	displayer
changesetsr   ri  rU   
transitionr   summarybgood	extendctxtestssizes$             `                         r[   r  r    s   d C;;
?@A

< '>DF]CE	q!:;<<		!

<  7mM (<-Q+;q-G<
7|a+,uVG_Qq5I/JJ
 	
 4 t$E
""4-'N	=?IxHJ$))OXyIIJ$D156A$$Q'6T"# sd'Ne#N&MU"M'Ne#N4'g5=; --b;I
Z(+ }},,.HD"T[[ &&q)N'OPP&&q)>'?@@b	?'')D""45%)Fj!""4/'T3. # 
 S=!(Jq[!(Js]++a(?&@7&JKKaZ++ao&?@@!'Jj!((.4j!::2sIN		!12gz5JJK""5)+2>>$+F(z5Qx$7; * 6> 	BeYuEu &nnT59E:t++D%EI$;<66r9iPQ &/^^%5$6j!""4/ y~~'788q!5677QBeYtD5zQQxtj !)TAX4E j nn  &222Cy)L
: 
E*	+	
 "Fj4't$$U =* 7>  &&5  65s+   Y-Y%Y Y 0D;Z*Z
Zs   bookmarks|bookmark   forces   revision for bookmark action   deletes   delete a given bookmark   ms   renames   rename a given bookmarks   OLD   is   inactives   mark a bookmark inactive   lists   list existing bookmarkss#   hg bookmarks [OPTIONS]... [NAME]...c                   UR                  S5      nUR                  S5      nUR                  S5      n[        R                  " USSS5      nU(       a  [        R                  " X7S/5        OU(       d  U(       a  SnOU(       a  SnOSn[        R                  " USSS/5        U(       d%  US;   a  [        R
                  " [        S	5      5      eUS
;   Ga  UR                  5          UR                  5          UR                  S5       nUS:X  aD  [        R                  " UR                  R                  U5      n[        R                  " XU5        GO/US:X  a  U(       d  [        R
                  " [        S5      5      e[!        U5      S:  a  [        R
                  " [        S5      5      eUR                  R                  US   5      n	[        R"                  " XXS   XF5        OUS:X  a  [        R$                  " XX%XF5        O|US:X  av  [!        UR                  5      S:X  a  U R'                  [        S5      5        OBUR(                  (       d  U R'                  [        S5      5        O[        R*                  " U5        SSS5        SSS5        SSS5        gUS:X  ar  [        R                  " UR                  R                  U5      nU R-                  S[        R.                  " U5      5       n
[        R0                  " XX5        SSS5        g[        R2                  " S[        R4                  " U5      -  5      e! , (       d  f       N= f! , (       d  f       N= f! , (       d  f       g= f! , (       d  f       g= f)a  create 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.

Specifying bookmark as '.' to -m/-d/-l options is equivalent to specifying
the active bookmark's name.

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

.. container:: verbose

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions such as ``{bookmark}``. See also
  :hg:`help templates`.

  :active:  Boolean. True if the bookmark is active.

  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 @

  - print only the active bookmark name::

      hg book -ql .
forcer   inactivedeleterenamer   rg   >   rg   r  s   bookmark name required>   rg   r  r  r     bookmarks   new bookmark name requiredr   s"   only one new bookmark name allowedr   s   no bookmarks set
s   no active bookmark
N	   bookmarkss   invalid action: %s)rO   r   check_at_most_one_argrQ  r   rS   r   ra   r3  rZ  r+   maplist
_bookmarks
expandnamer   r  r   r  addbookmarksrU   _activebookmark
deactivater   re   printbookmarksProgrammingErrorsysbytes)rV   rW   namesrX   r  r   r  actiontroldnamer  s              r[   bookmarkr    s   T HHWE
((5/Cxx
#H**48VLF,,TE7C	#	((zHf;MNV00q!:;<<88ZZ\499;(8(8(E! (()C)CUK  518#**1-J+KLLZ!^**?@  //44T(^D  7!HeN5&&tUM:%t'1,IIa 567--IIa 789((.+ )F;\\, 
6	  !;!;UC\\,(<(<T(BCr$$Rr9 DC $$!H$5$5f$==
 	
7 )F(E;;\\0 DCsI   'M$8M
E:MMM$4M5
MM
M!	M$$
M25
N   branchs5   set branch name even if it shadows an existing branch   C   cleans'   reset branch name to parent branch names0   change branches of the given revs (EXPERIMENTAL)s   [-fC] [NAME]c                L   UR                  S5      nU(       a  UR                  5       nUR                  S5      (       dZ  U(       dS  U(       a  [        R                  " [	        S5      5      eU R                  SUR                  R                  5       -  5        gUR                  5          UR                  S5      (       a[  US   R                  5       nUR                  R                  X!R                  5       5        U R                  [	        S5      U-  5        GOlU(       Gad  [        R                  " XS5        U(       a!  [        R                  " XXB40 UD6sSSS5        $ UR                  S	5      (       dn  X!R!                  5       ;   a[  X!S   R#                  5        Vs/ s H  oUR                  5       PM     sn;  a'  [        R                  " [	        S
5      [	        S5      S9eUR                  R                  X!R                  5       5        U R                  [	        S5      U-  5        UR!                  5       R%                  5        H  u  pgpUS:w  d  M  U	(       a  M    SSS5        g   U R                  [	        S5      5        SSS5        gs  snf ! , (       d  f       g= f)a  set or show the current branch name

.. note::

   Branch names are permanent and global. Use :hg:`bookmark` to create a
   light-weight bookmark instead. See :hg:`help glossary` for more
   information about named branches and bookmarks.

With no argument, show the current branch name. With one argument,
set the working directory branch name (the branch will not exist
in the repository until the next commit). Standard practice
recommends that primary development take place on the 'default'
branch.

Unless -f/--force is specified, branch will not let you set a
branch name that already exists.

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.
r   ra  s*   no branch name specified for the revisions   %s
Nr{  s%   reset working directory to branch %s
r  r  s(   a branch of the same name already existss   use 'hg update' to switch to itrM   s&   marked working directory as branch %s
   defaultr   s>   (branches are permanent and global, did you want a bookmark?)
)rO   stripr   rS   r   r   rb   rX  ra   rb  rc  rU   r/   checknewlabelr   changebranch	branchmaprU  iterbranches)
rV   rW   labelrX   r  r  r  r   tcs
             r[   rX  rX  D  s   b 88E?D88GU""?@  	4==//112	88GJ%%'EMM##E+B+B+DEIIaABUJK!!$y9++BdJTJ 
 88G$$..2B)B$Z5G5G5I J5I5I JJ**EFAB  MM##E+B+B+DEIIaBCeKL #nn.;;=
a
?111 
, > II33 
 !K 
s8   )B/J">J J9BJJ!J+JJ
J#   branchess   actives8   show only branches that have unmerged heads (DEPRECATED)s   closeds   show normal and closed branchess$   show branch name(s) of the given revs   [-c])rH   intentsc                    UR                  S5      nSnU(       aJ  [        R                  " X5      nUR                  5       R                  nU Vs1 s H  o" U5      S   iM     nnU R                  S5        U R                  S[        R                  " U5      5      n	U	R                  n
[        UR                  5       5      n/ nUR                  5       R                  5        Hl  u  pnnUb  X;  a  M  SnU(       d6  [        UR                  5       R                  U5      5      n[        UU-  5      nUR!                  XU   UU(       + 45        Mn     UR#                  S SS9  U GH  u  nnnnU(       a	  U(       d  M  U(       a  S	nS
nO+U(       d  U(       d  M5  Sn[%        S5      nOSn[%        S5      nXR&                  R)                  5       :H  nU(       a  SnU	R+                  5         U	R-                  SSUUS9  UR/                  5       n[1        S[3        SU-  5      -
  [4        R6                  " U5      -
  S5      nSU-  S-   nU	R9                  U R:                  (       + SUUU
" UR=                  5       5      SUR?                  5       -  S9  U	RA                  US9  U	RC                  UU(       + US9  U R:                  (       d  U	RE                  U5        U	RE                  S5        GM     U	RG                  5         gs  snf )a  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.

.. container:: verbose

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions such as ``{branch}``. See also
  :hg:`help templates`.

  :active:  Boolean. True if the branch is active.
  :closed:  Boolean. True if the branch is closed.
  :current: Boolean. True if it is the current branch.

Returns 0.
r   Nr   r  Fc                B    U S   U S   R                  5       U S   U S   4$ )Nrz  r   r      r   )r  s    r[   r   branches.<locals>.<lambda>  s#    1qtxxz1Q41 >r>   T)keyreverses   branches.activer>   s   branches.closeds	    (closed)s   branches.inactives    (inactive)s   branches.currentr  r   r     r   r   s    %d:%s   rev nodes   log.changeset changeset.%sr   )activeclosedcurrentr   )$rO   r#   r   revbranchcache
branchinfor   r   r+   re   hexfuncsetheadsr  r  iteropenr  r   sortr   rb   rX  r   r   r   r   r   r   r   	condwriter   r   phasestrr   r   r   r   )rV   rW   r  r  rX   r  selectedbranchesgetbirr  r  allheadsbranchestagr  re  isclosedisactive	openheadsr   isopenr  noticer  r   padsizer   s                              r[   r  r    s   R 88E?D""4.##%00156AE!HQK6HH[	k8#7#7#=	>BjjG4::< HH%)^^%5%B%B%D!C'C,GDNN,55e<=II01H3ix<@A &E MM>MM&."S(F(&EF&E|_F(E~&F--//'E

E3e4ggib3us{++h.?.?.DDaHWny(
LCHHJ/#,,.@ 	 	
 	

s

xF
GDxxHHV
G '/H FFHm 7s   K;   bundles   exacts,   compute the base from the revision specifieds*   run even when the destination is unrelateds3   a changeset intended to be added to the destinations*   a specific branch you would like to bundles   BRANCHs   bases;   a base changeset assumed to be available at the destination   alls'   bundle all changesets in the repository   bzip2s   bundle compression type to usesD   [-f] [-t BUNDLESPEC] [-a] [-r REV]... [--base REV]... FILE [DEST]...c                   SnSU;   aH  US   n[         R                  " X5      nU(       a&  U(       d  [        R                  " [	        S5      5      eUR                  SS5      R                  5       n [        R                  " XSS9nUR                  R                  S
S5      n
UR                  S   nUS:X  a'  [        R                  " [	        S5      [	        S5      S	9eUR                  S5      nUR                  S5      (       a  U(       a  [        R                  " [	        S5      5      eU(       a  U R                  [	        S5      5        UR                  S5      (       a  U R                  [	        S5      5        [        /nOUR                  S5      (       ah  U(       a  [        R                  " [	        S5      5      eU(       a  U R                  [	        S5      5        UR                  SXU5      nU(       d  [        /nO.U(       a%  [         R                  " X5      nU(       d  [        /nOSn[         R"                  " U5      nU
(       a'  X;  a"  [        R$                  " [	        S5      U-  5      eUb  U(       a  [        R                  " [	        S5      5      eUR&                  nU Vs/ s H  nUR)                  U5      PM     nnU(       a"  U Vs/ s H  nUR)                  U5      PM     snOSn[*        R,                  " UUU5      nUR.                  nUR0                  nGOB[3        5       n[3        5       n[4        R6                  " XU5       GH  n[8        R:                  " U[        R<                  " U5      U5      nUb$  U Vs/ s H  nUU   R?                  5       PM     nnOSnUR@                  / 4n[8        RB                  " XUU5      u  nnU=(       a!    [        RD                  " URF                  U5      =(       d    Un[*        RH                  " UUUUR                  S5      SS9nURK                  UR.                  5        URK                  UR0                  5        GM     U(       d&  [L        RN                  " XU(       + =(       a    U5        gUR                  SU5      nU(       a7  [	        S5      n[	        S 5      [Q        U5      -  n[        R$                  " UUS	9eW(       a  [*        R,                  " UUUS!9nO[*        R,                  " UUS"9n[S        U5      Ul        US#:X  a  S$URT                  -   n Sn!O.US%;   a  S&n URT                  n!O[        RV                  " S'U-  5      e0 n"U RY                  S(S)URZ                  -   5      n#U#c  U RY                  S(S*5      n#U#b  U#U"S+'   U RY                  S(S,URZ                  -   5      n$U$c  U RY                  S(S-5      n$U$b  U$U"S.'   U R\                  n%U%" S(S/5      n&UR_                  S0U&SS19  U%" S(S25      n'UR_                  S3U'SS19  UR                  R                  S4S5      (       d  U%" S(S55      n(UR_                  S4U(SS19  [`        Rb                  " U US6UU UUR                  U!U"S79	  g! [        R                   a7  n	[        R                  " [        R                  " U	5      [	        S5      S	9eSn	A	ff = fs  snf s  snf s  snf )8aH  create a bundle file

Generate a bundle file containing data to be transferred to another
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, where destination
is the repositories you provide through DEST option.

You can change bundle format with the -t/--type option. See
:hg:`help bundlespec` for documentation on this format. By default,
the most appropriate format is used and compression defaults to
bzip2.

The bundle file can then be transferred using conventional means
and applied to another repository with the unbundle or pull
command. This is useful when direct push and pull are not
available or when exporting an entire repository is undesirable.

Applying bundles preserves all changeset contents including
permissions, copy/rename information, and revision history.

Returns 0 on success, 1 if no changes found.
Nr   s   no commits to bundler  r  F)stricts8   see 'hg help bundlespec' for supported values for --typerM   s   changegroups
   cg.versions   s1s0   packed bundles cannot be produced by "hg bundle"s%   use 'hg debugcreatestreamclonebundle'basealls2   --all is incompatible with specifying destinationss,   ignoring --base because --all was specified
exacts-   ignoring --exact because --all was specified
s4   --exact is incompatible with specifying destinationss.   ignoring --base because --exact was specified
s   parents(%ld) - %lds-   repository does not support bundle version %ss3   --base is incompatible with specifying destinationsr  T)	onlyheadsr  portabler   s   %ln and _internal()s!   cannot bundle internal changesetss   %d internal changesets selected)missingrootsancestorsof)r  s   01s   HG10)s   02s   03s   HG20s)   bundle: unexpected changegroup version %s   experimentals   bundlecomplevel.s   bundlecomplevels   levels   bundlecompthreads.s   bundlecompthreadss   threadss   evolution.bundle-obsmarkers   obsolescence)	overwrites$   evolution.bundle-obsmarker:mandatorys   obsolescence-mandatory   phasess   bundle-phasesr  )compressioncompopts)2r#   r   r   rS   r   rO   lowerr   parsebundlespecUnsupportedBundleSpecificationr+   r   paramsr  r   r  r   supportedoutgoingversionsr  rM  r   r   outgoingmissingexcludedr  r<   get_push_pathsr"   peerre   r   rX  addbranchrevsr  rW  findcommonoutgoingupdater/   nochangesfoundr   r  wirecompressionr  	configintr	  
configbool	set_paramr   writenewbundle))rV   rW   r   destsrX   r  
revstrings
bundletype
bundlespecrH  has_changegroup	cgversionbase_optr  supported_cg_versionsclr   commonr  r  r  r  r  r   otherhex_revsr  	head_revscheckoutbundled_internalrn  rN   bversionbcompressionr
  	complevelcompthreadscfgobsolescence_cfgobs_mand_cfg
phases_cfgs)                                            r[   bundler5  	  sO   \ D}%[
""44d""1%<#=>>&(+113J
!11U

 !''++NEBO!!-0I EAB;<
 	
 xxHxx""GH  GGAFGH88GGGAGHIy	'		""IJ  GGAHIJyy.;9D	""429D'AA$G9Akk>?)K
 	
 ""HI  ^^*./$3"''#,$/.2T*TT*%%dFE:""$$%5**4U;DGGD("6"6t"<dCE3784aDGKKM48R(H"$"2"2Hh#Ix  =$$T[[)< 
 !33hhw'H NN8++,OOH--./ <2 rT)>h? yy!7A4534s;K7LLkk#D))%%wE
 %%dAx(HEZ777	n	$!11$$89D
 	
 H,z/E/EEI LL2DE	&,,.1G1GGK ll?4HI* --C?,IJ*:eL(OPL!<5     E22*:;
Y
eD
 
s // 
QNO
 	

n 0* 9s*   2Z .[[
[$[ 2[[   cat   o   outputs(   print output to file with formatted names   FORMATs   print the given revisions   decodes    apply any matching decode filters   [OPTION]... FILE...)rH   r]   r  c           
        UR                  S5      nU(       a  [        R                  " X/S5      n[        R                  " X5      n[        R
                  " Xb4U-   [        R                  " U5      5      nUR                  SS5      n[        R                  " U5      (       a  SnU(       a-  [        R                  " U S[        R                  " U5      5      n	O7U R                  S5        U R                  S[        R                  " U5      5      n	U	   [        R                  " XXgXS40 UD6sSSS5        $ ! , (       d  f       g= f)aq  output 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 template string. See :hg:`help templates`. In addition
to the common template keywords, the following formatting rules are
supported:

:``%%``: 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
:``\``: literal "\" character

.. container:: verbose

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions. See also :hg:`help templates`.

  :data:    String. File content.
  :path:    String. Repository-absolute path of the file.

Returns 0 on success.
r   r   outputr>   r6  N)rO   r/   r   r#   r   rd   r+   re   popr   isstdiofilenamer   nullformatterr   cat)
rV   rW   file1rh   rX   r   r   ri   
fntemplater  s
             r[   r>  r>  	  s    l ((5/C
))$yA


t
)Cc8d?H,@,@,FGA(C(Jz**
$$R1E1Ed1KL
\\&("6"6t"<=	{{2SRSIDI 
s   D66
Es   clonesE   the clone will include an empty working directory (only a repository)s	   updaterevs%   revision, tag, or branch to check outsE   do not clone everything, but include this changeset and its ancestorssQ   do not clone everything, but include this branch's changesets and their ancestorss   pulls"   use pull protocol to copy metadatas   uncompresseds!   an alias to --stream (DEPRECATED)s   streams"   clone with minimal data processings   [OPTION]... SOURCE [DEST])rH   rI   norepoc                8   [         R                  " USS5        Su  pEUR                  S5      (       a  [        5       n[        5       nUR                  S5      (       a%  [        R
                  " UR                  S5      5      nUR                  S5      (       a%  [        R
                  " UR                  S5      5      n[        R                  " U [        R                  " U5      UUUR                  S5      UR                  S5      =(       d    UR                  S	5      UR                  S
5      UR                  S5      =(       d    UR                  S5      (       + UR                  S5      UR                  S5      UUUR                  S5      =(       d    SS9nUSL $ )a  make a copy of an existing repository

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

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

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

Only local paths and ``ssh://`` URLs are supported as
destinations. For ``ssh://`` destinations, no working directory or
``.hg/hgrc`` will be created on the remote side.

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.

In normal clone mode, the remote normalizes repository data into a common
exchange format and the receiving end translates this data into its local
storage format. --stream activates a different clone mode that essentially
copies repository files from the remote with minimal data processing. This
significantly reduces the CPU cost of a clone both remotely and locally.
However, it often increases the transferred data size by 30-40%. This can
result in substantially faster clones where I/O throughput is plentiful,
especially for larger repositories. A side-effect of --stream clones is
that storage settings and requirements on the remote are applied locally:
a modern client may inherit legacy or inefficient storage used by the
remote or a legacy Mercurial client may not be able to clone from a
modern Mercurial remote.

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

  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 or inline from the
  same stream. When this is done, hooks operating on incoming changesets
  and changegroups may fire more than once, once for each pre-generated
  bundle and as well as for any additional remaining data. 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 streaming clone while checking out a specified version::

      hg clone --stream 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}  	updaterevNNnarrowincludeexcludepullstreamuncompressedr   rX  	shareoptsdepthN)	rH  rI  r  r  rX  rK  storeincludepatsstoreexcludepatsrL  )
r   r  rO   r  r&   parsepatternsr"   cloner+   re   )rV   sourcer+  rX   includepatsexcludepatsr  s          r[   rP  rP  Q  s>   z !!$
K@  *K xxee88I$22488I3FGK88I$22488I3FGK

T"XXfxx!=TXXn%=XXe_xx$@DHHZ,@(@xx!((;'$$hhw'4	A  9r>   s	   commit|ci   As9   mark new/missing files as added/removed before committings   close-branchs   mark a branch head as closed   amends)   amend the parent of the working directory   secrets#   use the secret phase for committing   drafts"   use the draft phase for committings   force-close-branchs:   forcibly close branch from a non-head changeset (ADVANCED)s   interactives   use interactive modec                @   [         R                  " USS5        [         R                  " USS/5        UR                  5          UR	                  5          [        X/UQ70 UD6sSSS5        sSSS5        $ ! , (       d  f       O= fSSS5        g! , (       d  f       g= f)a"  commit the specified files or all outstanding changes

Commit changes to the given files into the repository. Unlike a
centralized SCM, this operation is a local operation. See
:hg:`push` for a way to actively distribute your changes.

If a list of files is omitted, all changes reported by :hg:`status`
will be committed.

If you are committing the result of a merge, do not provide any
filenames or -I/-X filters.

If no commit message is specified, Mercurial starts your
configured editor where you can enter a message. In case your
commit fails, you will find a backup of your message in
``.hg/last-message.txt``.

The --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
draftsecretr#  amendN)r   r  rQ  ra   r3  	_docommit)rV   rW   rh   rX   s       r[   r8  r8    se    n !!$:((zG9E	tyy{1D1D1 #{{{s$   BA5"	B5
B	?B
Bc                
  ^ UR                  S5      (       aK  UR                  S5        [        R                  " X[        S S[        R
                  /UQ70 UD6nUS:X  a  S$ U$ UR                  S5      (       a  U R                  SSSS	5        [        R                  " USS
9  US    R                  5       nUR                  U5      nUR                  R                  5       n0 mUR                  S5      (       d  UR                  S5      (       Ga  STS'   US   R                  5       (       a  [        R                  " US    U[        R                   " U5      5      nUR#                  US9n	U	R$                  (       d"  U	R&                  (       d  U	R(                  (       a  UR                  USS9nO![+        S5      n
[,        R.                  " U
5      eU(       d"  [,        R.                  " [+        S5      U-  5      eXQS   R                  5       :X  aV  US   R1                  5       U;  a?  UR                  S5      (       d)  [+        S5      n[,        R.                  " [+        S5      US9eUR                  S5      (       ai  US   R3                  5       R                  5       U:w  aD  US   R5                  5       R                  5       U:w  a  [,        R.                  " [+        S5      5      eUR                  S5      (       a  U R7                  SS5      (       a  [,        R.                  " [+        S5      5      eUS   n[8        R:                  " XR=                  5       /S5        [>        R@                  " U[>        RB                  5      (       d  [        R                  " U5        [        RD                  " XUTX#5      nXR1                  5       :X  a  U R#                  [+        S5      5        gOU4S jn[        R                  " XX[        R                   " U5      5      nU(       d  [        RF                  " X[        R                   " U5      5      nURH                  (       a1  U R#                  [+        S5      [K        URH                  5      -  5        gU R#                  [+        S5      5        g[        RL                  " XXVU40 UD6  U RN                  (       d8  U R7                  SS5      (       a   [#        U USSSSSUR                  S5      S9  g g g ) NinteractiveFr   r   r#  r<  s   commitsubreposTr/  )r8  close_branchforce_close_branch   1s   closer{  )rd   r  s1   current revision is already a branch closing heads!   branch "%s" has no heads to closesB   use --force-close-branch to close branch from a non-head changesets   can only close branch headsrM   r[  s+   cannot amend with ui.commitsubrepos enabledrU  rK  c                F  > 0 nUR                  S5      (       a  SUS'   OUR                  S5      (       a  SUS'   UR                  nUR                  US5         U R                  US5         [        R                  " US    S5      n[        R
                  " S
SU0[        R                  " U5      D6nUR                  UUR                  S5      UR                  S5      UUT	S	9sS S S 5        sS S S 5        $ ! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)NrV  )r  s
   new-commitrW  r/  s   commit.normalrA  rx   r|   )rD  extrar   )	rO   baseuir[  r   mergeeditformrE  r+   rF  r8  )
rV   rW   rG  rd   rX   rl  re  rA  rD  rd  s
            r[   rI  _docommit.<locals>.commitfunc  s	   Ixx	""8A	45(##8@	45[[F&&y)<&&y)<&44T
$4 H %44 !)-5-?-?-EF  ;;))%# '  =< =<<<< =<<s%   D,A8C7$	D7
D	D
D s4   nothing changed (%d missing files, see 'hg status')
   commandss   commit.post-status)modifiedaddedremoveddeletedunknownr#  )(rO   r;  r   dorecordr8  recordfilter	setconfigrS  rX  rY  rM  re  closesbranchr/   rd   r+   re   rU   ri  rj  rk  r   r   rS   r   r   ri  r  r.   precheckr   r'   	isenabledcreatemarkersoptr[  postcommitstatusrl  r   rf  r   )rV   rW   rh   rX   retrX  rj  re  rp   srn  rN   oldr   rI  statrd  s                   @r[   r\  r\  n  s%   xxfdE7+?+?
BF
JN

 1Hq%#%xx

U-tY?D.$Z Ff%F
..


CExx488,@#A#Ah:""$$ mmT
D("6"6t"<G '*AzzQWW		))&)>LM&&s++""67&@  4j''))T
!/HH122D ""1%C#D4PPXXgT
&&(F2JMMO**,6&&q)G'HIIxx== 122""@A  4jTGGI;9 !!$(A(ABB##D)}}RsE4>88:IIa,-. 
	2 ~~j(<(<T(B
 ++H006D ||		* $,,'	(  		!012VSADA88k3HIIXXj)		
 J8r>   s   config|showconfig|debugconfigs	   untrusteds$   show untrusted configuration optionss   exp-all-knowns+   show all known config option (EXPERIMENTAL)s   edit user config   locals   edit repository configs   sources"   show source of configuration values   shareds3   edit shared source repository config (EXPERIMENTAL)s
   non-shareds%   edit non shared config (EXPERIMENTAL)   globals   edit global configs   [-u] [NAME]...)rH   optionalrepor  c                   [         R                  " XU5      nUb  [         R                  " XU5      $ U R                  S5        [         R                  " X5        [         R
                  " U UU[        R                  " U5      [        UR                  S5      5      [        UR                  S5      5      [        U R                  =(       d    UR                  S5      5      S9nU(       a  gg)a  show combined config settings from all hgrc files

With no arguments, print names and values of all config items.

With one argument of the form section.name, print just the value
of that config item.

With multiple arguments, print names and values of all config
items with matching section names or 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 --source, the source (filename and line number) is printed
for each config item.

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

.. container:: verbose

  --non-shared flag is used to edit `.hg/hgrc-not-shared` config file.
  This file is not shared across shares when in share-safe mode.

  Template:

  The following keywords are supported. See also :hg:`help templates`.

  :name:    String. Config name.
  :source:  String. Filename and line number where the item is defined.
  :value:   String. Config value.

  The --shared flag can be used to edit the config file of shared source
  repository. It only works when you have shared using the experimental
  share safe feature.

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

rC   	untrustedexp_all_knownrQ  )value_filtersformatter_optionsr~  	all_knownshow_sourcer   r   )config_commandfind_edit_leveledit_configr   show_componentshow_configr+   re   r  rO   r   )rV   rW   valuesrX   
edit_levelmatcheds         r[   configr    s    Z  //$?J))"J??HHY!!"+((
"..t4txx,-txx01;();<G r>   s   continuec                   UR                  S5      n[        R                  " U5      nU(       d  [        R                  " [        S5      5      eUR                  (       d9  [        R                  " [        S5      UR                  -  UR                  5       S9eU(       a(  U R                  [        S5      UR                  -  5        gUR                  X5      $ )zresumes an interrupted operation (EXPERIMENTAL)

Finishes a multistep operation like graft, histedit, rebase, merge,
and unshelve if they are in an interrupted state.

use --dry-run/-n to dry run the command.
rK   rL   s1   %s in progress but does not support 'hg continue'rM   s    %s in progress, will be resumed
N)
rO   r   rP   r   rQ   r   continuefuncrT   continuemsgrU   )rV   rW   rX   rY   	contstates        r[   continuecmdr  ^	  s     XXi F**40Iq!<=>>!!FG$$& &&(
 	
 
		!89Y=N=NOP!!"++r>   s   copy|cps   forgets#   unmark a destination file as copieds   afters'   record a copy that has already occurreds   at-revs4   (un)mark copies in the given revision (EXPERIMENTAL)s+   forcibly copy over an existing managed files/   [OPTION]... (SOURCE... DEST | --forget DEST...)c           
        S nUR                  S5      nU(       a=  [        R                  " X5      nUR                  5       b  S nUR                  5       US'   UR	                  5          U" U5         [
        R                  " XU[        R                  " U5      5      sSSS5        sSSS5        $ ! , (       d  f       O= fSSS5        g! , (       d  f       g= f)a  mark 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.

To undo marking a destination file as copied, use --forget. With that
option, all given (positional) arguments are unmarked as copies. The
destination file(s) will be left in place (still tracked). Note that
:hg:`copy --forget` behaves the same way as :hg:`rename --forget`.

This command takes effect with the next commit by default.

Returns 0 on success, 1 if errors are encountered.
c                8    U R                   R                  U 5      $ r   rb   rc   rW   s    r[   r   copy.<locals>.<lambda>	      4==77=r>   at_revNc                ,    [         R                  " 5       $ r   r4   nullcontextmanagerr  s    r[   r   copy.<locals>.context	      ..00r>   	rO   r#   r   r   ra   r   copyr+   re   rV   rW   rh   rX   r   r   r   s          r[   r  r  ~	  s    Z >G
((8
C
""4-779 1 !WWYDN	wt}||BdH,@,@,FG %}}}s$   )	C2,B1	C1
B?	;C
Cs   debugcommandss	   [COMMAND])rH   rA  c                    [        [        R                  5       5       HU  u  pUR                  S5      S   nSR	                  US    Vs/ s H  oDS   PM	     sn5      nU R                  SX4-  5        MW     gs  snf )z'list all available commands and options   |r      , r   s   %s: %s
N)r  tableitemssplitr   r   )rV   r  argsvalsr  rX   s         r[   r   r   	  sf     EKKM*	iioa zza1AQ412
{*+ +1s   	A8
s   debugcompletes   optionss   show the command optionss   [-o] CMDc                   UR                  S5      (       a  / n[        /nU(       a2  [        R                  " U[        S5      u  pVUR                  US   5        U HO  nU HF  nSUS   ;   a  M  US   (       a  UR                  SUS   -  5        UR                  SUS   -  5        MH     MQ     U R                  S	S
R                  U5      -  5        g[        R                  " U[        5      u  pU R                  (       a2  U	R                  5        Vs/ s H  nSR                  US   5      PM     n	nU R                  S	S
R                  [        U	5      5      -  5        gs  snf )z=returns the completion list associated with the given commandoptionsFr   s   (DEPRECATED)r  r   s   -%ss   --%sr  r   Nr   )rO   
globaloptsr   findcmdr  r   r   r   findpossibleverboser  r  )rV   r  rX   r  otablesaliasesentryr  ocmdlistunused_allcmdsr  s               r[   debugcompleter  	  s    xx	,$__S%?NGNN58$A"ad*Q4NN6AaD=1w1~.   	5::g../%223>G	zz,3NN,<=,<q499QqT?,<=HHWuzz&/223 >s   E   diffs   revision (DEPRECATED)   froms   revision to diff froms   REV1   tos   revision to diff tos   REV2   changes   change made by revisions   ignore-changes-from-ancestorssD   only compare the change made by the selected revision (EXPERIMENTAL)s<   [OPTION]... ([-c REV] | [--from REV1] [--to REV2]) [FILE]...)rH   rI   r]   r  c                   [         R                  " USS5        [        R                  " U5      nUR	                  S5      nUR	                  S5      nUR	                  S5      nUR	                  S5      nUR	                  S5      nUR	                  S5      n	UR	                  S	5      n
[         R
                  " USSS/5        [         R
                  " USSS/5        U(       aF  [        R                  " X/S
5      n[        R                  " XS5      n[        R                  " U5      nOU(       d  U(       aK  [        R                  " X/U/-   S
5      n[        R                  " XS5      n[        R                  " XS5      nO/[        R                  " XS
5      n[        R                  " X5      u  pU
(       a  UR                  5       UR                  5       :w  a  UR                  5       nUR                  5       n[        R                  " U5      nUR!                  U5        SS0nU R#                  US5         U R%                  5          [&        R(                  " UU/ SQSSUUS9  SSS5        SSS5        UR+                  UR-                  5       S9nU	(       a  UnUnOUnUn[.        R0                  " X5      n[        R2                  " XU5      nUR5                  U5      nU R7                  S5        [        R8                  " U UUUUUUUR	                  S5      UR	                  S5      S9	  g! , (       d  f       N= f! , (       d  f       N= f)al  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.  To diff against the
   conflict regions, you can use `--config diff.merge=yes`.

By default, the working directory files are compared to its first parent. To
see the differences from another revision, use --from. To see the difference
to another revision, use --to. For example, :hg:`diff --from .^` will show
the differences from the working copy's grandparent to the working copy,
:hg:`diff --to .` will show the diff from the working copy to its parent
(i.e. the reverse of the default), and :hg:`diff --from 1.0 --to 1.2` will
show the diff between those two revisions.

Alternatively you can specify -c/--change with a revision to see the changes
in that changeset relative to its first parent (i.e. :hg:`diff -c 42` is
equivalent to :hg:`diff --from 42^ --to 42`)

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 --from 1.0 --to 1.2 lib/

  - get change stats relative to the last change on some date::

      hg diff --stat --from "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 --from 9353^ --to 9353   # same using revset syntax
      hg diff --from 9353^2 --to 9353  # compare against the second parent

Returns 0 on success.
r   changers   r  r  r     stats   reverses   ignore_changes_from_ancestorsr   Nr;  s#   internal:merge3-lie-about-conflictss   obslog-diff)r  s   parent-of-tos   parent-of-fromT)labelsr  branchmergewcancestor)r   r     subrepos   root)ry  listsubreposr'  )r   r  r+   re   rO   rQ  r/   r   r#   r   r   diff_parentrevpairr   
contextmodoverlayworkingctxsetbaser[  silentr\  _updatetomemctxdescriptionr)   diffalloptsrd   narrowmatchr   diffordiffstat)rV   rW   rh   rX   r  r  from_revto_revry  r  
patch_onlyctx2ctx1old_basenew_basenew_ctxconfigoverridesctxleftctxrightr   ri   s                        r[   diffr  	  s   p !!$x8%D88FDXXi Fxx HXXe_F88GDhhz"G:;J((w8KL((uvy6IJ))$)D##D$7##D)	V))*x'
 ##DD9##D$7))$i@''3
dggi4779,779779..t4"$J
 ?
  ! BM? T%5%5%78  *Hd$'AAHHW
	XXk*XXg
7 BM??s$   5L;L*#L;*
L8	4L;;
M	   export   Br  s/   export changes only reachable by given bookmarks   BOOKMARKs   switch-parents   diff against the second parents   revisions to exports*   [OPTION]... [-o OUTFILESPEC] [-r] [REV]...)rH   rI   r  c                0   [         R                  " U5      nUR                  S5      nU[        UR                  S/ 5      5      -  n[        R
                  " USS5        U(       aH  XAR                  ;  a"  [        R                  " [        S5      U-  5      e[        R                  " X5      nO7U(       d  S/n[        R                  " XS5      n[        R                  " X5      nU(       d  [        R                  " [        S5      5      e[        U5      S:  a  U R!                  [        S5      5        OU R!                  [        S	5      5        UR                  S
5      n[        R"                  " U5      (       a  SnU(       a  [$        R&                  " U SU5      nO#U R)                  S5        U R%                  SU5      nU   [        R*                  " UUUUUR                  S5      [,        R.                  " X5      S9  SSS5        g! , (       d  f       g= f)a)	  dump 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 template string. See :hg:`help templates`. In addition
to the common template keywords, the following formatting rules are
supported:

:``%%``: 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
:``\``: literal "\" character

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.

With -B/--bookmark changesets reachable by the given bookmark are
selected.

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

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions. See also :hg:`help templates`.

  :diff:    String. Diff content.
  :parents: List of strings. Parent nodes of the changeset.

  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.
r  rs   s   bookmark '%s' not foundr{  r   s&   export requires at least one changesetr   s   exporting patches:
s   exporting patch:
r8  r>   r  s   switch_parent)r@  switch_parentrX   N)r+   re   rO   r  r   r  r  r   rS   r   r/   bookmarkrevsr   r#   r   r   noter<  r   r=  r   exportr)   r  )rV   rW   r  rX   r  r  r@  r  s           r[   r  r  
  s   J %Dxx$H%,--J!!$<??*""1%?#@8#KLL##D3J))$IF""44q!JKLL
4y1}
)*+
'())$Jz**
$$RD9
\\)T*	!((#34""2,	
 
s   =H
Hr  s%   search the repository as it is in REV   0   print0s*   end filenames with NUL, for use with xargsc                :   [         R                  " U5      nUR                  S5      nU(       a  [        R                  " X/S5      n[
        R                  " XS5      nSnUR                  S5      (       a  SnSU-   n[        R                  " XRU5      nU R                  S5        [        R                  " UR                  5       S	S
9n	U R                  SU5       n
[        R                  " XXXUR                  S5      5      sSSS5        $ ! , (       d  f       g= f)a  list 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

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions. See also :hg:`help templates`.

  :flags:   String. Character denoting file's symlink and executable bits.
  :path:    String. Repository-absolute path of the file.
  :size:    Integer. Size of the file in bytes.

  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   r   Nr   r      r   r  Tr_   r  )r+   re   rO   r/   r   r#   r   rd   r   rf   rW   r   r   files)rV   rW   rh   rX   r   r   r   r   ri   rj   r  s              r[   r  r    s    \ %D
((6
C
))$yA


t$
/C
Cxx	
#+Cc&AHHX""388:4HH	h	%}}Q"488K+@
 
&	%	%s   (D
Dc                :   U(       d  [         R                  " [        S5      5      eUR                  5          UR                  R                  U5         [        R                  " US   U[        R                  " U5      5      nUR                  S5      UR                  S5      pe[        R                  " USS9n[        R                  " U UUSUSUUS	9S
   nSSS5        SSS5        W=(       a    S=(       d    S
$ ! , (       d  f       N*= f! , (       d  f       N3= f)at  forget 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.
   no files specifiedNrK   r^  Tr_   r>   F)r  rj   explicitonlyrY   r^  r   r   )r   rS   r   ra   rb   rc   r/   rd   r+   re   rO   rf   r   forget)	rV   rW   rh   rX   ri   rY   r^  rj   rk   s	            r[   r  r    s    R q!6788	t}}33D9MM$t*dH,@,@,FG"hhy1488M3J&&tF>>#	
 		 : >Q :9s$   DBC;D;
D		D
Ds   grafts   revisions to grafts3   base revision when doing the graft merge (ADVANCED)s3   graft to this destination, in-memory (EXPERIMENTAL)s   resume interrupted grafts   stops   stop interrupted grafts   abort interrupted graft   logs    append graft info to log messages9   don't commit, just apply the changes in working directorys   force graft   Ds   currentdates&   record the current date as commit dates   currentusers$   record the current user as committers   [OPTION]... [-r REV]... REV...c                    UR                  5          [        R                  " X/UQ70 UD6sSSS5        $ ! , (       d  f       g= f)a  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.

The -c/--continue option reapplies all the earlier options.

.. container:: verbose

  The --base option exposes more of how graft internally uses merge with a
  custom base revision. --base can be used to specify another ancestor than
  the first and only parent.

  The command::

    hg graft -r 345 --base 234

  is thus pretty much the same as::

    hg diff --from 234 --to 345 | hg import

  but using merge to resolve conflicts and track moved files.

  The result of a merge can thus be backported as a single commit by
  specifying one of the merge parents as base, and thus effectively
  grafting the changes from the other side.

  It is also possible to collapse multiple changesets and clean up history
  by specifying another ancestor as base, much like rebase --collapse
  --keep.

  The commit message can be tweaked after the fact using commit --amend .

  For using non-ancestors as the base to backout changes, see the backout
  command and the hidden --parent option.

.. container:: verbose

    The experimental --to option allows grafting a revision in-memory,
    independent of the working copy. Merge conflicts are not currently
    supported, and the operation will be aborted if the configured tool
    cannot handle the conflicts that might be encountered.

    As the operation is performed in-memory, the on-disk files will not be
    modified, and some hooks might not be run.

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

  - backport the result of a merge as a single commit::

      hg graft -r 123 --base 123^

  - land a feature branch as one changeset::

      hg up -cr default
      hg graft -r featureX --base "ancestor('featureX', 'default')"

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

Returns 0 on successful completion, 1 if there are unresolved files.
N)ra   
graft_impl	cmd_graft)rV   rW   r  rX   s       r[   r7   r7     s0    r 
##B<t<t< 
	   5
A
   graftstates6   use 'hg graft --continue' or 'hg graft --stop' to stop)r   	clearablestopflagcontinueflagrR   cmdhint   greps   end fields with NULs   an alias to --diff (DEPRECATED)sE   search revision differences for when the pattern was added or removedsC   follow changeset history, or file history across copies and renamess   ignore-cases   ignore case when matchings   files-with-matchess-   print only filenames and revisions that matchs   print matching line numberss*   search files changed within revision ranges	   all-filess>   include all files in the changeset while grepping (DEPRECATED)s&   [--diff] [OPTION]... PATTERN [FILE]...c                &  ^ ^^^^^^^^^ [         R                  " TSSS/5        TR                  S5      =(       d    TR                  S5      mTR                  S5      nTR                  S5      c  T(       d  STS'   TR                  S5      =(       a3    TR                  S5      (       + =(       a    TR                  S5      (       + mTR                  S5      nT(       a  S/TS'   [        R                  nTR                  S	5      (       a  U[        R
                  -  n [        R                  R                  X'5      mSu  mmTR                  S5      (       a  S=mm[        R                  " T UTUTUS9n	U	R                  m[         R"                  " U5      mUUUUUUUU U4	S jn
U4S jmSn[$        R&                  " U[(        R*                  " T5      TS   TS   TS   UUU(       + S9n[$        R,                  " X5      u  pT R/                  S5        T R1                  S[(        R*                  " T5      5      nU	R3                  X5       HZ  u  nnnnU
" UUUUU5      nU=(       d    UnU(       d  M(  T(       a  M1  U(       a  M:  U	R5                  UUR7                  5       5        M\     UR9                  5         U(       + $ ! [        R                   a;  nT R                  [        S
5      [        R                  " U5      -  5         SnAgSnAff = f)aK  search for a pattern in specified files

Search the working directory or revision history for a regular
expression in the specified files for the entire repository.

By default, grep searches the repository files in the working
directory and prints the files where it finds a match. To specify
historical revisions instead of the working directory, use the
--rev flag.

To search instead historical revision differences 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 --diff flag.

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

If no FILEs are specified and the --rev flag isn't supplied, all
files in the working directory are searched. When using the --rev
flag and specifying FILEs, use the --follow argument to also
follow the specified FILEs across renames and copies.

.. container:: verbose

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions. See also :hg:`help templates`.

  :change:  String. Character denoting insertion ``+`` or removal ``-``.
            Available if ``--diff`` is specified.
  :lineno:  Integer. Line number of the match.
  :path:    String. Repository-absolute path of the file.
  :texts:   List of text chunks.

  And each entry of ``{texts}`` provides the following sub-keywords.

  :matched: Boolean. True if the chunk matches the specified pattern.
  :text:    String. Chunk content.

  See :hg:`help templates.operators` for the list expansion syntax.

Returns 0 if a match is found, 1 otherwise.

	all_filesr   r  r   NTr   s   wdir()ignore_cases    grep: invalid match pattern: %s
r   )r   r   print0r  )r  r  r   c           
       >	^^ [         R                  " T5      nU R                  5       (       a  TR                  nO[        R
                  nTR                  (       a  SnOSnSn[        R                  UUU4S j5       n	SS0n
T(       a  [        R                  " X45      nOU Vs/ s H  nSU4PM	     nnU GH$  u  pU R                  5         U R                  TS9  U R                  U R                  [         R                  " T5      5      TS	9  U R!                  T" T5      S
S9  SSUT(       + S4SSUR"                  TR%                  S5      S4/nT(       a  UR'                  SSUSUS:X  a  SOS45        UR)                  SSU" TR+                  5       5      TR%                  S5      S4SSU R-                  TR/                  5       U5      TR%                  S5      S4/5        U HL  u  nnnnnU(       a  U R!                  TSS9  U
R%                  X5      nUSU-  -   nU R1                  UUUUUS9  MN     TR%                  S5      (       dd  U R!                  TSS9  TR%                  S5      (       d'  U	" 5       (       a  U R!                  [3        S5      5        OT" U R5                  SSS 9U5        U R!                  T5        SnTR%                  S5      (       d  GM$    U$    U$ s  snf )!Ns   %Y-%m-%ds   %a %b %d %H:%M:%S %Y %1%2Fc                    > T" T5      n  [         R                  " U R                  TR                  T5      5      5      $ ! [        R
                   a    TT   R                  5       s $ f = fr   )r;   binaryreadfilenoder   WdirUnsupportedr   )flogr   r   getfiles    r[   r  %grep.<locals>.display.<locals>.binary  s\    2;D*!((3<<3C)DEE(( *2w''))*s   3? 'A)(A)s
   linenumberr   r>   r  )r   r   s   grep.filenamer  rs   r   line_numberr  r   T   +s   grep.inserted s   grep.deleted rx   r   r|   r   s   grep.seps   grep.%sfiles_with_matchesr   s    Binary file matchess   textss   {text}r   )r/   r   r   r   r+   r   r   r4   r   grepmoddifflinestatesr   r   r   r  r   r   linenumrO   r   r  r   
formatdater   r  r   r   )r  r   r   pstatesstatesr   
formatuserdatefmtfoundr  fieldnamemapiterr  r  colsnamer   r   condextra_labelfieldr  r  displaymatcheseolr  rX   	plaingrepr   rV   rj   s    ``                   r[   displaygrep.<locals>.display  s   nnS!::<<J!))J88!G2G		* 
	* &y1))':D&,-fS!HfD-IFLLNJJ3JGGGOOC$89GCHHXb\)9H: ]C8!IIHH]+	D !!T> *-
 KK  "388:.(  chhj':($ 7;2c4{HHSH4$((4#zD'89T5#t5A 7; 88011K0xx''FHHHHQ678"299XI9#FJHHSMExx,--} |  .s   %K"c                  > SnUR                  T5       H  u  p4X#:  a>  U R                  5         U R                  SSUR                  X# 5        U R	                  SS9  U R                  5         U R                  SSUR                  X4 SS9  U R	                  SS9  UnM     U[        UR                  5      :  a?  U R                  5         U R                  SSUR                  US  5        U R	                  SS9  U R                  5         g )	Nr   rv   r   F)r  s
   grep.matchr  T)findposr   r   r  r   r   r   )r  r  r  rw  rH  regexps        r[   r  grep.<locals>.displaymatchesH  s    IIf%DAu%5&LLNHHWeQVVA[HFGGDG!A & s166{?LLNHHWeQVVABZ0GGEG"
r>   FrF  rG  )rh   rX   revspecinclude_patsexclude_patsr   force_changelog_traversalfilter_revisions_by_patsr  )r   rQ  rO   reMIr4   compiler   r  r   r;   forcebytestrr  grepsearcher_getfiler/   rf   r#   walkoptsr+   re   
makewalkerr   r   searchfilesskipfiler   r   )rV   rW   patternrh   rX   r   r  reflagsinstsearcherr  r  woptsr  makefilematcherr  r   r   r  r  r  r  r  r  r  r  r  r   rj   s   `   `                @@@@@@@@r[   r   r   d  s   N (({UFOL88E?.dhhv.DXXhFxx$T [Pdhhuo"5Pdhhx>P:P  %I kUddGxx2442 HCxxc##
D&IDH G""4(HW Wr" E!!$'U)_)_"+%.	E '11$>DHHW	gx33D9	:B$,$8$8$O C&BC&1
1TT))b#''),	 %P
 FFH9g 88 
23%%d+,	
 s    K L1LL   headss1   show only heads which are descendants of STARTREVs   STARTREVs   topos   show topological heads onlys)   show active branchheads only (DEPRECATED)s#   show normal and closed branch headss   [-ct] [-r STARTREV] [REV]...c           	        SnUR                  S5      nU(       a=  [        R                  " X/S5      n[        R                  " XS5      R                  5       nUR                  S5      (       a$  UR                  U5       Vs/ s H  oaU   PM	     nnOP/ nUR                  5        H&  nXqR                  XUR                  S5      5      -  nM(     U Vs/ s H  oaU   PM	     nnU(       a]  [        R                  " X5       V	s1 s H  oU	   R                  5       iM     n
n	U Vs/ s H  ofR                  5       U
;   d  M  UPM     nnUR                  S5      (       a?  U(       a8  UR                  U5      nU Vs/ s H  ofR                  5       U;   d  M  UPM     nnU(       a  U Vs1 s H  ofR                  5       iM     nnW
U-
  (       af  SR                  S X-
   5       5      n[        S	5      nUR                  S5      (       a  U[        S
5      US   -  -  nU R                  US-   U-  5        U(       d  gU R                  S5        [        US S9n[        R                   " X["        R$                  " U5      5      nU H  nUR'                  U5        M     UR)                  5         gs  snf s  snf s  sn	f s  snf s  snf s  snf )ag  show 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.
Nr   r   topor  r  r  c              3  $   #    U  H  ov   M     g 7fr   r   )r   bs     r[   r   heads.<locals>.<genexpr>  s     !B-A!-As   s)   no open branch heads found on branches %ss    (started at %s)r   r   r7  c                $    U R                  5       * $ r   r  r   s    r[   r   heads.<locals>.<lambda>  s    !%%'
r>   )r  )rO   r/   r   r#   r   r   r  r  rY  r   rX  r   r   r  r   r  r  r+   re   showclose)rV   rW   
branchrevsrX   startr   r   r  rX  r  r  dagheads	haveheadsheadlessrn  r  r   s                    r[   r  r  s  sX   b E
((5/C
))$yA$$T5::<xx"&**U"34"3Qa"34nn&F%%fTXXh5GHHE '"'(%Qa%(&0&9&9$&K
&KGNN&K 	 
 "<EqXXZ8%;E<xxj::e$!:EqVVX%9E:)./AXXZ	/izz!BX-A!BBH@ACxxq,-U;;GGS5[H,-HHX523E--
(&&t,I s OOI 5
 )
 = ; 0s0   J+J0J5#J:>J:8J?J?&Ks	   extensions   show only help for extensionss   show only help for commands   ks   keywords   show topics matching keywords   systems"   show help for specific platform(s)s   PLATFORMs   [-eck] [-s PLATFORM] [TOPIC])rH   rA  r  c                   UR                  S5      =(       d    / n[        U5      S:X  a  [        R                  R	                  S5      (       a  UR                  S5        O[        R                  S:X  a  UR                  S5        Od[        R                  S:X  a  UR                  S5        O>UR                  S5        UR                  [        R                  R                  5       5        U R                  (       a  UR                  S	5        [        R                  [           n[        R                  " XU4S
U0UD6nU R                  S5        U R                  U5        g)zshow 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.
r  r   s   wins   windowss   OpenVMSs   vmss   plan9s   unixrB   keeprF   N)rO   r   r+   sysplatform
startswithr   r  r  sysmodules__name__r!   formattedhelpr   r   )rV   r  rX   rH  commands	formatteds         r[   help_rQ    s    < 88H#D
4yA~**622KK
#!!Z/KK!!X-KK!KK KK,,2245	zzJ{{8$H""2IDIDIIHHWHHYr>   s   identify|ids   identify the specified revisions   nums   show local revision numbers   ids   show global revision ids   show branch   tagss	   show tagsr  s   show bookmarkss   [-nibtB] [-r REV] [SOURCE]c	                  ^^ [         R                  " U	5      n	U(       d&  U(       d  [        R                  " [	        S5      5      eU=(       d    U=(       d    U=(       d    U=(       d    U(       + n
/ n/ nSm U(       ap  [
        R                  " SX5      n[        R                  " U=(       d    U X5      mTR                  5       nUR                  / 4n[        R                  " UTUS5      u  pU R                  SU	5      nUR                  5         U(       Gd  U(       d  U(       d  U(       a  [        R                  " [	        S5      5      eU(       d  U(       a  US   nU(       d  SnTR                  U5      mUR                  T5      nU
(       d  U(       a  U/nUR!                  US9  ["        R$                  UU4S j5       nUR'                  5       (       ag  U(       a  UR)                  U" 5       5        GOU
(       a?  U R*                  (       d.  S	R-                  U" 5       5      nU(       a  UR/                  U5        GO;UR!                  [1        T5      S
9  U(       d  SUR3                  5       ;   a"  UR!                  UR5                  U" 5       SS9S9  GOU(       a  [6        R8                  " X/S5      n[:        R<                  " XS5      nUR?                  5       Gcz  US   nURA                  5       n/ nU H"  nUR)                  URC                  5       5        M$     SnURE                  SSSS9(       a  SnUR!                  US9  U Vs/ s H"  nUR                  URG                  5       5      PM$     nnU
(       d  U(       a  SSR-                  U5      U4-  /nUR!                  SSR-                  U5      U4-  S9  U(       aH  U Vs/ s H  nSUR?                  5       -  PM     nnUR/                  SSR-                  U5      U4-  5        UR!                  UR5                  U Vs/ s H"  nUR                  URG                  5       5      PM$     snSS9S9  OUR                  URG                  5       5      nU
(       d  U(       a  U/nUR!                  US9  U(       a3  UR/                  [         RH                  " UR?                  5       5      5        URC                  5       nU
(       a  U R*                  (       d  UR                  5       nUS:w  a  UR/                  SU-  5        S	R-                  U5      nU(       a  UR/                  U5        S	R-                  URK                  5       5      nU(       a  UR/                  U5        OdU(       a  UR/                  UR                  5       5        U(       a  UR)                  U5        U(       a  UR)                  URK                  5       5        UR!                  UR1                  5       S
9  UR!                  UR                  5       S9  UR!                  UR5                  USSS9S 9  UR!                  UR5                  URK                  5       SS9S9  URM                  US!9  URO                  S"S#R-                  U5      -  5        URQ                  5         T(       a  TRS                  5         ggs  snf s  snf s  snf ! T(       a  TRS                  5         f f = f)$a  identify 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 including the working directory. Specify -r. to get information
of the working directory parent without scanning uncommitted changes.

Specifying a path to a repository root or Mercurial bundle will
cause lookup to operate on that repository/bundle.

.. container:: verbose

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions. See also :hg:`help templates`.

  :dirty:   String. Character ``+`` denoting if the working directory has
            uncommitted changes.
  :id:      String. One or two nodes, optionally followed by ``+``.
  :parents: List of strings. Parent nodes of the changeset.

  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.
5   there is no Mercurial repository here (.hg not found)Ns   identifys3   can't query remote revision number, branch, or tagsr   rP  )idc                    > / n STR                  S5      ;   aE  [        T5      nTR                  S5      R                  5        VVs/ s H  u  p#X1:X  d  M  UPM     n nn[        U 5      $ s  snnf )Nr  
   namespaces)listkeysr   r  r  )bmshexremoterevbmbmrr  	remoterevs       r[   getbmsidentify.<locals>.getbmsv  so    4==#??#&y>L (,}}\'B'H'H'J'JGB. 'J   c{"s   A)A)   /)r   r  r  )r  )r   r   r>   TF)r  r$   rX  r  )dirty   %s%sr   r   )rU  r  s   (%s))rX     tagr   )r  r   )r3   r  r  r   )*r+   re   r   rS   r   r<   get_unique_pull_path_objr"   r  localrX  r  r   r   rW  r  r   r4   r   r   r  r   r   r   r   r   
formatlistr/   r   r#   r   r   rU  r3   ra  r   r   r   r   r   r   r@  )rV   rW   rQ  r   numrU  rX  r3   r   rX   defaultr:  r  r   r  r+  r  hexrevr^  r[  r   rU  taglistr  ra  	hexoutput	numoutputr;  r  r  r]  s                                @@r[   identifyrm    sB   V %DFG
 	
 ;";;$;)<GFDDA33KLD774:2t2D::<DR(H--dD(DIND\\+t,
f&&LM  41gC(IZZ	*F" GGvG^^# # zz||MM&(+RXX68,Bb)S^, =GGbmmFH;m&OGP11$yI&&t$7Cwwy 4j++- ANN1668, ! 99Tu9E Ee$;BC7aRZZ17	Cb%9)=u(EEFF7dii	&:E%BBC:A B'Q'I BMM'TYYy-A5,I"IJMM7>?w!AFFH-w?g *    JJsxxz2	b'[F9%MM("2"23779"=>((*rxxJJL
?MM'A+. IIg&MM!$ YYs}}/MM"%MM#**,/MM'*MM#--/2GGG#GG3::<G(GGwVFGGGGbmmCMMO+mNGOJJ3J
499V,,-
JJL s D !C
 @\ JJL s:   8K[ )[5A[ 
['A[ ()[I[ [ [1s   import|patchs   strips]   directory strip option for patch. This has the same meaning as the corresponding patch options   NUMs   base path (DEPRECATED)s   PATHs;   skip check for outstanding uncommitted changes (DEPRECATED)s/   don't commit, just update the working directorys   bypasss2   apply patch without touching the working directorys   partials   commit even if some hunks fails"   abort if patch would apply lossilys   apply patch to subdirectorys   import-branchs8   use any branch information in patch (implied by --exact)s   [OPTION]... PATCH...c                  ^ [         R                  " USSS/5        [         R                  " USSS/5        U(       d  [        R                  " [	        S5      5      eU4U-   nUR                  S5      nU(       a  [        R                  " U5      US'   UR                  S5      nUR                  S5      (       + n [        UR                  S	5      =(       d    S
5      nUS
:  d  US:  a  [        R                  " [	        S5      5      eU(       a&  U(       d  [        R                  " [	        S5      5      eUS   n	/ n
S
nTR                  5          U(       aI  [         R                  " T5        U(       d  UR                  S5      (       d  [         R                  " T5        UR                  S5      (       d  TR                  nU4S jnO [        R                  n[        R                  nU" 5          U" 5          TS   R!                  5       nU GH  nUS:X  a)  U R#                  [	        S5      5        U R$                  nSnOQ[&        R(                  R+                  X5      nU R#                  [	        S5      U-  5        [,        R.                  " XSS9nSn[0        R2                  " U5       H  n[0        R4                  " U U5       n[         R6                  " U TUU[8        R:                  " U5      U
[,        R<                  5      u  nnnSSS5        W(       a  SnU R?                  US-   5        U(       d  U(       a  TS   R!                  5       nOTW   /nW(       d  M  U RA                  [	        S5      5        U RA                  [	        S5      5        Sn  O   U(       a  GM  [        R                  " [	        S5      U-  5      e   U
(       a   TRC                  SR+                  U
5      5        SSS5        SSS5        UsSSS5        $ ! [         a     [        R                  " [	        S5      5      ef = f! , (       d  f       GN4= f! , (       d  f       N`= f! , (       d  f       Ni= f! , (       d  f       g= f) al  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 (stdin), 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

  - import patches from stdin::

      hg import -

  - 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).
r7  bypassrZ  r  rB  r  s!   need at least one patch to importr   
similarityr   s   similarity must be a numberd   s$   similarity must be between 0 and 100s%   cannot use --similarity with --bypassr  r  c                 &   > T R                  S5      $ )Ns   import)rZ  r  s   r[   r   import_.<locals>.<lambda>  s    )))4r>   Nr  s   applying patch from stdin
s   stdins   applying %s
F)
sendacceptTr   s   patch applied partially
s1   (fix the .rej files and run `hg commit --amend`)
r   s   %s: no diffs founds   
* * *
)"r   rQ  r   rS   r   rO   r9   rR  float
ValueErrorra   rS  rT  r3  r4   r  rU  rU   finr%  r   r   r"   openpathr)   r  extracttryimportoner+   re   ra  r  	write_errsavecommitmessage)rV   rW   patch1patchesrX   r   r  r  simr  msgsrv  r3  r  rU  patchurl	patchfilehaspatchhunk	patchdatarn  r   rejs    `                     r[   import_r    s   j ((kHh/ ((w8JKq!EFGGi'!G88FD))$/VHHWE(##FBDHH\*/a0 Qw#)q!HIJJ
6q!IJKK<DD
C	##D)DHHW--%%d+xx$$99D4B**D((BVRT4j((*G#t#IIa >?@ "I'H!ww||D;HIIa 01H<= "BU KI !KK	2Dr40I)0)=)= %#$006 HH*T3 1 #'e,"&t*"4"4"6#':,sQ'C%DE!:  7 3:  x**1-B+Ch+NOOS $V &&|'8'8'>?] V^ w 
  Bq!?@AABJ 10 TVV 
sq   ;#P B!Q(0Q8CQAP4AQ?Q!AQ,Q4	Q(*P14
Q>Q
QQ
Q%	!Q((
Q6s   incoming|ins*   run even if remote repository is unrelateds   newest-firsts   show newest record firsts   file to store the bundles intos   FILEs'   a remote changeset intended to be addeds   compare bookmarkss(   a specific branch you would like to pulls<   [-p] [-n] [-M] [-f] [-r REV]... [--bundle FILENAME] [SOURCE]c           
       ^ ^^ [         R                  " T5      mTR                  S5      (       a;  [        R                  " / T5        UUU 4S jn[
        R                  " US T TUTSS9  g[        R                  " TSS/5        TR                  S	5      (       a  [        R                  " TT U/5      nU H  n[
        R                  " TTU5      n S	UR                  S
5      ;  a-  T R                  [        S5      5         UR                  5           gT R!                  S5        T R#                  [        S5      [        R$                  " UR&                  5      -  5        [(        R*                  " T TXvR,                  S9UR                  5         s  $    [
        R*                  " T TUT5      $ ! UR                  5         f = f)a=  show new changesets found in source

Show new changesets found in the specified path/URL or the default
pull location. These are the changesets that would have been pulled
by :hg:`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.
   graphc                   > [         R                  " XT5      n[         R                  " TTX2[        R                  5        g r   )r#   	graphrevsdisplaygraphr   
asciiedges)r(  chlistr  revdagrX   rW   rV   s       r[   r  incoming.<locals>.display)  s2    ))%>F##D&X-@-@r>   c                     g)Nr   r   r   r>   r[   r   incoming.<locals>.<lambda>/  s    ar>   Tbufferedr   r  r  r  rW  !   remote doesn't support bookmarks
s   incoming   comparing with %s
)mode)r+   re   rO   r#   checkunsupportedgraphflagsr"   	_incomingr   rQ  r<   get_pull_pathsr  rX  r  r   r@  r   rU   hidepasswordlocr   incomingbookmarks_mode)rV   rW   rQ  rX   r  srcsr   r(  s   `` `    r[   r  r    se   n %Dxx--b$7	 	WiT64$O(({YKHxx%%dB9DGGD$-Eu~~m'DDGGACDE  %		,-0D0DTXX0NN !))e*=*=  " ;;r4.. s   /F,A+F,,F>ry  s!   [-e CMD] [--remotecmd CMD] [DEST]c                    [         R                  " U5      n[        R                  " X5      n[        R
                  " XUSS9nUR                  5         g)a[  create 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.
T)createN)r+   re   r<   get_clone_path_objr"   r  r@  )rV   r+  rX   r   r  s        r[   initr  J  s?    * %D%%b/D772T$/DJJLr>      locates   fullpaths-   print complete paths from the filesystem roots   [OPTION]... [PATTERN]...c                   UR                  S5      (       a  SnOSn[        R                  " XR                  S5      S5      nSn[        R                  " UU[
        R                  " U5      SS S	9nU R                  S
5        UR                  5       c%  [        UR                  R                  U5      5      nOUR                  U5      n[        R                  " U[        U5      S9n	U HU  n
UR                  S5      (       a"  U R                  UR                  U
5      U5        OU R                  U	" U
5      U5        SnMW     U$ )a  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.
r  r  r   r   Nr   s   relglobc                    g)NFr   r   s     r[   r   locate.<locals>.<lambda>  s    5r>   )rh  r   r  r_   fullpathr   )rO   r#   r   r/   rd   r+   re   r   r   r  rb   matchesrf   r  r   wjoin)rV   rW   rh   rX   r   r   rv  ri   filesgenrj   r  s              r[   locater  e  s
   b xx


tXXe_d
;C
CT" 	A HHY
wwy $--//23;;q>""4T$ZHH88JHHTZZ_c*HHXc]C(  Jr>   s   log|historys   follow-firsts=   only follow the first parent of merge changesets (DEPRECATED)s!   show revisions matching date specs   DATE   copiess   show copied filess+   do case-insensitive search for a given texts   TEXTs"   revisions to select or follow froms   removeds*   include revisions where files were removeds   only-mergess8   show only merges (DEPRECATED) (use -r "merge()" instead)s   revisions committed by users   USERs   only-branchs?   show only changesets within the given named branch (DEPRECATED)s-   show changesets within the given named branchs)   show changesets within the given bookmark   Ps   prunes/   do not display revision or any of its ancestorss   [OPTION]... [FILE]c                n   [         R                  " U5      nUR                  S5      nU(       a5  UR                  S5      (       d  [        R                  " [        S5      5      eU(       a&  U(       a  [        R                  " [        S5      5      e[        R                  " XR                  S5      S5      n[        R                  " XU5      n[        R                  " X5      u  pgU(       a  [        R                  " XU5      u  pgSnUR                  S5      (       a0  Sn	U(       a  UR                  5       S	-   n	[        R                  " XS
9nU R                  S5        [        R                  " XX7SS9n
UR                  S5      (       a  [        R                   nO[        R"                  nU" XXjU5        g)a  show revision history of entire repository or files

Print the revision history of the specified files or the entire
project.

If no revision range is specified, the default is ``tip:0`` unless
--follow is set.

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 of the starting revisions. The starting revisions can be
specified by -r/--rev, which default to the working directory parent.

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, '%' is a changeset
involved in an unresolved merge conflict, '_' closes a branch,
'x' is obsolete, '*' is unstable, and '+' represents a fork where the
changeset from the lines below is a parent of the 'o' merge on the same
line.
Paths in the DAG are represented with '|', '/' and so forth. ':' in place
of a '|' indicates one or more revisions in a path are omitted.

.. container:: verbose

   Use -L/--line-range FILE,M:N options to follow the history of lines
   from M to N in FILE. With -p/--patch only diff hunks affecting
   specified line range will be shown. This option requires --follow;
   it can be specified multiple times. Currently, this option is not
   compatible with --graph. This option is experimental.

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

   .. note::

      The history resulting from -L/--line-range options depends on diff
      options; for instance if white-spaces are ignored, respective changes
      with only white-spaces in specified line range will not be listed.

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

  - changesets touching lines 13 to 23 for file.c::

      hg log -L file.c,13:23

  - changesets touching lines 13 to 23 for file.c and lines 2 to 6 of
    main.c with patch::

      hg log -L file.c,13:23 -L main.c,2:6 -p

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

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

See :hg:`help templates` for more about pre-packaged styles and
specifying custom templates. The default template used by the log
command can be customized via the ``command-templates.log`` configuration
setting.

Returns 0 on success.

r   rt   s   --line-range requires --follows:   FILE arguments are not compatible with --line-range optionrs   r   Nr  r   )endrevr  Tr  r  )r+   re   rO   r   rS   r   r/   r   r#   	parseoptsgetrevsgetlinerangerevsr   getcopiesfnr   r  displaygraphrevsdisplayrevs)rV   rW   rh   rX   r   	walk_optsr  differ	getcopiesr  r  	displayfns               r[   logr    sW   F %D'I),,q!BCDDTKL
 	
 %%dHHV,<iHD$$Rt4I%%d6LD "224tDIxx	XXZ!^F''<	HHV--
$I xx//	**	b3r>      manifests   revision to displays   list files from all revisionss   [-r REV]c           
     p   U R                  S[        R                  " U5      5      nUR                  S5      (       a  U(       d  U(       a  [        R
                  " [        S5      5      e[        5       nU H#  nX   nU[        UR                  5       5      -  nM%     U R                  S5        [        U5       H&  nUR                  5         UR                  SSU5        M(     UR                  5         gU(       a&  U(       a  [        R
                  " [        S5      5      eU(       d  UnSS	S
SS.n	SSSSS.n
U(       a  [        R                  " X/S5      n[         R"                  " X5      nUR%                  5       nU R                  S5        U H  nUR                  5         UR'                  US9  Xx   R)                  5       nUR+                  U R,                  SS[/        X   5      5        UR+                  U R0                  SSX   X   5        UR                  SSU5        M     UR                  5         g)a  output the current or given revision of the project manifest

Print a list of version controlled files for the given revision.
If no revision is given, the first parent of the working directory
is used, or the null revision if no revision is checked out.

With -v, print file permissions, symlink and executable bits.
With --debug, print file revision hashes.

If option --all is specified, the list of all files from all revisions
is printed. This includes deleted and renamed files.

Returns 0 on success.
r  r   s#   can't specify a revision with --allr   r  Nr9     @   *r>   r{   )r      xr>   r  s   644s   755r   r  s   hashr   s	   mode types   %s %1s )r   r+   re   rO   r   rS   r   r  r  r   r  r   r   r   r/   r   r#   r   manifestr   flagsr  r   r   r  )rV   rW   r   r   rX   r  resr   r  charr  mffls                r[   r  r    s   4 
k8#7#7#=	>Bxx$""1%K#LMMeC)C3syy{##C  	ALLNHHWgq)  	
tq!DEFFdD9DV6BD))$	B


t
*C	BHH[



s
V\\^
R\\7FCJ?
RZZz48TXN
'1%  FFHr>   s8   force a merge including outstanding changes (DEPRECATED)s   revision to merges   previews1   review revisions to merge (no merge is performed)s   abort the ongoing merges   [-P] [[-r] REV]c                p   UR                  S5      nU(       aH  UR                  R                  5       UR                  :X  a   [        R
                  " U[        S5      5        [        R                  " USSS/5        U(       a  [        R                  " U5      nU(       aI  UR                  S:w  a9  [        R                  " [        S5      UR                  -  UR                  5       S9eU(       a  [        R                  " [        S5      5      e[        R                  " UR                   U5      $ UR                  S5      (       a&  U(       a  [        R                  " [        S5      5      eU(       d  UR                  S5      nU(       a  ["        R$                  " X5      nOOU R'                  S	S
5      (       a  [        R                  " [        S5      5      eU[(        R*                  " U5         nUR-                  5       c  [        R                  " [        S5      5      eUR                  S5      (       a  US   R-                  5       nUR-                  5       nUR.                  R1                  U/U/S9n	["        R2                  " X[4        R6                  " U5      5      n
U	 H  nU
R9                  X   5        M     U
R;                  5         gSUR                  SS5      0nU R=                  US5         UR                  S5      n/ SQn[        R>                  " XlUS9sSSS5        $ ! , (       d  f       g= f)aD  merge 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 must be provided.

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

To undo an uncommitted merge, use :hg:`merge --abort` 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.
r\   r.  r   previews&   cannot abort merge with %s in progressrM   s"   cannot specify a node with --abortr9  rh  s   merge.require-revs8   configuration requires specifying revision to merge withNs+   merging with the working copy has no effectr{  )r'  r  r   r;  r=  r>   r  )s   working copys	   merge revs   common ancestor)r  r  ) rO   rb   ri  r   r   wrongtooltocontinuer   rQ  rP   rT   r   rQ   rN   rS   r"   
abortmergerV   r#   r   r  r   	destmerger   rM  findmissingr  r+   re   r?  r@  r[  r$   )rV   rW   r   rX   r\   r2   r   r   ri  r  r  rl  r  r  s                 r[   r$   r$     sw   h HHWE!!#t{{2##D!H+6((w	8JK**40U]]h."";<NZZ\  ""1%J#KLL}}TWWd++xx4q!DEFFxx""4.==&:;;""  8%%d+,
xxz<=
 	
 xx	$Z__XXZ**2$rd*C11h**40
	 DNN4:&  (&#)>?I			9h	/!Dxx8 
0	/	/s   3*L''
L5s   outstanding uncommitted merges:   To continue:    hg commit
To abort:       hg merge --aborts%   use 'hg commit' or 'hg merge --abort')r   r  allowcommitcmdmsgrR   
statushintr  s   outgoing|outs6   a changeset intended to be included in the destinations(   a specific branch you would like to pushs)   [-M] [-p] [-n] [-f] [-r REV]... [DEST]...c                   [         R                  " U5      nUR                  S5      (       a  [        R                  " XU5       H  n[
        R                  " XU5      n SUR                  S5      ;  a-  U R                  [        S5      5         UR                  5           gU R                  [        S5      [        R                  " UR                  5      -  5        U R                  S5        [        R                   " XU5      UR                  5         s  $    [
        R                   " XX#5      $ ! UR                  5         f = f)a  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.
r  rW  r  r   r  s   outgoing)r+   re   rO   r<   r  r"   r  rX  r  r   r@  rU   r  r  r   r   r  )rV   rW   r  rX   r   r(  s         r[   r  r    s    H %Dxx**4U;DGGD-E
u~~m'DDGGACDE  		,-0D0DTXX0NN % ))"E: < ;;r-- s   /D/!A"D//Es   parentss&   show parents of the specified revisions   [-r REV] [FILE]c                V   [         R                  " U5      nUR                  S5      nU(       a  [        R                  " X/S5      n[
        R                  " XS5      nU(       Ga"  [        R                  " XR4U5      nUR                  5       (       d  [        UR                  5       5      S:w  a  [        R                  " [        S5      5      eUR                  5       S   n/ nUR                  5        H-  nU(       d  M   UR                  UR!                  U5      5        M/     U(       d"  [        R                  " [        S5      U-  5      e/ n	U H1  n
UR%                  X*S9nU	R                  UR'                  5       5        M3     O-UR                  5        Vs/ s H  oR'                  5       PM     n	n[
        R(                  " XU5      nU	 H'  nXR*                  :w  d  M  UR-                  X   5        M)     UR/                  5         g! [        R"                   a     GM.  f = fs  snf )	a  show 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.
rs   r   Nr   s%   can only specify an explicit filenamer   s   '%s' not found in manifest)fileid)r+   re   rO   r/   r   r#   r   rd   rn   r   r  r   rS   r   rU  r   r   r  filectxr   r  r   r?  r@  )rV   rW   file_rX   r   r   ri   	filenodescpr  r   r   r  r  s                 r[   rU  rU    s   J %D
((6
C
))$yA


t$
/CMM#x.99;;#aggi.A-""1%M#NOO	!	++-B  U!34	   ""1%B#Ce#KLLB<<<1DHHTYY[!  "%/2WWY/--b=INN47#  OO $$  0s    H
H&
H#"H#   pathss   [NAME]c           	        [         R                  " X5      nU R                  S5        U R                  S[        R
                  " U5      5      nUR                  5       (       a  [         R                  nO[        nU R                  (       a  SnOSnU(       + =(       a    U R                  (       + nU H  u  pUR                  5         UR                  U(       + SXy5        UR                  U R                  (       + SSU" U
R                  5      5        [        U
R                  R                  5       5       HW  u  pUS;  d   eU(       a  UR!                  SX4-  5        [         R"                  U   nU" U5      nUR                  XSU5        MY     M     UR%                  5         U(       a3  U(       d,  U R                  (       d  U R'                  [)        S5      5        g	g
)a_  show aliases for remote repositories

Show definition of symbolic path name NAME. If no name is given,
show definition of all available names.

Option -q/--quiet suppresses all output when searching for NAME
and shows only the path names when listing all definitions.

Path names are defined in the [paths] section of your
configuration file and in ``/etc/mercurial/hgrc``. If run inside a
repository, ``.hg/hgrc`` is used, too.

The path names ``default`` and ``default-push`` have a special
meaning.  When performing a push or pull operation, they are used
as fallbacks if no location is specified on the command-line.
When ``default-push`` is set, it will be used for push and
``default`` will be used for pull; otherwise ``default`` is used
as the fallback for both.  When cloning a repository, the clone
source is written as ``default`` in ``.hg/hgrc``.

.. note::

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

.. container:: verbose

  Template:

  The following keywords are supported. See also :hg:`help templates`.

  :name:    String. Symbolic name of the path alias.
  :pushurl: String. URL for push operations.
  :url:     String. URL or directory path for the other operations.

Returns 0 on success.
r  r  s   %s =    name   url)r  r  s   %s:%s = s   not found!
r   r   )r<   
list_pathsr   r   r+   re   r   r  bytesr   r   r  rawlocr  
suboptionsr  r   path_suboptions_displayr   r  r   )rV   rW   searchrX   	pathitemsr  r  namefmtshowsuboptsr  r   suboptvaluer  s                 r[   pathsr    s\   d ""2.IHHX	h 4 4T :	;B	zz||++	xx*-RXXK


Z'8
\67L4MN#DOO$9$9$;<MF!2222~5655f=GENELLgu= =	   FFHixxGGAo&'r>      phases   publics   set changeset phase to publics   set changeset phase to drafts   set changeset phase to secrets   allow to move boundary backwards   target revisions   [-p|-d|-s] [-f] [-r] [REV...]c           	       ^^ [         R                  " U5      nSn[        [        R                  5       H4  u  pVX6   (       d  M  Ub  [
        R                  " [        S5      5      eUnM6     [        U5      nUR                  US   5        U(       a  [        R                  " X5      nO0US   R                  5        Vs/ s H  owR                  5       PM     nnSnUcA  U H9  n	X   n
U R                  SU
R                  5       U
R                  5       4-  5        M;     U$ UR!                  5          UR#                  S5       nU(       d  [
        R                  " [        S5      5      eU V	s/ s H  oU	   R%                  5       PM     nn	UR'                  5       nUR(                  R*                  nU V	s/ s H
  o" X5      PM     sn	m[        R,                  " XXL5        US   (       a  [        R.                  " XXL5        SSS5        SSS5        WR(                  R*                  nU V	s/ s H
  o" X5      PM     sn	m[1        UU4S	 jU 5       5      nUR2                  nW Vs/ s H  nTUR                  U5         U:  d  M  UPM!     nnU(       a(  U R5                  [        S
5      [7        U5      -  5        SnU(       a<  [        S5      U-  nU(       a  U R9                  U5        U$ U R;                  U5         U$ U R5                  [        S5      5        U$ s  snf s  sn	f s  sn	f ! , (       d  f       GN0= f! , (       d  f       GN:= fs  sn	f s  snf )a  set 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 changesets from a
lower phase to a 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`.)
Ns   only one phase can be specifiedrs   r   s   %i: %s
r  r  r  c              3  :   >#    U  H  nTU   TU   :g  v   M     g 7fr   r   )r   r  newdataolddatas     r[   r   phase.<locals>.<genexpr>  s     =1gajGAJ.s   s9   cannot move %i changesets to a higher phase, use --force
r   s    phase changed for %i changesets
s   no phases changed
)r+   re   r   r*   cmdphasenamesr   rS   r   r   r  r#   r   rU  r   r   r  r3  rZ  r   
unfiltered_phasecachephaseadvanceboundaryretractboundarysumrM  r  r   rU   r  )rV   rW   r  rX   targetphaseidxr  r  rv  r  r   r  r  unfigetphasechangesr&  r  rk   rn  r  r  s                       @@r[   r  r  u  s   : %DKv334	::&&&q)K'LMMK	 5 :DKKV""4. "&d!3!3!56!5A!56
CA'CHH[CGGIs||~#>>? N JG YY[$**84&&q)>'?@@-12T!W\\^TE2 ??$D''--H267$Qx($7G""4[@H~&&tD 5[ ##)).23d8D$d3===^^$Iu!q	(:[(HAuIGG, h-	  C89GCC		#
 J  J GGA,-.JY 7 3
 8 54[[ 4 JsZ   >L/L;+L),L,L)4L$;L) L;*M$MM
L))
L8	3L;;
M
   updates8   update to new branch head if new descendants were pulleds,   run even when remote repository is unrelateds   confirms$   confirm pull before applying changess   bookmark to pulls   remote-hiddens6   include changesets hidden on the remote (EXPERIMENTAL)s<   [-u] [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [SOURCE]...c                
   U R                  SS5      (       a@  UR                  S5      (       a*  [        S5      n[        S5      n[        R                  " XES9eSn[
        R                  " XU5       GH  nU R                  [        S5      [
        R                  " UR                  5      -  5        U R                  5         [        R                  " U[        R                  " U5      UUS	   S
9nSn UR                  UR                  S/ 5      4n	[        R                   " UUU	UR                  S5      US	   S
9u  p0 nSnUR                  S5      (       d  U
(       Ga  / n/ nU
=(       d    / n
U
(       a7  UR#                  S5      (       d!  [        S5      n[        R$                  " U5      eUR'                  5        nUR)                  SSS05      nU
 H&  nUR+                  UR)                  SSU05      5        M(     SSS5        WR-                  5       n[.        R0                  " U5      nUUS'   UR                  S/ 5       HZ  nUR2                  R5                  U5      nUU;  a"  [        R                  " [        S5      U-  5      eUR+                  UU   5        M\     [7        U
5       H4  u  nnUU   R-                  5       nUR+                  U5        UU:X  d  M2  UnM6     [8        R:                  " 5       nUR                  S5      (       a  UR=                  5       nU   UR?                  UR                  S0 5      5        [@        RB                  " UUUUUR                  S5      UR                  SS5      UUR                  S5      S9RD                  nSnU(       as  URG                  5       RH                  RK                  U5      nUR                  S5      (       a	  US   S   nO+UR                  S5      (       a	  US   S   nOUR                  nUR                  Ul&         [N        RP                  " XUUR                  S5      UU5      n U?& SSS5        URW                  5         U(       d  GM    O   U(       a  gg! , (       d  f       GN= f! [        RR                   a9  n[        S5      URT                  S   -  nU4URT                  SS -   Ul*        e SnAff = f! U?&f = f! , (       d  f       N= f! URW                  5         f = f)a  pull changes from the specified source

Pull changes from a remote repository to a local one.

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

When cloning from servers that support it, Mercurial may fetch
pre-generated data. When this is done, hooks operating on incoming
changesets and changegroups may fire more than once, once for each
pre-generated bundle and as well as for any additional remaining
data. See :hg:`help -e clonebundles` for more.

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.

If multiple sources are specified, they will be pulled sequentially as if
the command was run multiple time. If --update is specify and the command
will stop at the first failed --update.

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

.. container:: verbose

    One can use the `--remote-hidden` flag to pull changesets
    hidden on the remote. This flag is "best effort", and will only
    work if the server supports the feature and is configured to
    allow the user to access hidden changesets. This option is
    experimental and backwards compatibility is not garanteed.

Returns 0 on success, 1 if an update had unresolved files.
rh     update.requiredestr  s,   update destination required by configurations&   use hg pull followed by hg update DESTrM   Ns   pulling from %s
remote_hidden)remotehiddenrX  r   r  s   lookupsO   other repository doesn't support revision lookup, so a rev cannot be specified.s   listkeyss	   namespacer  s   keys   remotebookmarkss   remote bookmark %s not found!opargsr  r   confirm)r   r  r  r   r  r  r   s   cannot update to target: %sr   ),r  rO   r   r   rS   r<   r  rU   r  r  flushr"   r  r+   re   rX  r  capabler  commandexecutorcallcommandr   resultr   unhexlifybookmarksr  r  r   r4   r  ra   r  r   rH  cgresultr  rM  r   _subtoppathr   postincomingFilteredRepoLookupErrorr  r@  )rV   rW   sourcesrX   rn  rN   update_conflictr   r(  r  r  r+  
pullopargsr  fnodeserrrH  fremotebookmarksr  remotebookmarksr;  r  r   r   ra   modheadsbrevexcs                               r[   rH  rH    so   t 
}}["788TXXh=O=O?@:;s..O&&t9
		!()G,@,@,JJK

  &o.	
 c	TXXh%;<H--!/2ND JExx
##t
 zri 8 89C  ++c****,'(}}#lL%A($ "ammI{&KL "	 - #3"9"9";"+">">"O1@
-.*b1A2215A/#..>?!C  LL!34 2 (oFAs!!9++-DLL&h#'	 . ++-Exx!!

!!$((8R"89#==((7+"hhz26% HHY/	 (  #0::>>xHH
 xx#E{1~(++#H~a0#{{
 $(88 	)&-&:&:(DHHX,>$'O (Y ^ KKM?a :b _ -,@ 44 :;chhqkIC #v4CH
 (Y ^ KKMsw   1C	S7:AQ=;CS7AS7DS&!)RS&S7=
R	S7S#4SSSS##S&&
S4	0S77T	s   purge|cleans   abort-on-errs   abort if an error occurss   purge ignored files too   ignoreds   purge only ignored filess   dirss   purge empty directoriess   purge filess   prints(   print filenames instead of deleting thems?   end filenames with NUL, for use with xargs (implies -p/--print)s%   ask before permanently deleting filess   hg purge [OPTION]... [DIR]...c                   [         R                  " USS5        UR                  S5      (       + nSnUR                  S5      (       a  SnSnUR                  SS5      (       a  SnSnOUR                  SS5      nU(       + nUR                  S	5      nUR                  S
5      n	UR                  S5      n
U
c   [        R                  " S5        Sn
U(       d  U	(       d  SnSn	[        R                  " US   U[        R                  " U5      5      n[        R                  " UUUUU	UUR                  S5      U(       + U
S9	nU H!  nU(       a  M  U R                  SX4-  5        M#     g! [
         a    Sn
 Nf = f)a
  removes files not tracked by Mercurial

Delete files not known to Mercurial. This is useful to test local
and uncommitted changes in an otherwise-clean source tree.

This means that purge will delete the following by default:

- Unknown files: files marked with "?" by :hg:`status`
- Empty directories: in fact Mercurial ignores directories unless
  they contain files under source control management

But it will leave untouched:

- Modified and unmodified tracked files
- Ignored files (unless -i or --all is specified)
- New files added to the repository (with :hg:`add`)

The --files and --dirs options can be used to direct purge to delete
only files, only directories, or both. If neither option is given,
both will be deleted.

If directories are given on the command line, only files in these
directories are considered.

Be careful with purge, as you could irreversibly delete some files
you forgot to add to the repository. If you only want to print the
list of files that this program would delete, use the --print
option.
r   ignoredprintr   r  r  FTr  dirsr  Ns   purgeabort_on_err)rm  r  removeemptydirsremovefilesabortonerrornoopr  rb  )r   r  rO   r   findKeyErrorr/   rd   r+   re   r\  purger   )rV   rW   r  rX   actr  r  rm  r  
removedirsr  rd   r  r   s                 r[   r   r     s]   l !!$y9hhw
C
Cxxxxu((9e,+((7#K&!Jhhy!G	OOH%G z
MM$t*dH,@,@,FGENN"XXn-W
E sHHW{*+ +  	G	s   7E( (E76E7   pushs
   force pushs   bookmark to pushs   all-bookmarkss!   push all bookmarks (EXPERIMENTAL)s
   new-branchs   allow pushing a new branch   pushvarss/   variables that can be sent to server (ADVANCED)   publishs+   push the changeset as public (EXPERIMENTAL)s5   [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]...c                	   [         R                  " U5      nUR                  S5      (       a2  [        R                  " USSS/5        [        UR                  5      US'   UR                  S5      (       a  U R                  SSUS   S5        US    Hq  nUR                  R                  U5      nXAR                  ;   a#  UR                  S/ 5      R                  U5        MP  UR                  S/ 5      R                  S5        Ms     SnS	n[        R                  " XU5       GHu  nUR                  nUR                  UR                  S
5      =(       d    / 4n	U R                  [!        S5      [        R"                  " U5      -  5        [$        R&                  " XXR                  S5      5      u  p[$        R(                  " XU5      n U
(       ae  [*        R,                  " X5       Vs/ s H  oU   R/                  5       PM     n
nU
(       d'  [0        R2                  " [!        S5      [!        S5      S9eOUR4                  (       a  [6        R8                  " SUR4                  5      n[:        R,                  " X/5      n
U
 Vs/ s H  oU   R/                  5       PM     n
nU
(       d  [0        R2                  " [!        S5      5      eO>U R=                  SS5      (       a'  [0        R2                  " [!        S5      [!        S5      S9eXl         US   nUR@                  n[C        U5       H>  nURE                  U5      RG                  U5      nUS	:X  d  M+    U?URI                  5           g   U?[K        UR                  S0 5      5      nUR                  S/ 5      RM                  UR                  S/ 5      5        [N        RF                  " UUUR                  S5      U
UR                  S5      UR                  SS5      UR                  S5      US9nURP                  S	:X  a  SnOURP                  b  SnURR                  b-  URR                  S:X  a  SnOU(       d  URR                  (       a  SnU(       a   URI                  5           O URI                  5         GMx     US	:X  a	  U(       d  SnU$ s  snf s  snf ! U?f = f! URI                  5         f = f) a	  push changes to the specified destination

Push changesets from the local repository to the specified
destination.

This operation is symmetrical to pull: it is identical to a pull
in the destination repository from the current one.

By default, push will not allow creation of new heads at the
destination, since multiple heads would make it unclear which head
to use. In this situation, it is recommended to pull and merge
before pushing.

Use --new-branch if you want to allow push to create a new named
branch that is not present at the destination. This allows you to
only create a new branch without forcing other changes.

.. 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. Use the --all-bookmarks option for pushing all
current bookmarks.

Please see :hg:`help urls` for important details about ``ssh://``
URLs. If DESTINATION is omitted, a default path will be used.

When passed multiple destinations, push will process them one after the
other, but stop should an error occur.

.. container:: verbose

    The --pushvars option sends strings to the server that become
    environment variables prepended with ``HG_USERVAR_``. For example,
    ``--pushvars ENABLE_FEATURE=true``, provides the server side hooks with
    ``HG_USERVAR_ENABLE_FEATURE=true`` as part of their environment.

    pushvars can provide for user-overridable hooks as well as set debug
    levels. One example is having a hook that blocks commits containing
    conflict markers, but enables the user to override the hook if the file
    is using conflict markers for testing purposes or the file format has
    strings that look like conflict markers.

    By default, servers will ignore `--pushvars`. To enable it add the
    following to your configuration file::

        [push]
        pushvars.server = true

Returns 0 if push was successful, 1 if nothing to push.
s   all_bookmarksr  rs   r  s   pushingr#     nullFr   r  s   pushing to %s
s,   specified revisions evaluate to an empty sets    use different revision argumentsrM   s	   heads(%r)s6   default push revset for path evaluates to an empty setrh  s   push.require-revss   no revisions specified to pushs   did you mean "hg push -r ."?r{  r   s   opargsr$  r  s
   new_branchr   r%  )r  	newbranchr   publishr  Trz  )*r+   re   rO   r   rQ  r   r  rp  r  
setdefaultr   r<   r  r  rX  rU   r   r  r"   r  r  r#   r   r   r   rS   pushrevr-   
formatspecr/   r  r  substater  subpushr@  dictr  r   r  bkresult)rV   rW   r  rX   r;  some_pushedr  r   r+  r  r  r+  r(  r  exprr   r  subsrw  
sub_resultr  pushops                         r[   r/  r/    s!   H %Dxx !!,,&!	

 !1[xx
\:tK/@'Jk"A**1-AOO#+2215 +227; # KF&&t7xxKK)!4!:;
		!&''*>*>t*DDE))((6"2
 D)E	0:0C0CD0OP0O1Q0OP**IJBC  
  ",,\4<<H''f5489DSS	(D9**U   {,@AA&&78:; 
  $	%JzzA!"qt!4J!Q $B KKMM &
 $B'F k2.55dhh{B6OP]]"((=1((;3,	F !#,"*??a'FFOOF KKM	  KKM] 8^ {;MM Q :. $B KKMsX   R='R,A>R=R1A-R=AR6R6R='R6)D	R=,
R=6R::R==Ss   recover)r>      verifyFs(   run `hg verify` after successful recoverc                    UR                  5       nU(       a=  US   (       a  [        R                  " U5      $ [        S5      nU R	                  U5        gg)a  roll 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.
r5   sH   (verify step skipped, run `hg verify` to check your repository content)
r   r   )recoverr"   r5   r   r  )rV   rW   rX   rv  rn  s        r[   r9  r9    sI    $ ,,.C
>99T?")C GGCLr>   s	   remove|rms   record delete for missing filess)   forget added files, delete modified filesc                p   UR                  S5      UR                  S5      pTUR                  S5      nU(       d&  U(       d  [        R                  " [        S5      5      eUR	                  5          UR
                  R                  U5         [        R                  " US   U[        R                  " U5      5      nUR                  S5      n[        R                  " USS9n	[        R                  " XUS	XXXUS
9	sSSS5        sSSS5        $ ! , (       d  f       O= fSSS5        g! , (       d  f       g= f)a  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.
afterr  rK   r  Nr#  Tr_   r>   )rY   )rO   r   rS   r   ra   rb   rc   r/   rd   r+   re   rf   r   remove)
rV   rW   rh   rX   r;  r  rY   ri   r#  rj   s
             r[   r<  r<    s    j 88G$dhhw&75XXi Fq!6788	t}}33D9MM$t*dH,@,@,FG88J'&&tF~~ahuv
	 :999s%   0D'A.D:	D'
D	D''
D5s   rename|move|mvs$   unmark a destination file as renameds)   record a rename that has already occurreds5   (un)mark renames in the given revision (EXPERIMENTAL)s+   forcibly move over an existing managed files   [OPTION]... SOURCE... DESTc           
        S nUR                  S5      nU(       a=  [        R                  " X5      nUR                  5       b  S nUR                  5       US'   UR	                  5          U" U5         [
        R                  " XU[        R                  " U5      SS9sSSS5        sSSS5        $ ! , (       d  f       O= fSSS5        g! , (       d  f       g= f)a3  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.

To undo marking a destination file as renamed, use --forget. With that
option, all given (positional) arguments are unmarked as renames. The
destination file(s) will be left in place (still tracked). The source
file(s) will not be restored. Note that :hg:`rename --forget` behaves
the same way as :hg:`copy --forget`.

This command takes effect with the next commit by default.

Returns 0 on success, 1 if errors are encountered.
c                8    U R                   R                  U 5      $ r   r  r  s    r[   r   rename.<locals>.<lambda>o  r  r>   r  Nc                ,    [         R                  " 5       $ r   r  r  s    r[   r   rename.<locals>.contextv  r  r>   T)r  r  r  s          r[   r  r  B  s    Z >G
((8
C
""4-779 1 !WWYDN	wt}||dH006t
 %}}}s$   )	C
2+B0	C
0
B>	:C


C   resolves   select all unresolved filess!   list state of files needing merges   marks   mark files as resolveds   unmarks   mark files as unresolveds	   no-statuss   hide status prefixs   re-merges   re-merge filesc                  ^^$ [         R                  " T5      mU R                  SS5      nSR                  5       nU4S jU 5       u  pgpp[	        [        [        SXX/5      5      5      nUS:  a  [        R                  " [        S5      5      eUS:X  a@  U R                  SS	5      (       a)  [        S
5      n[        R                  " [        S5      US9eU(       a&  U(       a  [        R                  " [        S5      5      eU(       d:  U(       d3  U	(       d,  U(       d%  U(       d  [        R                  " [        S5      SS9eU(       a  U(       a>  U R                  [        S5      5      (       a  [        R                  " [        S5      5      eU(       aE  U(       d>  U R                  [        S5      5      (       a  [        R                  " [        S5      5      eU(       aE  U(       d>  U R                  [        S5      5      (       a  [        R                  " [        S5      5      e[        R                  " U5      m$U	(       Ga4  U R                  S5        U R                  ST5      n[         R"                  R%                  U5      nUS   n[        R&                  " UUT5      n[         R(                  S[         R*                  S[         R,                  S[         R.                  S0nU H|  nU" U5      (       d  M  UUU      u  nnUR1                  5         UR3                  US9  UR5                  U
(       + SSUUS9  UR7                  US9  UR9                  ST$" U5      -  US9  M~     UR;                  5         gUR=                  5          [         R"                  R%                  U5      nUR?                  5       (       dG  UR@                  RC                  5       URD                  :w  d  [        RF                  " [        S5      5      eUS   n[        R&                  " UUT5      nSnSn/ nU(       a  U RI                  SS 5      nUS!;  a  SnU GH8  nU" U5      (       d  M  S"nUU   [         R,                  [         R.                  4;   a  U(       a!  URK                  U[         R.                  5        ObU(       a!  URK                  U[         R,                  5        O:UU   [         R,                  :X  a#  U RM                  [        S#5      T$" U5      -  5        M  U(       a  W(       a^  URN                  RQ                  U5      n[R        RT                  " U5      (       a(  UU   [         R*                  :w  a  URW                  U5        URK                  U[         R*                  5        GMW  U(       a#  URK                  U[         R(                  5        GM  URY                  U5      n [Z        R\                  " UUS$-   5         S%TRa                  S&S'5      0nU Rc                  US5         URe                  UU5      nSSS5        W(       a  SnURg                  5          [Z        Rh                  " US$-   [        Rj                  " XU5      5        GM;     U(       aq  U RM                  [        S(5      S'Rm                  U$4S) jU 5       5      -   5        WS*:X  a5  U(       d.  U(       d'  [        RF                  " [        S+5      [        S,5      S9eURg                  5         UR@                  RC                  5       URD                  :g  nUR@                  Ro                  U5         [         Rp                  " XRs                  5       US5        SSS5        U(       Gd  U(       Ga  Sn[u        U Vs/ s H  nURw                  S-5      S:  d  M  UPM     sn5      (       d  U Vs/ s H  nS.U-  PM
     nn[        R&                  " UUT5      nU Ht  nU" U5      (       d  M  S/ n S'Rm                  U V!s/ s H#  n!TRa                  U!5      (       d  M  U " U!5      PM%     sn!5      n"[        S05      U"S1Rm                  U5      4-  n  O   U RM                  [        S25      5        U(       a  U RM                  U5        SSS5        WRy                  5       n#U#(       d0  U R{                  [        S35      5        [|        R~                  " U5        W$ ! [^         a     GN
f = f! , (       d  f       GN= f! URg                  5         f = f! [^         a     GM  f = f! , (       d  f       GN= fs  snf s  snf s  sn!f ! , (       d  f       N= f)4a  redo merges or set/view the merge status of files

Merges with unresolved conflicts are often the result of
non-interactive merging using the ``internal:merge`` configuration
setting, or a command-line merge tool like ``diff3``. The resolve
command is used to manage the files involved in a merge, after
:hg:`merge` has been run, and before :hg:`commit` is run (i.e. the
working directory must have two parents). See :hg:`help
merge-tools` for information on configuring merge tools.

The resolve command can be used in the following ways:

- :hg:`resolve [--re-merge] [--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.
  You can use ``set:unresolved()`` or ``set:resolved()`` to filter
  the list. See :hg:`help filesets` for details.

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

.. container:: verbose

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions. See also :hg:`help templates`.

  :mergestatus: String. Character denoting merge conflicts, ``U`` or ``R``.
  :path:    String. Repository-absolute path of the file.

Returns 0 on success, 1 if any files fail a resolve attempt.
rh  s   resolve.confirms'   all mark unmark list no_status re_mergec              3  F   >#    U  H  nTR                  U5      v   M     g 7fr   r   )r   r  rX   s     r[   r   resolve.<locals>.<genexpr>  s     1Px!$((1++xs   !Nr   s   too many actions specifiedr   s   resolve.explicit-re-merges*   use --mark, --unmark, --list or --re-merges   no action specifiedrM   s    can't specify --all and patterns!   no files or directories specifieds*   use --all to re-merge all unresolved filess1   re-merge all unresolved files (yn)?$$ &Yes $$ &Nos	   user quits9   mark all unresolved files as resolved (yn)?$$ &Yes $$ &Nos9   mark all resolved files as unresolved (yn)?$$ &Yes $$ &NorB  )   resolve.unresolvedrw  )s   resolve.resolvedr=   )rG  r  r  s   mergestatusr   r  r   r  s/   resolve command not applicable when not mergingFs   resolve.mark-check)s   warnrG   Ts,   %s: path conflict must be resolved manually
s   .resolver;     toolr>   s:   warning: the following files still have conflict markers:
c              3  @   >#    U  H  nS T" U5      -   S-   v   M     g7f)s     r   Nr   )r   r  rj   s     r[   r   rE  n  s#      9KAEHQK'%/9Ks   rG   s   conflict markers detecteds   use --all to mark anywayr   s   path:%sc                     U S:X  a  gSU SS -  $ )Ns   re_merges   --re-merge s   -%s r   r   r   )r  s    r[   flagresolve.<locals>.flag  s    +#1&1Q//r>   s   (try: hg resolve %s%s)
r   s1   arguments do not match paths that need resolving
s   (no more unresolved files)
)@r+   re   r  r  r   r   filterr   rS   r   promptchoiceCanceledErrorr/   rf   r   r   mergestatemodr%   r  rd   MERGE_RECORD_UNRESOLVEDMERGE_RECORD_RESOLVEDMERGE_RECORD_UNRESOLVED_PATHMERGE_RECORD_RESOLVED_PATHr   r   r  r   r   r   ra   r  rb   ri  r   rQ   r  markr  wvfstryreadr   hasconflictmarkersr   r  r4   copyfileFileNotFoundErrorrO   r[  resolver8  r  
backuppathr   changing_parentsrecordupdatesactionsanyr  r`  rU   r   checkafterresolved)%rV   rW   rh   rX   r  flaglistr   rU  unmarkr?  nostatusremergeactioncountrN   r  mswctxri   mergestateinfor  r  r  rv  didworkrX  	markcheckfdataarl  r  r  r  rK  r  r  unresolvedfrj   s%      `                                @r[   r[  r[    s   J %DmmK);<G9??AH1Px1P.CvXd6$V(EFGHKQq!>?@@		bmm1  >?q!78tDDq!DEFF444623>
 	

 FG  ))!L/::&  ))!L/::$&  ))!L/::""4(H
\\*d+%%**40DzMM$d+ 11 4 //1L66 9 44 7
  AQ44'1.JE3LLNJJ4J LLX~vs%LPGGGOHHWx{*%H8  		%%**40		t}}//1T[[@""DE  DzMM$d+		+/DEI 33!	AQ44G !u::88  GGA}GGHGGA}IIJUmHHHGGJK"1+&  II--a0E!44U;;qE]%H%HH*11!4=>>?=@@A JJqMMM!Q_5 !7'39O PI**9jAJJq$/ BIIKKKK););Ba)Hk v GG" (( 9K 	 H$S&&2367 
 			mm&&(DKK7 ]]++D1''jjlKN 2 4D4=4a166$<1+<4=>>0451
Q5MM$d3AQ44 0
  HHx%Ox!488A;gd1gx%OPE89		$= D   GGAKLMK 
N $$&K
		!345""4(Jg )  BA
 IIK ) B 21
 >5 &P{ 
s   
Ie!c6:&d d3de!/d.Ce!'e :#e!e
:e
 e!eA e!e=e	Ae!6
d e!de!
ddd++e!.
d=8e!<d==e! 
e	
e!!
e/s   reverts*   revert all changes when no arguments givens   tipmost revision matching dates    revert to the specified revisions	   no-backups"   do not save backup copies of filess    interactively select the changess   [OPTION]... [-r REV] [NAME]...c                   UR                  S5      (       a6  [        R                  " USS/5        [        R                  " XUS   5      US'   UR                  R                  5       u  pEUR                  S5      (       d6  XQR                  :w  a'  [        R                  " [        S5      [        S5      S9eUR                  S5      nU(       a  [        R                  " X/S5      n[        R                  " X5      nU(       Gd4  UR                  S5      (       Gd  UR                  S5      (       Gd  UR                  S	5      (       d  UR                  S
5      (       d  [        S5      nXQR                  :w  a  [        S5      n	[        R                  " XS9e[        UR                  5       5      n
UR!                  5       nX:w  aA  U
(       a  [        S5      UR#                  5       -  n	O;[        S5      UR#                  5       -  n	OU
(       a  [        S5      n	O[        S5      n	[        R                  " XS9e[        R$                  " XU/UQ70 UD6$ )a   restore files to their checkout state

.. note::

   To check out earlier revisions, you should use :hg:`update REV`.
   To cancel an uncommitted merge (and lose your changes),
   use :hg:`merge --abort`.

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.
r   r   s,   uncommitted merge with no revision specifieds'   use 'hg update' or see 'hg help revert'rM   r   rF  rG  r   r^  rF  s[   uncommitted merge, use --all to discard all changes, or 'hg update -C .' to abort the mergesR   uncommitted changes, use --all to discard all changes, or 'hg update %d' to updates:   use --all to revert all files, or 'hg update %d' to updates5   uncommitted changes, use --all to discard all changess   use --all to revert all files)rO   r   rQ  finddaterb   rU  r   r   rS   r   r/   r   r#   r   r`  rU   r   r   rd  )rV   rW   rh   rX   r:  ri  r   r   rn  rN   ra  r   s               r[   rd  rd    s   f xx,,T6E7C&&rf>U&&(JF88E??r[[0=>=>
 	

 ((5/C
))$yA


t
)C 	88I88I88E??88M""45;D ""322DKKM"xxz>A ggi	   8 ggi	   MND56Ds..>>"C7$7$77r>      rollbacks   ignore safety measuresc                    U R                  SS5      (       d  [        R                  " [        S5      SS9eUR	                  UR                  S5      UR                  S5      S9$ )	a^  roll 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.
r<  rq  s)   rollback is disabled because it is unsafes)   see `hg help -v rollback` for informationrM   rK   r  )rY   r  )r  r   r  r   rollbackrO   )rV   rW   rX   s      r[   rs  rs    sZ    d ==,,kk:;=
 	
 == 3488G;L=MMr>   r  )r  rH   c                *   [         R                  " U5      nU R                  SU5       nUR                  5         UR	                  SSUR
                  5        UR                  UR                  UR                  S9  SSS5        g! , (       d  f       g= f)a  print the root (top) of the current working directory

Print the root directory of the current repository.

.. container:: verbose

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions. See also :hg:`help templates`.

  :hgpath:    String. Path to the .hg directory.
  :storepath: String. Path to the directory holding versioned data.

Returns 0 on success.
r  s   reporootr  )hgpath	storepathN)	r+   re   r   r   r   r'  r   r   spath)rV   rW   rX   r  s       r[   r'  r'  Q  se    . %D	gt	$

gtyy1
tyyDJJ7 
%	$	$s   AB
Bs   serves	   accesslogs#   name of access log file to write tos   daemons   run server in backgrounds   daemon-postexecs   used internally by daemon mode   Es   errorlogs"   name of error log file to write tos   ports!   port to listen on (default: 8000)s   PORTs   addresss.   address to listen on (default: all interfaces)s   ADDRs0   prefix path to serve from (default: server root)r  s6   name to show in web pages (default: working directory)s   NAMEs   web-confs3   name of the hgweb config file (see 'hg help hgweb')s   webdir-confs*   name of the hgweb config file (DEPRECATED)s   pid-files#   name of file to write process ID to   stdios   for remote clients (ADVANCED)s	   cmdservers	   templatess   web templates to uses   TEMPLATEs   styles   template style to uses   STYLE   6s   ipv6s   use IPv6 instead of IPv4s   certificates   SSL certificate files	   print-urls   start and print only the URLs   [OPTION]...)rH   rI   r|  c                   [         R                  " USS/5        [        R                  " U5      nUS   (       a0  U R                  (       a  [
        R                  " [        S5      5      eUS   (       a  Uc  [
        R                  " [        S5      5      eSnUR                  cl  U R                  S	S
5      n[        R                  " 5       nU(       a  [        R                  " XU5      (       a  SnO[        S5      U-  nU R                  U5        [         R"                  " XUS9nUR%                  5         g[&        R(                  " XU5      n[&        R*                  " X(R,                  UR.                  S9$ )ae  start stand-alone webserver

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

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

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

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

Returns 0 on success.
stdio	cmdservers	   print_urls%   cannot use --print-url with --verbosery  NrT  Fr  s   server.allow-hidden-accessTsE   ignoring request to access hidden changeset by unauthorized user: %s
)accesshidden)initfnrunfn)r   rQ  r+   re   r  r   rS   r   	RepoError
filtername
configlistr:   getuserr/   ismemberr  r6   	sshserverserve_foreverr0   createservice
runservicer  run)	rV   rW   rX   r~  allowr   rn  rw  services	            r[   server  o  s:   d ((wF%DLbjjq!IJKKH~<//JK  ??"MM!>E ##%D))"E::# 3 	  %%b\J	""2T2GT,,gkkJJr>   s   shelves7   mark new/missing files as added/removed before shelving   unknowns!   store unknown files in the shelve   cleanups   delete all shelved changess%   shelve with the specified commit dates"   delete the named shelved change(s)   keeps1   shelve, but keep changes in the working directorys   list current shelves   messages   use text as shelve messages)   use the given name for the shelved commit   patchs]   output patches for changes (provide the names of the shelved changes as positional arguments)s   interactive moder  sk   output diffstat-style summary of changes (provide the names of the shelved changes as positional arguments)s   hg shelve [OPTION]... [FILE]...c                X  ^^ [         R                  " T5      mSS14SS14SS14SS14SS14SS14SS14S	S14S
S14SSS14SSS14/mUU4S jnU" S5      (       a<  U(       a  [        R                  " [	        S5      5      e[
        R                  " X5      $ U" S5      (       a  [
        R                  " XU5      $ U" S5      (       a  [
        R                  " XUT5      $ U" S5      (       d  U" S5      (       a  [
        R                  " XUT5      $ [
        R                  " XUT5      $ )a  save and set aside changes from the working directory

Shelving takes files that "hg status" reports as not clean, saves
the modifications to a bundle (a shelved change), and reverts the
files so that their state in the working directory becomes clean.

To restore these changes to the working directory, using "hg
unshelve"; this will work even if you switch to a different
commit.

When no files are specified, "hg shelve" saves all not-clean
files. If specific files or directories are named, only changes to
those files are shelved.

In bare shelve (when no files are specified, without interactive,
include and exclude option), shelving remembers information if the
working directory was on newly created branch, in other words working
directory was on different branch than its first parent. In this
situation unshelving restores branch information to the working directory.

Each shelved change has a name that makes it easier to find later.
The name of a shelved change defaults to being based on the active
bookmark, or if there is no active bookmark, the current named
branch.  To specify a different name, use ``--name``.

To see a list of existing shelved changes, use the ``--list``
option. For each shelved change, this will print its name, age,
and description; use ``--patch`` or ``--stat`` for more details.

To delete specific shelved changes, use ``--delete``. To delete
all shelved changes, use ``--cleanup``.
rl   s   creater  r  r  r1  r  r  r  r  r  r  c                   > TR                  U 5      (       a@  T H9  u  pTU   (       d  M  X;  d  M  [        R                  " [        S5      X4-  5      e   gg )Ns2   options '--%s' and '--%s' may not be used togetherT)rO   r   rS   r   )optr  	allowable
allowablesrX   s      r[   checkoptshelve.<locals>.checkoptq  s`    88C== *77s3**- (	#  !+  r>   s+   cannot specify names when using '--cleanup')r+   re   r   rS   r   	shelvemod
cleanupcmd	deletecmdlistcmd	patchcmds	createcmd)rV   rW   rh   rX   r  r  s      ` @r[   r1   r1     sR   x %D		{#	i[!	j\"	YK 	9+	9+	7)	i[!	9+	Hg&'	7G$%J 
""@A  ##B--	)		""2T22	'		  466	(		x00""2T488""2T488r>   s   nothings	   status|sts   show status of all filess   modifieds   show only modified filess   addeds   show only added filess   show only removed filess   deleteds   show only missing filess   show only files without changess%   show only unknown (not tracked) filess   show only ignored files   terses$   show the terse output (EXPERIMENTAL)s6   show source of copied files (DEFAULT: ui.statuscopies)s   show difference from revisions$   list the changed files of a revisionc                   [         R                  " USS5        [        R                  " U5      nUR	                  S/ 5      nUR	                  SS5      nUR	                  S[
        5      nU[
        L a  U(       a  SnOU R                  SS5      nU(       a(  U(       a!  [        S	5      n[        R                  " U5      eU(       a@  [        R                  " X/S
5      n[        R                  " XS5      nUR                  5       n	O/[        R                  " XS
5      n[        R                  " X5      u  pSn
U R!                  SS5      (       a  U R#                  SS5      n
[        R$                  " U['        U5      U
S9nUR	                  S5      (       a  SnOSnSR)                  5       nU Vs/ s H  oR	                  U5      (       d  M  UPM     nnUR	                  S5      (       a'  XR*                  =(       a	    USS S/-   =(       d    U-  nU(       d  U R*                  (       a  USS nOUSS n[        R,                  " XU5      nU(       ag  UR/                  U	R1                  5       UR1                  5       USU;   =(       d    SU;   SSUR	                  S5      S9n[         R2                  " UU5      nOKUR/                  U	R1                  5       UR1                  5       USU;   SU;   SU;   UR	                  S5      5      n[5        U[        R6                  " S5      U Vs/ s H  n[9        UUR;                  S5      5      PM      sn5      n0 nU R#                  SS5      nUR	                  S 5      b  UR	                  S 5      nU=(       d    UR	                  S5      =(       a    UR	                  S!5      (       + nU(       a  [<        R>                  " XU5      nSnU R@                  (       d  U R#                  SS"5      (       aA  U RC                  5       (       d,  UR	                  S5      (       d  [         RD                  " U5      nU RG                  S#5        U RI                  S#U5      nS$U-   nUR	                  S!5      (       + nU H  u  nnnUU;   d  M  S%U-   nU H  nURK                  5         URM                  US&9  URO                  S'US(9  URQ                  US#S)UUS*9  URC                  UU" U5      -  US*9  UU;   a1  URO                  UU   S+9  URC                  S,U-   U" UU   5      -  S-S*9  U(       d  M  URS                  UU5        M     M     U(       a  URU                  U5        URW                  5         gs  snf s  snf ).a  show changed files in the working directory

Show status of files in the repository. If names are given, only
files that match are shown. Files that are clean or ignored or
the source of a copy/move operation, are not listed unless
-c/--clean, -i/--ignored, -C/--copies or -A/--all are given.
Unless options described with "show only ..." are given, the
options -mardu are used.

Option -q/--quiet hides untracked (unknown and ignored) files
unless explicitly requested with -u/--unknown or -i/--ignored.

.. note::

   :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

  The -t/--terse option abbreviates the output by showing only the directory
  name if all the files in it share the same status. The option takes an
  argument indicating the statuses to abbreviate: 'm' for 'modified', 'a'
  for 'added', 'r' for 'removed', 'd' for 'deleted', 'u' for 'unknown', 'i'
  for 'ignored' and 'c' for clean.

  It abbreviates only those statuses which are passed. Note that clean and
  ignored files are not displayed with '--terse ic' unless the -c/--clean
  and -i/--ignored options are also used.

  The -v/--verbose option shows information when the repository is in an
  unfinished merge, shelve, rebase state etc. You can have this behavior
  turned on by default by enabling the ``commands.status.verbose`` option.

  You can skip displaying some of these states by setting
  ``commands.status.skipstates`` to one or more of: 'bisect', 'graft',
  'histedit', 'merge', 'rebase', or 'unshelve'.

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions. See also :hg:`help templates`.

  :path:    String. Repository-absolute path of the file.
  :source:  String. Repository-absolute path of the file originated from.
            Available if ``--copies`` is specified.
  :status:  String. Character denoting file's status.

  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

  - show more information about the repository status, abbreviating
    added, removed, modified, deleted, and untracked paths::

      hg status -v -t mardu

Returns 0 on success.

r   r  rs   r  r>   r  rh  s   status.terses   cannot use --terse with --revr   Ns   status.relative)r`   forcerelativevaluer  r  r   s4   modified added removed deleted unknown ignored cleanr     r     r  r  Tr  )ra  rm  r  r  s   MAR!?ICutf8r<  s   statuscopiesr  s	   no_statuss   status.verboses   statusr   s   status.r  rz   )itemtyper   r   r  )rQ  s     %s   status.copied),r   r  r+   re   rO   	_NOTTERSEr  r   r   rS   r/   r   r#   r   r   r  	hasconfigr  rf   r  r  r   rd   rU   r   tersedirr   iterbytestrgetattrdecoder   
pathcopiesr  r   readmorestatusr   r   r   r   r   r  
formatfileformatfooterr   )rV   rW   rh   rX   r  r  tersern  r  r  r  rj   r   r  kr?  ri   ry  rw  changestatesr  show_copies
morestatusr  r   showcharr2   r  r  r  r  s                                  r[   rU   rU     s   T !!$x8%D88FBDXXi%FHHXy)E	EIIk?;E01s##	))$)D##D$7wwy))$i@''3
	||K!344]];8JK"" J-H xx	DJJLF-v!!AvD-xx6fRajH:5@&@88"1:D"1:Dd$'A{{IIKIIK$/$%-+.  
 e,{{IIKIIK$$HH[!
 Z(289&Qqxx'	(&9L D--7Kxx	&hhy)2$((6"2 DHH= 9K   Q/J	r}}[2CDD

##++D1
HHY	i	&B
#+C88L))H*tUD=&E

t
$q1Xy&$eLx{*%89GG47G+HH 3(47*;;.   :))!R0  +$ #FFHi .L 	:s   ,U:	U: %U?s   summary|sums   remotes   check for push and pulls
   [--remote]c                  ^ ^^^0^1^2^3 T R                  S5        TS   nUR                  5       nUS   R                  5       n/ n [        R                  R                  T5      n[        UR                  5       5      nU GH  nT R                  [        S5      UR                  5       U4-  [         R"                  " U5      S9  T R                  SR                  UR%                  5       5      SS9  UR'                  5       (       a  UR)                  UR'                  5       5        UR                  5       S	:X  aE  [+        T5      (       d  T R                  [        S
5      5        OT R                  [        S5      5        UR-                  5       (       a  T R                  [        S5      5        UR/                  5       (       a@  U 4S jUR1                  5        5       nT R                  SSR                  U5      -   S-   5        T R                  S5        UR3                  5       (       d  GM  T R5                  SUR3                  5       R7                  5       S   R9                  5       -   S-   SS9  GM     UR;                  5       nTR=                  U5      n[        S5      U-  nUS:w  a  T R                  USS9  OT R5                  USS9  U(       a  TR>                  nT R                  [        S5      SS9  UbZ  UU;   a3  T R                  SU-   [&        R@                  S9  URC                  U5        O!T R                  SU-  [&        R@                  S9  U H  nT R                  SU-   SS9  M     T R                  SSS9  TR5                  SS9nTRD                  RG                  5       n/ / nnURI                  5        H  u  nn
U
URJ                  ;   a-  URJ                  RC                  U
5        URM                  U5        OURM                  U5        UURN                  ;   d  Mf  URN                  RC                  U5        M     URP                   V
s/ s H*  oRS                  U
5      RU                  5       (       d  M(  U
PM,     nn
T RW                  [        S5      S5      URX                  4T RW                  [        S5      S5      URN                  4T RW                  [        S 5      S!5      URJ                  4T RW                  [        S"5      S#5      U4T RW                  [        S$5      S#5      U4T RW                  [        S%5      S&5      URZ                  4T RW                  [        S'5      S(5      UR\                  4T RW                  [        S)5      S*5      U4T RW                  [        S+5      S5      U4/	n/ nU H,  u  nn
U
(       d  M  URM                  U[+        U
5      -  5        M.     SR                  U5      nS,nTR^                  Ra                  S-5      (       a  U[        S.5      -  nTR^                  Ra                  S/5      (       a  U[        S05      -  nO[+        U5      S1:  a  U[        S25      -  nOXS   R;                  5       :w  a  U[        S35      -  nOUS   Rc                  5       (       a#  UTR=                  USS49;   a  U[        S55      -  nOlURX                  (       dH  URN                  (       d7  URJ                  (       d&  U(       d  U(       d  U(       d  U[        S65      -  nSnOX^;  a  U[        S75      -  nU(       a  [e        S8 U 5       5      nO[f        Rh                  nU[f        Rj                  " T 5      :  a  US9[f        Rl                  U   -  -  nU(       a,  T R5                  [        S:5      UR9                  5       -  5        O+T R                  [        S:5      UR9                  5       -  5        [+        TRn                  Rq                  U Vs/ s H  nUR                  5       PM     snU5      5      nUS:X  a  T R5                  [        S;5      5        OKX^;  a  T R                  [        S<5      U-  5        O(T R                  [        S=5      U[+        U5      4-  5        / n[+        TRs                  S>5      5      nU(       a  URM                  [        S?5      U-  5        [+        TRs                  S@5      5      nU(       a  URM                  [        SA5      U-  5        U(       d  U(       a,  T R5                  [        SB5      SR                  U5      -  5        [,        Rt                  " T[,        Rv                  5      (       ai  SC Hc  n [+        TRs                  U SD-   5      5      n![        SE5      [        SF5      [        SG5      SC.n"U!S:  d  MI  T R5                  U"U    U!-  S-   5        Me     [x        Rz                  " T T5        TR}                  SH5      (       a  SIu  n#n$O_SJu  n#n$[x        R~                  " T T[        R                  " T5      S5       H  u  n%n&U%(       a  Sn#U&(       d  M  Sn$M     U#(       d  U$(       d  gUUU 4SK jn'U#(       a  U'" 5       u  m3m1m2m0n(O
S=m3=m1=m2=m0n(U0UUU1U2U3U 4SL jn)U$(       a  U)" 5       u  n*n+n,n-OS=n*=n+=n,n-TR}                  SH5      (       Ga=  T2c   eU-c   e/ nU((       a  URM                  [        SM5      5        U-R                  n&U&(       a&  URM                  [        SN5      [+        U&5      -  5        U,=(       d    T2n.SOU.R                  SP5      ;   ai  [&        R                  " TU.5      n/U/S   S:  a   URM                  [        SQ5      U/S   -  5        U/S1   S:  a   URM                  [        SR5      U/S1   -  5        U(       a-  T R                  [        SS5      SR                  U5      -  5        OT R5                  [        ST5      5        [x        R~                  " T T[        R                  " T5      T3T1T2T04U*U+U,U-445        g! [        R                   aE  n	SR                  U	R                  5      n
T R                  [        S5      U
-  5        / n Sn	A	GN8Sn	A	ff = fs  sn
f s  snf )Ua<  summarize 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.
   summaryNr   r   s6   warning: merge state has unsupported record types: %s
s   parent: %d:%s r  s   log.tagr   s    (empty repository)s    (no revision checked out)s    (obsolete)c              3  N   >#    U  H  nTR                  US U-  5      v   M     g7f)s
   trouble.%sNr  )r   instabilityrV   s     r[   r   summary.<locals>.<genexpr>  s+      #4K mk&ABB#4s   "%s    (r     )r   s   log.summarys   branch: %s
r  s
   log.branchs
   bookmarks:s   log.bookmarks    *s    [%s]T)rm  s   %d modifieds   status.modifieds   %d addeds   status.addeds
   %d removeds   status.removeds
   %d renamedr  s	   %d copieds
   %d deleteds   status.deleteds
   %d unknowns   status.unknowns   %d unresolvedrG  s   %d subreposFr  s    (graft in progress)s   updatestates    (interrupted update)r   s    (merge)s    (new branch)rb  s    (head closed)s    (clean)s    (new branch head)c              3  @   #    U  H  oR                  5       v   M     g 7fr   )r  )r   r  s     r[   r   r  -  s     6g7799gs   s    (%s)s   commit: %s
s   update: (current)
s#   update: %d new changesets (update)
s3   update: %d new changesets, %d branch heads (merge)
s   draft()s   %d drafts   secret()s	   %d secrets   phases: %s
)s   orphans   contentdivergents   phasedivergents   ()s   orphan: %d changesetss    content-divergent: %d changesetss   phase-divergent: %d changesetsremote)TTFFc                   > [         R                  " ST
S5      n U R                  n [        R                  " T	0 U 5      nU R                  / 4n[        R                  " T	X#S 5      u  pEU(       a   U Vs/ s H  obR                  U5      PM     nnT
R                  S[         R                  " U R                  5      -  5        T	R                  R                  5          [        R                   " T	X$S9nS S S 5        U R                  XWUS   4$ ! [
        R                   a+    TR                  S5      (       a  e U R                  US S S 4s $ f = fs  snf ! , (       d  f       Nh= f)Nr  r  r  r  )r  r   )r<   rd  rX  r"   r  r   r  rO   r  r  rW  debugr  rV   r  r   findcommonincoming)r   sbranchr(  r  r  r+  r   	commonincrX   rW   rV   s           r[   getincomingsummary.<locals>.getincomingt  s!    //
B
K++	7GGD"d+E
 KK$))$F156#LL%D6
''*>*>txx*HHIWW^^!44T5MI xxIaL@@  	7xx!!88WdD$66	7 7s#   D 2EE<E
	E

E c                 <  > S n STR                   ;   a  Sn OSTR                   ;   a  Sn S nU b2  [        R                  " STTU 5      nUR                  nUR                  nOSnS n[
        R                  " TTU/ 4S 5      u  pETU:w  aG   [
        R                  " T0 Ub  UOU5      nTR                  S[        R                  " U5      -  5        O
Tc  X#S S 4$ TnTU:w  d	  Tb	  TU:w  a  S nOT
nU(       a!  U Vs/ s H  nTR                  U5      PM     nnTR                  R                  5          [         R"                  " TXdUS9n	S S S 5        X#UW	4$ ! [        R                   a    TR                  S5      (       a  e X#S S 4s $ f = fs  snf ! , (       d  f       NN= f)Ns   default-pushr  r  r  r  )r  r  )r  r<   get_unique_push_pathr  rX  r"   r  r  r   r  rO   r  r  rW  rV   r  r   r  )dr   r+  dbranchr  r+  dotherr'  r   r  r  rX   rW   r  sotherrQ  rV   s             r[   getoutgoingsummary.<locals>.getoutgoing  s    bhh&A288#A=//
D"aHD88DkkGDG))$wmTJT>1r43C4N
 HH+g.B.B4.HHI^$,,FT>g1g6HFF045DKK$D5WW^^ 33fH  fh..) ?? 188H%%dD001 6s$   E 7F.F0FF
Fs   1 or more incomings   %d outgoingr  rW  s   %d incoming bookmarkss   %d outgoing bookmarkss   remote: %s
s   remote: (synced)
)Er   rU  r   rP  r%   r  r   
unresolvedr   UnsupportedMergeRecordsr   recordtypesr  r   r   r   r#   changesetlabelsr3   r   r  r   r'   
isunstableinstabilitiesr  rU   
splitlinesr  rX  rY  r  activebookmarklabelr<  rb   r   r  rk  r   rj  r-  r.  ra  r  ri  rl  rm  vfsexistsrq  r   r*   publicnewcommitphase
phasenamesrM  r  r  rs  rt  r   summaryhooksrO   summaryremotehooksr+   re   r  rX  r  )4rV   rW   rX   r   rU  pnodemarksrg  r  rH  rw  r  r  rX  rj  ri   r  rU   r  copiedrenamedr  r4  r  r  r  cleanworkdirpendingphasepctxnewrY  rZ  trouble
numtrouble
troublemsgneedsincomingneedsoutgoingr  r  r  r  r  r+  r  r  r  r(  countsr  r  r  rQ  s4   ```                                             @@@@r[   r  r    s
   ( HHZ
t*CkkmGAJOOEE	+%%**40 "--/*
 	 AEEGQ</,,Q/ 	 	
 	1668$J7;;==LL'557b=t9912389:::<<HHQ~&'<<>>#$??#4M HHUUZZ66=>
==??IIq}}113A6<<>>F$  5 > ZZ\Ff%F	/V#A
-(
		!=	)%%
=!9y/L/LMV$F*)2O2OPAHHTAX_H5 
o.[[[&FA"GF	1NN!!!$NN1MM!LL"  ||:|!wwqz'7'7'9A|D: 
!N#%7	8&//J	!K./	2FLLA	!M"$5	6G	!M"$4	5w?	!L/#3	4f=	!M"$5	6G	!M"$5	6G	!$%'<	=zJ	!N#%7	8$?
F 	A11HHQQZ   	

1ALxx}%%	Q&''xx~&&	Q'((	W		Q{^	1:$$&	&	Q  		 	 	"	"u0@0@t 1A 1 ( 	
Q !!<<>>	Q{^			Q$%%6g66}}f++B//	X)),777
		!O$qwwy01 	?#aggi/0 ""G#DGDDIIKG#DfMC ax
		!*+,		
:;cAB 	EFCK !	

 	A		*%&E	;%'(;'(F	<6)*
		!O$uzz!}45$ 9 9::JGTYYw78J 56%&'J%K#$%F#GJ
 A~		*W-
:UBC K T"xx'1$}'3$}..h**40$
DAq  $q $
 ]A* 7B}4H;????6?I)/ )/V *5-'gvx-111w1(xx !!!###HHQ,-.HHQ~&Q/0 &5>>-88&&tU3Fay1}34vay@Aay1}34vay@AHHQ'5::a=9: IIa-./
T"Wfi07FH-	
	Q	 (( IIamm$
HIAM	
 
X ;~ $Es*   q  'r<7r<s r94:r44r9rc  s	   force tags   make the tag locals   revision to tags   removes   remove a tags   use text as commit messages8   [-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...c                	   [         R                  " USS/5        UR                  5          UR                  5          SnU4U-    Vs/ s H  ofR	                  5       PM     nn[        U5      [        [        U5      5      :w  a  [        R                  " [        S5      5      eU H@  n[        R                  " XS5        U(       a  M#  [        R                  " [        S5      5      e   UR                  S5      (       a  US   nUR                  S5      nUR                  S5      (       Ga;  UR                  S5      (       a  S	n	OS
n	U H  nUR                  U5      S
:X  aM  [        R                  " X5      n
X   S   UR                   :X  a"  [        R                  " [        S5      U-  5      eUR                  U5      (       d"  [        R                  " [        S5      U-  5      eUR                  U5      U	:w  d  M  U	S
:X  a"  [        R                  " [        S5      U-  5      e[        R                  " [        S5      U-  5      e   SnU(       d  SSR#                  U5      -  nOTUR                  S5      (       d>  U H8  nXqR%                  5       ;   d  M  [        R                  " [        S5      U-  5      e   UR                  S5      (       d  UR&                  R)                  5       u  pXR                   :w  a  [        R*                  " [        S5      5      eUR-                  5       nUR                  S5      (       d+  U(       a$  X;  a  [        R                  " [        S5      5      e[.        R0                  " X5      R3                  5       nUc  [        R                  " [        S5      5      eUR                  S5      (       d)  U[         :X  a  [        R                  " [        S5      5      eU(       d  SSR#                  U5      [5        U5      4-  nUR                  S5      nU(       a  [6        R8                  " U5      nUR                  S5      (       a  SnOSn[         R:                  " S!SU0UD6n[        R<                  " UUUUUR                  S5      UR                  S5      UUS 9  SSS5        SSS5        gs  snf ! , (       d  f       N= f! , (       d  f       g= f)"a  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<  r   r{  s   tag names must be uniquerc  s/   tag names cannot consist entirely of whitespacerG  re  rz  r{  r   s   tag '%s' is already removeds   tag '%s' does not exists   tag '%s' is not a global tags   tag '%s' is not a local tagr'  s   Removed tag %sr  r  s)   tag '%s' already exists (use -f to force)s   uncommitted merges;   working directory is not at a branch head (use -f to force)Ns   cannot tag working directorys   cannot tag null revisions   Added tag %s for changeset %sr   s
   tag.removes   tag.addrA  r   rC  r   )r   rQ  ra   r3  r  r   r  r   rS   r   r/   r  rO   tagtypetagsmodfindglobaltagsr   r   r3   rb   rU  rQ   rY  r#   r   r   r	   r9   rR  rE  r  )rV   rW   name1r  rX   rev_r  r  rG  expectedtypealltagsr   ri  rj  r   r   rA  rD  s                     r[   r  r    s   ^ ((x%A	tyy{%*Hu$45$4q$45u:SZ(""1%@#ABBA!!$621&&HI   88E??;D((9%88Hxx  '(<<?i/%44R>Gz!}3#..<=A  ||A**1-G+H1+LMM<<?l2#y0#..=>B  $..<=A  $ D+ejj.??'""		#**FG!K  
 xx  ]]**,FB[[ &&q)='>??%%'F88G$$B4D&&-  ##D/446 <""1%D#EFF(##""1%@#ABB6

5!d: G
 xx%%d+D88H$H!H((C(CdCHHWHHV		
k #5 #{sJ   SSS A#SD1S;BSHS/S S
S	S
S$c           
        U R                  S5        U R                  S[        R                  " U5      5      nUR                  n[        UR                  5       5       H  u  pVU" U5      nSnUR                  U5      n	U	(       a  U	S:X  a  Sn	OSU	-   nUR                  5         UR                  US9  UR                  SSXXS	9  S
S[        R                  " U5      -
  -  S-   n
UR                  U R                  (       + SU
UR                  R!                  U5      UUS	9  UR                  U R"                  =(       a    U	SSXS	9  UR%                  S5        M     UR'                  5         g)a  list repository tags

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

.. container:: verbose

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions such as ``{tag}``. See also
  :hg:`help templates`.

  :type:    String. ``local`` for local tags.

Returns 0 on success.
rR  s   tags.normalr{  r>   s   tags.r  rc  r   r  r      s    %5d:%sr  r  s    %sr   N)r   r   r+   re   r  reversedtagslistr  r   r   r   r   r   r  r   rM  r   r  r   r   )rV   rW   rX   r  r  r  r  hnr  r  r   s              r[   r3   r3   w  s<   6 HHW	gx33D9	:BjjG)QZ,,q/'Y.Gw&E





/b8,,Q//0:=
LNNq! 	 	
 	JJ"7GVW 	 	
 	1 *2 FFHr>   rP  s
   show patchs   gits   use git extended diff formats	   [-p] [-g]c                    [         R                  " U5      n[        R                  " XU5      nUR	                  US   5        UR                  5         g)a  show 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.
rP  N)r+   re   r#   r  r?  r@  )rV   rW   rX   r  s       r[   re  re    s@    4 %D--b=INN4< OOr>   s   unbundles6   update to new branch head if changesets were unbundleds   [-u] FILE...c                    U4U-   n[         R                  " XU5      n[         R                  " XXTR                  S5      SS5      (       a  gg)zapply one or more bundle files

Apply one or more bundle files generated by :hg:`bundle`.

Returns 0 on success, 1 if an update has unresolved files.
r  Nr   r   )r   unbundle_filesr  rO   )rV   rW   fname1fnamesrX   r  s         r[   unbundler    sH    ( YF%%b7HBh0BD$OOr>   s   unshelves&   abort an incomplete unshelve operations)   continue an incomplete unshelve operations#   use interactive mode (EXPERIMENTAL)s   keep shelve after unshelvings&   restore shelved change with given namerH  s   specify merge tools+   set date for temporary commits (DEPRECATED)s&   hg unshelve [OPTION]... [[-n] SHELVED]c                    UR                  5          [        R                  " X/UQ70 UD6sSSS5        $ ! , (       d  f       g= f)aG  restore a shelved change to the working directory

This command accepts an optional name of a shelved change to
restore. If none is given, the most recent shelved change is used.

If a shelved change is applied successfully, the bundle that
contains the shelved changes is moved to a backup location
(.hg/shelve-backup).

Since you can restore a shelved change on top of an arbitrary
commit, it is possible that unshelving will result in a conflict
between your changes and the commits you are unshelving onto. If
this occurs, you must resolve the conflict, then use
``--continue`` to complete the unshelve operation. (The bundle
will not be moved until you successfully complete the unshelve.)

(Alternatively, you can use ``--abort`` to abandon an unshelve
that causes a conflict. This reverts the unshelved changes, and
leaves the bundle in place.)

If bare shelved change (without interactive, include and exclude
option) was done on newly created branch it would restore branch
information to the working directory.

After a successful unshelve, the shelved changes are stored in a
backup directory. Only the N most recent backups are kept. N
defaults to 10 but can be overridden using the ``shelve.maxbackups``
configuration option.

.. container:: verbose

   Timestamp in seconds is used to decide order of backups. More
   than ``maxbackups`` backups are kept, if same timestamp
   prevents from deciding exact order of them, for safety.

   Selected changes can be unshelved with ``--interactive`` flag.
   The working directory is updated with the selected changes, and
   only the unselected changes remain shelved.
   Note: The whole shelve is applied to working directory first before
   running interactively. So, this will bring up all the conflicts between
   working directory and the shelve, irrespective of which changes will be
   unshelved.
N)ra   r  unshelvecmd)rV   rW   shelvedrX   s       r[   unshelver    s0    V 
$$R@@4@ 
r  s   shelvedstates   unshelve already in progress)r   r  rR   r  r  s   update|up|checkout|cos'   discard uncommitted changes (no backup)s   checks   require clean working directorys   merge uncommitted changess   revisions   [-C|-c|-m] [-d DATE] [[-r] REV]c                   [         R                  " USSS5        UR                  S5      nUR                  S5      nUR                  S5      nUR                  S5      nUR                  S5      nU(       a&  U(       a  [        R                  " [        S5      5      eU R                  SS5      (       a<  U(       d5  U(       d.  U(       d'  [        R                  " [        S	5      [        S
5      S9eUb  US:X  a  UnU(       a"  Ub  [        R                  " [        S5      5      eSn	U(       d
  Ub
  U(       d  Sn	OU(       d
  Ub	  U(       d  Sn	UR                  5          [         R                  " U5        U(       a  [         R                  " XU5      nUn
U(       a  [        R                  " X/S5      n[        R                  " XSS9nUR                  5       nUR                  5       nSUR                  SS5      0nU R!                  US5         ["        R$                  " XXJXiS9nSSS5        U(       ap  UR'                  5       SS nU R)                  [        S5      U-  5        UR+                  5       (       a+  [,        R.                  " XU5      nU R)                  SU-  5        WsSSS5        $ ! , (       d  f       N= f! , (       d  f       g= f)a  update working directory (or switch revisions)

Update the repository's working directory to the specified
changeset. If no changeset is specified, update to the tip of the
current named branch and move the 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 and there are uncommitted changes, 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 -C/--clean, -c/--check, and -m/--merge options control what
  happens if the working directory contains uncommitted changes.
  At most of one of them can be specified.

  1. If no option 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 -m/--merge option, the update is allowed even if the
     requested changeset is not an ancestor or descendant of
     the working directory's parent.

  3. With the -c/--check option, the update is aborted and the
     uncommitted changes are preserved.

  4. 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:`merge --abort`.

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.
ra  checkr$   r   r   r9  rh  r  s   you must specify a destinations   for example: hg update ".::"rM   Nr>   s'   you can't specify a revision and a daterG   s   noner   )rh  r;  r=  r  )ra  updatecheckr   s   updated to hidden changeset %s
s   (%s)
)r   r  rO   r   rS   r   r  ra   clearunfinishedrp  r/   r   r#   r   r   hiddenr[  r"   updatetotallyr   r  r'   r(   _getfilteredreason)rV   rW   r   rX   r   r   ra  r  r$   r  r  r   r  rl  rv  ctxstr
obsfatemsgs                    r[   r  r  H  s4   J !!$'B
((5/C88FDHHWEHHWEHHWE
tq!DEFF	}}["788C""3467 
 {cSjq!KLMMK!%	%#E	%""2T2C --dE9ED""4d;ggi+TXXfc-BC	y)4""#5C 5 WWYs^FGGA9:VCD||~~$77cJ
	J./1 
 54 
s&   B1J?J.$B J?.
J<	8J??
Kr7  )r>   s   fullFs"   perform more checks (EXPERIMENTAL)c                f    SnUS   (       a  [         R                  n[        R                  " X5      $ )ay  verify the integrity of the repository

Verify the integrity of the current repository.

This will perform an extensive check of the repository's
integrity, validating the hashes and checksums of each entry in
the changelog, manifest, and tracked files, as well as the
integrity of their crosslinks and indices.

Please see https://mercurial-scm.org/wiki/RepositoryCorruption
for more information about recovery from corruption of the
repository.

For an alternative UI with a lot more control over the verification
process and better error reporting, try `hg help admin::verify`.

Returns 0 on success, 1 if errors are encountered.
Nfull)	verifymodVERIFY_FULLr"   r5   )rV   rW   rX   levels       r[   r5   r5     s*    0 EF|%%99T!!r>   c                0   U R                   (       a  U R                  S5        U R                  S[        R                  " U5      5      nUR                  5         UR                  S[        S5      [        R                  " 5       5        [        S5      nU R                  (       d  UR                  U5        U R                   (       a  UR                  [        S5      5        / n/ n/ n[        [        R                  " 5       5       Hi  u  pxUR                  U5        UR                  [        R                  " U5      =(       d    S5        UR                  [        R                   " U5      5        Mk     UR#                  SSS	9n	U(       a  S
[%        S U 5       5      -  n
[        S5      [        S5      /n['        XEU5       H  u  pnU	R                  5         U	R)                  U R                   SX5        U R                   (       a  U	R                  SX   -  5        U	R+                  US9  U	R)                  U R                   =(       a    USSU5        U R                   (       d  M  U	R                  S5        M     U	R-                  5         UR-                  5         g)a  output version and copyright information

.. container:: verbose

  Template:

  The following keywords are supported. See also :hg:`help templates`.

  :extensions: List of extensions.
  :ver:     String. Version number.

  And each entry of ``{extensions}`` provides the following sub-keywords
  in addition to ``{ver}``.

  :bundled: Boolean. True if included in the release.
  :name:    String. Extension name.
rD   s   vers'   Mercurial Distributed SCM (version %s)
s   (see https://mercurial-scm.org for more information)

Copyright (C) 2005-2025 Olivia 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:

Ns
   extensionss   {name}
r   s
     %%-%ds  c              3  8   #    U  H  n[        U5      v   M     g 7fr   )r   )r   r  s     r[   r   version_.<locals>.<genexpr>  s     %<ec!ffes   s   externals   internalr  s   %s  )bundledr   r   )r  r   r   r+   re   r   r   r   r4   versionr   r   r  r   r   moduleversionismoduleinternalr   r   r   r  r   r   )rV   rX   r  licenser  versisinternalsr  moduler   r  placesr  vr  s                  r[   version_r    s   2 
zz
	j("6"6t"<	=BLLNHH=> 	OG 88
	zz
/01EDKz4467TJ,,V4<=:66v>? 8 
={	3B#%<e%<"<<K.!K.154GA!LLNLLWg9zz69,-GGAGLL)65!<zzz 5 FFHFFHr>   c                    U Vs/ s H  o3[         ;   d  M  UPM     nnU(       a.  U R                  [        S5      USR                  U5      4-  5        [         R	                  U5        gs  snf )z.Load command functions from specified cmdtables&   extension '%s' overrides commands: %s
r   N)r  r  r   r   r  )rV   r  cmdtabler  rl  s        r[   loadcmdtabler"  '  s[     (95LI9
89TYYy)*+	
 
LL :s
   A)A)rD  )	NNNNNNNNNr   r  )r>   )NNNNNNN)r  )r{  )
__future__r   r%  r&  rK  i18nr   r   r   r   r   r	   r
    r   admin_commands_modr   r   r   r   r   r   r   r  r   r   debugcommandsmodr   r   r   r   r   r   r   r   r   r   r   r  r    r!   r"   r#   r$   r\  r%   rP  r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r  r2   statemodr3   r  r4   r5   r  r6   	cmd_implsr7   r  configurationr8   r  utilsr9   r:   r;   r<   r  r  _tableINTENT_READONLYencodingmoder  
dryrunopts
remoteoptsr-  
commitoptscommitopts2commitopts3formatteroptstemplateoptslogoptsr   
diffwsopts	diffopts2mergetooloptssimilarityoptssubrepooptsdebugrevlogoptsCATEGORY_CHANGE_MANAGEMENTr\   CATEGORY_WORKING_DIRECTORYrg   ro   CATEGORY_FILE_CONTENTSr   CATEGORY_IMPORT_EXPORTr*  r5  r4  CATEGORY_CHANGE_NAVIGATIONr  CATEGORY_CHANGE_ORGANIZATIONr  rX  r  r5  r>  CATEGORY_REPO_CREATIONrP  CATEGORY_COMMITTINGr8  r\  CATEGORY_HELPr  r  r  r  r  r  r  r  addunfinishedhgabortgraftr  rQ  rm  r  CATEGORY_REMOTE_REPO_MANAGEMENTr  r  r  r  CATEGORY_MAINTENANCEr  r  r  rU  r  r  rH  r   r/  r9  r<  r  r[  rd  rs  r'  r  r  rU   r  r  re  r  r  hgabortunshelvehgcontinueunshelver  r"  r   r>   r[   <module>rL     sU/   # 	 	 
  - - - - - - - - - - - -^ +  	 %%,, - ''.. /


E
"++ 		
EF	'
 	&#q45qyA	Q	
	 
8T1/01	:tQ:;< 	

FG	'
 	
	
DE	) 	
	
<=	'
 	(D!678+tQ012	
%&	) 		
*+	'
 	,a HIJ'4=>?*dA@AB*dADEF	7D!456)UA;<=	
?@	'
AG
R 


!!!!%%##
//
	%%''!!))
 	33	**8 	
{Z'33/#/#d 	[ 8+j833EEEEP 		vsA@A1V9MIJ		
 
lD!$F"GH	wa :;<	wa ABC	wa 456	wa @AB	y$"G HI	|T1%:#;<9:		
 56fI	
 CDm	
9#H I$J K%L M&N <=//Y-\p]-\pf 		lD!$I"JK67iL	
 
vsA78!F)D	wQ@A1W:N   //#&M'&M` 	 =>		
 EF		
 
lD!$4"56EFfI	
 
vsA45qyA	wq!DEF-0 12 34 56 78 33? B57C B57pm` 		x"7 89	wq!789	vua 567	wq!:;<	y%#=!>?56fI	
 
{E1%?#@A $%33%. 
		B%)(B%J 		x(,	vsA=>&	J	y%#=!>?	y#q!;<aiH	{E1%@#AB	wq!;<=  ,-55l
l
^ 	 FG		
 
xq!KLMAB		
 o55%(G)(GT 	 IJ		
 
y%#E!FG	vr1DEF	 
 gJ55"S#"Sl 	 =>		
 ;<		
 DEfI	
 ;<iL	
 LMfI	
 
vtQIJK/0gJ	
G*V W+X MN//_0bLc0bL^ 	
 9:iL	
 
vsA9:AfIF	iq!DEF
   //%(1J)(1Jh 	 1		
 67fI	
 & fI		
 3 iL		
 
gtQDEF	otQ'K%LM	iq!FGHO(R S)T "#//_0bLc0bL^ 	 JK		
 
otQ'F%GH	ha LMN	y$"H IJ	ha EFG	wa CDE!KL		
 
~tQ'>%?@%( )* +, -. /0 ,,;>;2?>;2|K
\ 	$	|T1%L#MN <=		
 
wa 345	xq!:;<	iq!FGHDE		
 
mT1%M#NO	y$"7 897: ;< &&G$J:K$J:z 	33	,,4 		iq!GHI	xq!KLMEFfI	
 <=		
" #$ %& 89//-0!H10!HH 	lO&&,, 	
Ja ;<=>kN&&442 		vr156&	B	gsA677D	eS!23QwZ@	y#q!;<aiH,W		
    !" #$ EF//14E54EP 	 @AkN	
 9:iL	
 
a(I&JK	vr134ai@!$ %& '( 34//36t
76t
n 	 67fI	
 ;<		
   !" #$ 33-0G
10G
T 		~tQ'>%?@  	
 33..b 		vr123QvY?DEfI	
 DE		
 
{E1%@#AB	gua 9:;	hq!;<=	wq!DEF	fdAABCJK		
 
x. 1278		
 56		
C'P Q(R S)T U*V '(33]/`j=a/`j=Z 	  
""GH 		y$"8 9:	fdA@AB		
 
wa :;<>		
 
~tQ'C%DE!>?		
 
~tQ'E%FG;<fI	
 Q		
 
wa ABC	wa @AB]/` a0b c1d /0//o8rSs8rSl 	 BCkN	
 
wq!?@A:;		
 
y%#I!JK" #$ %&33-0D10DN 		|T1%E#FG	z4#A!BC	z4#B!CD34kN	
	 %&&&#&'&> 		vsA@A1V9M	vtQ<=>	udA89:	y$. 12	wao.	|T1%6#78  	 #$33( 	F#"FR 	 = fI		
 
wQ891W:F	iq!GHI	wq!DEFLM		
 @A		
 CD		
 
j$"C DE	ha EFG	ia >?6KIJ		
G)T U*V W+X Y,Z //a1d{e1d{| 	 ;<		
 
a(C&DE	ia ABAgJO89fI	
 
|UA&:$;<9:iL	
#2 34 56 78 EF88? BX/C BX/v 	*+//& 	 67fI	
 ;<		
 >?		
* +, !"33364764n 	 V		
 NO		
 23gJ	
 
y$"6 78<=gJ	
 34fI	
 CDm	
 ;<		
 IJ		
 
wA<=qzJR iL	
 >?iL	
 :;kN	
 @AfI	
aWp qXr sYt 33AaDd4EaDd4N 		vsA45qyA	feQ?@A 	
 kN--
5
5p 	 IJ		
 
vsA23QvY?BC		
 
ha :;<  !" 33+.U9/.U9p 	  
-.mmF 67 	 ;<		
 GHfI	
 
a(C&DE	|UA&:$;<9:iL	
!0 12 34 56 2388=@4.A@4.n 	 78fI	
 	 33 5! 5p 	iL88KK\ 		y%#C!DE	x"A BC	y%#C!DE	x"D EF	vr1/0!F)< &'55NNb 	 IJ		
 =>		
 56		
 89fI	
 
{B"5 6+G9:iL	
 GH		
E(R S)T EF88]/`ea/`eP 		a(C&DE	fdA89:	z4#>!?@	gtQ9:;	ha/0	xq!LMN)		
 
j$"J KL!$ %& &'33-0J,10J,Z 		xq/0GHfI	
 
{B"5 6+G	a(L&MN9:iL	
 
mUA&C$DE@A		
 <=		
3@ A B >?88K&NfO&NfR 	L --2 		xq!CDE	xq!MNO 	
   332
2
j 		iq!HIJ	xq!MNOFGfI	
 <=		
" #$ %& #$33-0#
10#
L 		vtQ=>?	wa DEF	wa 9:;	y$"= >?	|T1%:#;<	k4#4!56  	 
 33"U#"Up 		vtQLMN	wQ@A1W:N	vsAABAfIN	|T1%J#KL	~tQ'J%KL   '(33]8]8@ 	45!,E*FGHH--
2N
2Nj 	33	880 	 45gJ	
 
y$"= >?	 "a(I&JK34gJ	
 23gJ	
 ?@gJ	
 ABiL	
 GHgJ	
 DEgJ	
 ;<gJ	
 45gJ	
 
ha @AB./gJ	
 
|S!$;"<anM	hQ78!H+F	wa ;<=	nc1%<#=qzJ	lD!$C"DE_Pb cQd n88oXr:KsXr:Kz 	 HI		
 
z4#G!HI	j$"? @A67gJ	
 
y$"G HI	wq!DEFBC		
 
wa 789	z3"? @!G*M:;gJ	
 4		
 
~tQ':%;<@		
W4j k5l ()33s:vK9w:vK9\ 	 		vtQ:;<	{D!$?"@A	xq!9:;	z4#=!>?	z4#=!>?	xq!CDE	z4#K!LM	z4#=!>?	|T1%:#;<	xA&M$NOGH		
 ;<		
 
fb!<=qyI56fI	
1@ A B C!D E"F 33S*VWW*VWt 		9dA89:;33DDN
 	
	xq/	xq!678	vsA011V9=	iq12	wa CDE	z3"? @!G*M 	 AB55@
@
F 	5511h 	
	xq/0	vtQ>?@ 	
 lO33		, 	 GH		
 o//  		xq!JKL:;		
 
~tQ'M%NO	wa ?@A78gJ	
 
wQ456<=gJ	
%4 /033;>-A?>-A` 	  
''--,- 		xq!KLM	xq!CDE	xq!=>?	wQ@A1W:N	vsAkNAfI6  ()33kk\ 	AB--
"
"2 	&&;;|r>   