
    6h"                    f   % S SK Jr  S SKrS SKrS SKrS SKJrJrJrJ	r	J
r
JrJrJrJr  SSK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"  SSK#J$r$  SSK%J&r&J'r'J(r(  \\"RB                  /\)4   r*\S	   r+\\	\)   \)\*4   r,\\	\)   \)\*\)4   r-\\./\/4   r0\\)\	\)   4   r1\\"RB                  \)\)/\)4   r2S
SS\" S
5      \" S5      \" S5      1r3S\4S'   \Rj                  Rl                  \Rj                  Rn                  \Rj                  Rp                  \Rj                  Rr                  \Rj                  Rt                  \Rj                  Rv                  \Rj                  Rx                  \Rj                  Rz                  \Rj                  R|                  \Rj                  R~                  \Rj                  R                  \Rj                  R                  \Rj                  R                  /rCS\4S'   \Rj                  Rl                  S\Rj                  Rn                  S\Rj                  Rp                  S\Rj                  Rx                  S\Rj                  Rr                  S\Rj                  Rt                  S\Rj                  Rz                  S\Rj                  Rv                  S\Rj                  R|                  S\Rj                  R~                  S\Rj                  R                  S\Rj                  R                  S\Rj                  R                  S0rDS\4S'   S rES!rFS"rGS#rHS$rIS%rJ\E\F\G\H\I\J/rKS\4S&'   \ES'\FS(\GS)\HS*\IS+\JS,0rLS\4S-'     S         SS. jjrMSS/ jrNSS0 jrOSS1 jrPSS2 jrQ S       SS3 jjrRSS4 jrSSS5 jrT      SS6 jrUSSS7 jjrV\W" S8/\" S95      \V" S8S:S;94S</\" S=5      \V" S<S:S;94S>/\" S?5      \V" S>S:S;94S@/\" SA5      \V" S@S:S;94SB/\" SC5      \V" SBS:S;94SD/\" SE5      \V" SDS:S;94S"/\" SF5      \V" S"S:S;94SG/\" SH5      \V" SGS:S;94SISJ/\" SK5      \V" SIS:S;94SL/\" SM5      \V" SLS:S;94SN/\" SO5      \V" SNS:S;94SP/\" SQ5      \V" SPS:S;94SR/\" SS5      \V" SRS:S;94ST/\" SU5      \V" STS:S;94SV/\" SW5      \V" SVS:S;94/5      rXSX\4SY'   SSZ jrY\W" S[/\" S\5      \V" S[5      \H4S]/\" S^5      \V" S]5      \F4S"S_/\" S`5      \V" S"5      \G4Sa/\" Sb5      \V" Sa5      \I4Sc/\" Sd5      \V" Sc5      \F4Se/\" Sf5      \V" Se5      \G4Sg/\" Sh5      \V" Sg5      \E4SiSj/\" Sk5      \V" Si5      \G4/ SlQ\" Sm5      \V" Sn5      \E4/ SoQ\" Sp5      \V" Sq5      \G4SrSs/\" St5      \V" Sr5      \E4Su/\" Sv5      \V" Su5      \F4/ SwQ\" Sx5      \V" Sy5      \G4/ SzQ\" S{5      \V" S|5      \F4S}/\" S~5      \V" S}5      \E4SI/\" S5      \O\G4SS/\" S5      \V" S5      \H4S/\" S5      \V" S5      \G4S/\" S5      \V" S5      \H4SS/\" S5      \V" S5      \E4S/\" S5      \V" S5      \H4S/\" S5      \V" S5      \H4S/\" S5      \V" S5      \I4S:/\" S5      \Y\I4S/\" S5      \V" S5      \G4/5      rZS\4S'   S:\X0r[S\4S'   0 r\S\4S'   SS jr] S             SS jjr^ S       SS jjr_\_" S[S\&R                  " 5       5        \_" SrS\R                  5        \_" SyS\R                  5        \_" SnS\R                  5        \_" S|S\ R                  5        \_" S|S\R                  5        \_" S|S\R                  5        \_" SS\$R                  SS9  SS jrg\R                  " S\R                  S9rjSS jrk S       SS jjrl      SS jrm\]" S"\g5            S             SS jjrn   S           SS jjrog)    )annotationsN)	CallableDictIterableListOptionalSetTupleUnioncast   )_gettext)cmdutilencodingerror
extensions	fancyopts	filemergefilesetminirstpycompat	registrarrevsettemplatefilterstemplatefuncs
templatekwui)webcommands)compressionresourceutil
stringutil)_HelpEntryNoCategory_HelpEntryWithCategorys
   (ADVANCED)s   (DEPRECATED)s   (EXPERIMENTAL)z
Set[bytes]_exclkeywordsList[bytes]CATEGORY_ORDERs   Repository creations   Remote repository managements   Change creations   Change navigations   Change manipulations   Change organizations   Working directory managements   File content managements   Change import/exports   Repository maintenances   Helps   Miscellaneous commandss   Uncategorized commandsDict[bytes, bytes]CATEGORY_NAMESs   idss   outputs   configs   conceptss   miscs   noneTOPIC_CATEGORY_ORDERs   Mercurial identifierss   Mercurial outputs   Mercurial configurations   Conceptss   Miscellaneouss   Uncategorized topicsTOPIC_CATEGORY_NAMESc                  ^ / nU(       ad  [        UR                  5       5       HG  u  nmU(       d   [        U4S j[         5       5      (       a  M-  UR	                  SSU-  UT4-  5        MI     U(       a  UR                  SSU -  5        U$ )z-return a text listing of the given extensionsc              3  ,   >#    U  H	  oT;   v   M     g 7fN .0wdescs     0/usr/lib/python3/dist-packages/mercurial/help.py	<genexpr>listexts.<locals>.<genexpr>   s     )K]t)]   s
   %s:%s: %s
    r   s   
%s

)sorteditemsanyr%   appendinsert)headerextsindentshowdeprecatedrstnamer3   s         @r4   listextsrD      su     C .JD$!c)K])K&K&KJJ~d(CCD / 

1kF*+J    c                l    [         R                  " U5      nUc  gUc   e[        U5      n[        X5      $ )NrE   )r   getdocr   sub_config_item_help)r   extdocs      r4   ext_helprK      s6    
//#
C
{??
#,C((rE   c                T   [        S5      " U 5      R                  S5      nUR                  [        [	        S5      [
        R                  " 5       SS95        UR                  [        [	        S5      [
        R                  " 5       U R                  S95        SR                  U5      nU$ )N
   extensionsT   enabled extensions:rA   s   disabled extensions:rE   )
loaddoc
splitlinesextendrD   r   r   enableddisabledverbosejoin)r   rB   rJ   s      r4   extshelprW      s    
-
 
$
/
/
5CJJ$%z'9'9';D	

 JJ%&!::	
 ((3-CJrE   c                    U SS S:X  aA  SnU R                  U5      nUS:  a'  X[        U5      -   S nU SU UR                  SS5      4$ gg)z`given a text 'abc (DEFAULT: def.ghi)',
returns (b'abc', (b'def', b'ghi')). Otherwise return NoneN   )s    (DEFAULT: r      .   )findlensplit)textmarkerpositems       r4   parsedefaultmarkerrd      se     BCyDii!8c&k)B/D:tzz$222  rE   c                  ^ / nSnU GH  n[        U5      S:X  a  Uu  pxn	mn
OUu  pxn	m[        S5      n
U(       d   [        U4S j[         5       5      (       a  MS  SnU	c8  [	        T5      nUb*  Uu  mu  pUR                  X5      (       a  Sn	[        S5      nSnU(       a  SU-   nS	U-   nU	SL a  S
U-   n[        U	[        R                  5      (       a  U	R                  5       n	U	(       aJ  [        U	5      (       d:  [        R                  " U	5      nU	SL a  [        S5      nT[        S5      UU-   -  -  m[        U	[        5      (       a  USU
-  -  nSnO U	b  [        U	[        5      (       d  USU
-  -  nUR                  UUT45        GM     U(       a  U [        S5      -  n SU -  /nUR!                  ["        R$                  " US5      5        SR'                  U5      $ )NF   s   VALUEc              3  ,   >#    U  H	  oT;   v   M     g 7fr.   r/   r0   s     r4   r5   optrst.<locals>.<genexpr>   s     @-QDy-r7   rE   Ts    from config   -s   --s   --[no-]s   ons    (default: %s)s    %s [+]s    %ss    ([+] can be repeated)s   
%s:

r   )r^   r   r;   r%   rd   
configbool
isinstancer   	customoptgetdefaultvaluecallabler   bytestrlistboolr<   rR   r   	maketablerV   )r>   optionsrU   r   data
multioccuroptionshortoptlongoptdefaultoptlabeldefaultstrsuffixparseresultsectionrC   solo
defaultstrrB   r3   s                      @r4   optrstr      s   DJv;!9?6Hwh/5,Hw{H3@-@@@?,T2K&*5'==//"G'('9$BW_d?g%Bgy2233--/G8G,,
 "))'2J$uX
A'(J9I,IJJDgt$$*x''BJ!:gt+D+D&8##BRTN#U X !-..& 
!CJJw  q)*88C=rE   c                d    U R                  SU-  5        U(       a  U R                  SU-  5        g g )Ns"   

.. container:: omitted

    %s

s%   

.. container:: notomitted

    %s

)r<   )rB   omitted
notomitteds      r4   indicateomittedr     s0     JJ:WDE

AJNO rE   c                  ^ U R                   (       d  UR                  S5      (       a  US:w  a  gU R                  (       dZ  U(       d  T(       d  g[        USS5      (       a  [        USS5      (       d  gT(       a  [	        U4S j[
         5       5      (       a  gUS:X  a  [        USS5      (       d  gU R                  S	S
U-  5      (       a  gg)N   debugTaliasFowndocc              3  ,   >#    U  H	  oT;   v   M     g 7fr.   r/   )r1   r2   rJ   s     r4   r5   filtercmd.<locals>.<genexpr>  s     7ACxr7   	   shortlist	helpbasic   helps   hidden-command.%s)	debugflag
startswithrU   getattrr;   r%   rj   )r   cmdfunckwrJ   s       `r4   	filtercmdr   	  s    <<CNN844x::#4%((x1O1O37777	\'$U"C"C	}}W2S899rE   c                .    U R                  SSU-  S5      $ )Nr   s   hidden-topic.%sF)rj   )r   topics     r4   filtertopicr      s    =="4u"<eDDrE   c           	       ^ [         R                  " T5      mU4S jn/ / / / S.n[         H  nUSS u  pgn[        [	        X65      5      (       d4  U" U5      (       d'  [        U5      (       d  MC  U" U" U 5      5      (       d  MX  US   n	[        X	5      (       a  Mo  US   R                  US   U45        M     UR                  R                  5        H  u  p[        U5      S:X  a  US   nOSnUS   n[        [        R                  " U5      5      =(       d    SnTU
;   d  U" U5      (       d  U" U5      (       d  Mk  U(       a  [        R                  " U5      n[         R"                  " U
5      S   n[%        XUTU5      (       a  M  US   R                  X45        M     [&        R(                  " [*        R,                  " S	5      R                  5       [*        R.                  " 5       R                  5       5       GH]  u  pU(       d  M  U	R1                  S
5      S   n	U" U	5      (       d  U" U5      (       a*  US   R                  U	[        R                  " U5      45         [*        R2                  " X	S5      n[7        US0 5      R                  5        H  u  pTU
;   d#  [        U5      S:  d  M  U" US   5      (       d  M.  [         R"                  " U
5      S   nUS   n[        R                  " U5      nU(       a   [        R                  " [9        U5      5      nO[        S5      n[%        XUTU5      (       a  M  US   R                  UU45        M     GM`     U$ ! [4         a     GMr  f = f)zReturn help topics matching kw.

Returns {'section': [(name, summary), ...], ...} where section is
one of topics, commands, extensions, or extensioncommands.
c                6   > T[         R                  " U 5      ;   $ r.   )r   lower)	containerr   s    r4   lowercontains!topicmatch.<locals>.lowercontains.  s    X^^I...rE   )   topics   commandsrM      extensioncommandsr      r   r\   rE   r   Fr[   rY   rM   cmdtable   (no help text available)r   )r   r   	helptablesummaprn   r   r<   tabler:   r^   r   r   rG   r"   	firstliner   parsealiasesr   	itertoolschainr   rS   rT   
rpartitionloadImportErrorr   r   )r   commandsr   r   resultsr   namesr>   rJ   rC   r   entrysummaryr   docscmdnamemodcmddocs     `               r4   
topicmatchr   $  s    
	B/  	G "1QZs M)**V$$-B"8"88Dr((	"))58V*<=  nn**,
u:?AhGGQx&'.39g..-2E2E$..t4**3/2GdB55K ''(:; -  oo5!'')##%
 t$R(-"5"5M"))41E1Ed1K*LM	//"C0C "#z26<<>JCSySZ!^eAh0G0G!..s3A6Qx!.'11'&/BF:;FR$F;;,-44gv5FG ?6 N  		s   "M
M-,M-c                   ^ ^ SUU 4S jjnU$ )z+Return a delayed loader for help/topic.txt.c                *  > SnT(       a  UST-   -  n[         R                  " UTS-   5       n[        UR                  5       5      nS S S 5        [        R                  T/ 5       H  nU" U TW5      nM     [        U W5      nU$ ! , (       d  f       NC= f)Ns   mercurial.helptextr[   s   .txt)r!   open_resourcer   read	helphooksgetrH   )r   packagefprJ   rewritersubdirr   s        r4   loaderloaddoc.<locals>.loaderr  s    'tf}$G''AR"'')$C B!eR0H2uc*C 1"2s+
 BAs   B
Br   uimod.uireturnbytesr/   )r   r   r   s   `` r4   rP   rP   o  s    	 	 MrE   s	   bid-merges   Bid Merge Algorithms	   internals)r   s   bundle2s   Bundle2s   bundless   Bundless   cbors   CBORs   censors   Censors   changegroupss   Changegroupss   Config Registrars   dirstate-v2s   dirstate-v2 file formatrM   	   extensions   Extension APIs
   mergestates
   Mergestates   requirementss   Repository Requirementss   revlogss   Revision Logss   wireprotocols   Wire Protocols   wireprotocolrpcs   Wire Protocol RPCs   wireprotocolv2s   Wire Protocol Version 2zList[_HelpEntryNoCategory]internalstablec                ~    SS/n[          H  u  p#nUR                  SUS   U4-  5        M!     SR                  U5      $ )z-Generate the index for the "internals" topic.s>   To access a subtopic, use "hg help internals.{subtopic-name}"
   
	    :%s: %s
r   rE   )r   r<   rV   )r   linesr   r>   rJ   s        r4   internalshelpr     sM     	KE -s]eAh%778 - 88E?rE   s
   bundlespecs   Bundle File Formatss   colors   Colorizing Outputss   hgrcs   Configuration Filess
   deprecateds   Deprecated Featuress   datess   Date Formatss   flagss   Command-line flagss   patternss   File Name Patternss   environments   envs   Environment Variables)	   revisionss   revss   revsetss   revsets	   multirevss   mrevss   Specifying Revisionsr   )   rusts   rustexts   rhgs   Rust in Mercurialr   s   filesetss   filesets   Specifying File Setss   diffss   Diff Formats)   merge-toolss
   mergetoolss	   mergetools   Merge Toolsr   )s
   templating	   templatess   templates   styles   Template Usager   s   urlss	   URL Pathss   Using Additional Featuress   subreposs   subrepos   Subrepositoriess   hgwebs   Configuring hgwebs   glossarys   Glossarys   hgignores   ignores!   Syntax for Mercurial Ignore Filess   phasess   Working with Phasess	   evolutions'   Safely rewriting history (EXPERIMENTAL)s	   scriptings+   Using Mercurial from scripts and automations   Technical implementation topicss   pagers   Pager SupportzList[_HelpEntryWithCategory]r   z'Dict[bytes, List[_HelpEntryNoCategory]]	subtopicszDict[bytes, List[_TopicHook]]r   c                N    [         R                  U / 5      R                  U5        g r.   )r   
setdefaultr<   )r   r   s     r4   addtopichookr   x  s    #**84rE   c                2  ^ / n[        U5       GHc  n[        R                  " XG   5      =(       d    SR                  5       mT(       a/  U R                  (       d   [        U4S j[         5       5      (       a  Mk  [        T5      mU(       a4  [        R                  " TR                  S5      5      R                  S5      mTR                  5       nUS   /n	USS  Hs  n
U
R                  5       R                  S5      (       a    ONU(       a!  U	R                  U
R                  5       5        MQ  U	R                  SU
R                  5       -   5        Mu     UR                  S	R!                  U	5      5        GMf     S
R!                  U5      nUR#                  X65      $ )zExtract docstring from the items key to function mapping, build a
single documentation block and use it to overwrite the marker in doc.
rE   c              3  ,   >#    U  H	  oT;   v   M     g 7fr.   r/   )r1   r2   r`   s     r4   r5   makeitemsdoc.<locals>.<genexpr>  s     -OA4ir7   latin1r   r   Ns   >>>s     r   s   

)r9   r   rG   rstriprU   r;   r%   r   textwrapdedentdecodeencoderQ   stripr   r<   rV   replace)r   r   rJ   ra   r:   r   entriesrC   r   doclineslr`   s              @r4   makeitemsdocr   |  s#    Gu,3;;=2::#-O-O*O*Ot}??4;;x#89@@JD!!H:qrAwwy##F++
+	 12  	uzz(+,% & ll7#G;;v''rE   c                4   ^^^ SUUU4S jjn[        X5        g )Nc           	        > [        XUTTTS9$ )Nr   )r   )r   r   rJ   r   ra   symbolss      r4   addaddtopicsymbols.<locals>.add  s    BsFGFKKrE   )r   r   r   r   rJ   r   )r   )r   ra   r   r   r   s    ``` r4   addtopicsymbolsr     s    L L rE   s   .. bundlecompressionmarkers   .. predicatesmarkers   .. internaltoolsmarkers   .. keywordsmarkers   .. filtersmarkers   .. functionsmarkers   .. webcommandsmarkerTr   c                   ^ Sn[         R                  mU4S jn[        R                  " S[        R                  " U5      -  XB5      $ )Ns   .. tweakdefaultsmarkerc                   > TR                  5        Vs/ s H  oR                  S5      U-   PM     nnSR                  U5      $ s  snf )Nr   r   )rQ   grouprV   )msr   repls      r4   subinserttweakrc.<locals>.sub  s>    )-):;):Aa):;zz%   <s   As   ( *)%s)uimodtweakrcrer   escape)r   r   rJ   ra   r   r   s        @r4   inserttweakrcr     s7    &F==D! 66*ryy00#;;rE   s   (^ *)?:config-doc:`([^`]+)`)flagsc                   / nSn[         R                  U5       GH  nUR                  5       nX4R                  5       ::  d   eUR                  XU 5        UR	                  S5      nUR                  SS5      u  pxU R                  R                  U5      n	U	c  Sn
OU	R                  U5      n
U
b  U
R                  (       d  SU-  nOQ[        U
R                  5      n[        X5      nUR	                  S5      nU(       a  UnXR                  SSU-   5      -   nUR                  U5        UR                  5       nGM"     UR                  XS 5        SR                  U5      $ )	zreplace :config-doc:`foo.bar` markup with the item documentation

This allow grouping config item declaration and help without having to
repeat it in the help text file and keep that in sync.
r   r\   r[   r   Ns   <missing help text for `%s`>r   rE   )_CONFIG_DOC_REfinditerstartr<   r   r_   _knownconfigr   documentationr   rH   r   endrV   )r   rJ   pieceslast_match_endmatchr   	item_namer}   keysection_itemsrc   item_docr@   s                r4   rH   rH     s7    FN((-...c/0KKN	 tQ/++G4 D $$S)D<t116BHt112H+B9H[[^F!$4$4UEFN$KKh- .. MM#o&'88FrE   c                4   0 n0 n0 nUR                  5        H  u  px[        R                  " U5      n	U	S   n
XU
'   US   nU(       a  U" U
5      (       d  M?  [        R                  " U5      n[        X
XU5      (       a  Mi  [        U5      nU(       d  [        S5      n[        R                  " U5      R                  5       XZ'   [        USS 5      =(       d    [        R                  R                  nUR                  U/ 5      R!                  U
5        M     XEU4$ )Nr   r   helpcategory)r:   r   r   r   rG   r   r   r   r"   r   r   r   r   commandCATEGORY_NONEr   r<   )r   r   rC   selectcatshsynscefsfr   rJ   cats                 r4   _getcategorizedhelpcmdsr    s     D
AD !!!$qEQt&))ood#RD,,cl/0C##C(//1dND1 
++ 	 	R ''*% !& D=rE   c                $   0 n0 nU H  nUSS u  pVn[        U5      S:  a  US   (       a  [        [        US   5      nO[        nUS   n	[	        U5      X9'   [        X	5      (       a  Mb  UR                  U/ 5      R                  X45        M     X#4$ )Nr   r   )r^   r   r   TOPIC_CATEGORY_NONErp   r   r   r<   )
r   
topictable	topiccatsr  r   r   r>   rJ   category	topicnames
             r4   _getcategorizedhelptopicsr  
  s     ID"1QZsu:>eAh"5%(3H1H!H	u+2))  2.55y6IJ  ?rE   c           	     L  ^ ^^^^^^^ [         R                  " T5      mSUUUUU U4S jjnSSUUUU 4S jjjmSSUU 4S jjjn	SSUU 4S jjjn
 S     SU 4S jjjm/ nTR                  S5      nU(       d  TGc[  [        U4S jT 5       5      (       Ga@  [	        T TT=(       d    S5      n/ nTR                  S	5      (       a  US
[        S5      4/-  nTR                  S5      (       a  US[        S5      4/-  nU(       d2  S[        S5      4S[        S5      4S
[        S5      4S[        S5      4/nU Hg  u  nnX   (       d  M  UR                  SU-  5        UR                  [        R                  " [        X   5      S5      5        UR                  S5        Mi     U(       d+  [        S5      n[        S5      n[        R                  " UUS9eGO"T(       a  TS:w  a  / nT(       a  UT/-  nTR                  S	5      (       a  UU
/-  nTR                  S5      (       a  UU/-  nU(       d  XU
T4nU H  n U" TU5      n  O   T(       a  [        R                  " T5      eU(       a  UnOTnU(       a  UnOTn[        S5      U-  n[        S5      U-  n[        R                  " UUS9eT R                  (       d  [        S5      S/nUR                  T" S0 [         R                  " T5      D65        SR!                  U5      $ ! [        R                   a     M  f = f) zt
Generate the help for 'name' as unformatted restructured text. If
'name' is None, describe the commands available.
c                  >^  [         R                  " U TR                  TS9u  p#/ n[        US   SS 5      (       a^  UR                  US   R                  S-   5        US   R                  (       a'   UR                  T" US   R                  5      5        U$ U$ [        U5      S:  aN  US   R                  S5      (       a  UR                  SUS   -  5        O4UR                  S	US   US   4-  5        OUR                  S
US   -  5        T(       aO  TR                  (       d>  [        U5      S:  a/  UR                  [!        S5      SR#                  USS  5      -  5        UR                  S5        [%        [&        R(                  " US   5      5      nU(       d  [!        S5      n[+        US   S5      (       ar  US   R,                  nUS   R.                  R                  S5      (       a"  [!        S5      US   R.                  SS  UU4-  nO[!        S5      US   R.                  UU4-  n[1        TU5      nUR3                  S5      nTR                  (       d  T(       d  UR                  US   5        OUR                  U5        UR                  S5         [4        R6                  " U 5      n	[%        [&        R(                  " U	5      5      =(       d    SnSUR9                  5       ;   a#  [!        S5      X 4-  n
UR                  SU
-  5        TR                  (       d=  US   (       a3  UR                  [=        [!        S5      US   TR>                  T5      5        TR>                  (       a:  UR                  [=        [!        S5      TR@                  TR>                  T5      5        TR>                  (       dQ  T(       d  UR                  [!        S5      U -  5        U$ TR                  (       d  UR                  [!        S5      5        U$ ! [        R                   a&  nUR
                  mU4S jnT" U5      nUs S nA$ S nAff = f! [        R                   a     U$ f = f! [:         a     GNbf = f)N)strictc                T   > [         R                  " U 5      S   R                  T5      $ )Nr   )r   r   r   )r  prefixs    r4   <lambda>(help_.<locals>.helpcmd.<locals>.<lambda>;  s     w33A6q9DDVLrE   r   badaliasr   r\   s   hgs   %s
s	   hg %s %s
s   hg %s
r   s   
aliases: %s
   , r   
definition   !s(   shell alias for: %s

%s

defined by: %s
s%   alias for: hg %s

%s

defined by: %s
TrE   s7   (use 'hg help -e %s' to show help for the %s extension)   
%s
s   options   global optionss$   
(use 'hg %s -h' to show more help)
s;   
(some details hidden, use --verbose to show complete help))!r   findcmdr   r   AmbiguousCommandr$  r   r<   r'  
unknowncmdrR   r   UnknownCommandr^   r   quietr   rV   r   r   rG   hasattrsourcer)  rH   rQ   r   r]   r   KeyErrorr   rU   
globalopts)rC   subtopicaliasesr   instr  rB   rJ   r3  r   msgr$  r   full
helpextcmdhelplistr   r/  s              @r4   helpcmdhelp_.<locals>.helpcmd2  s   
	$__hnnZNG  58Z..JJuQx((501Qx""JJz%(*:*:;< J3J u:>Qx""5))

7U1X-.

=GAJa+AABJJzGAJ./S\A%5JJq+,uzz'!"+/FFG

5 hooeAh/0/0C58\**1X__FQx""--d33HI!H''+M  EF!H''J 
 #2s+nnT"884JJs1vJJsO

5
	//$'C(//#./63C		#) L! 

9s?+
 xxE!HJJva
mU1Xrzz2FG::JJ'((*=*=rzz2 zz

1FG$NO 
 XX

2 
 %% 	 [[FLF6"CJ	  ++ Jl  		sB   "P 3$Q A5Q' Q	#Q>Q	Q	Q$#Q$'
Q54Q5c           	     N	  >^^^ [        TTR                  TU 5      u  nmm/ mT(       d-  TR                  (       d  TR                  [	        S5      5        T$ TR                  (       d\  TS:X  a  TR                  [	        S5      5        O;TS:X  a  TR                  [	        S5      5        OTR                  [	        S5      5        SUUUU4S jjnTS;   a	  U" T5        O[        UR                  5       5      [        [        5      -
  nU(       a(  TR                  S	[        R                  " U5      -  5        [         Hl  nUR                  U/ 5      nU(       d  M  [        U5      S
:  a&  [        [        U   5      nTR                  SU-  5        TR                  S5        U" U5        Mn     UR                  nU" S5      =(       d    U" S5      =(       d    U" S5      (       + n	T(       Gdt  U	(       Gal  [        [	        S5      [         R"                  " 5       TR$                  S9n
U
(       a"  TR                  S5        TR'                  U
5        TR                  [	        S5      5        [)        T[*        5      u  p[        UR                  5       5      [        [,        5      -
  nU(       a(  TR                  S[        R                  " U5      -  5        [,         H  nUR                  U/ 5      nU(       d  M  [        U5      S
:  a&  [        [.        U   5      nTR                  SU-  5        TR                  S5        U H  u  pTR                  SX4-  5        M     M     TR                  (       a   T$ TR$                  (       a_  TR                  S[1        [	        S5      TR2                  TR$                  T5      -  5        TS:X  a  TR                  [	        S5      5        T$ TS:X  a  TR                  [	        S5      5        T$ T(       a&  T(       d  TR                  [	        S5      T-  5        T$ T(       a:  T(       a3  TTR                  5       ;   a  TR                  [	        S5      T-  5        T$ TR                  [	        S5      T=(       a    ST-   =(       d    S-  5        T$ )Ns   no commands defined
r   s   basic commands:

r   s,   debug commands (internal and unsupported):

s   list of commands:
c                   > [        U 5      n U  HU  nUnTR                  (       a  SR                  TU   5      nUR                  SS5      nTR	                  SUTU   4-  5        MW     g )Nr(     :s   \:r   )r9   rU   rV   r   r<   )cmdsr  display_cmdr  rB   r  r   s      r4   
appendcmds+help_.<locals>.helplist.<locals>.appendcmds  s`    $<D::"'**T!W"5K)11$?

=K1+>>? rE   )r   r   s/   help categories missing from CATEGORY_ORDER: %sr   s   
%s:
r   keywordr  	extensionrN   rO   s   
additional help topics:
s5   help categories missing from TOPIC_CATEGORY_ORDER: %sr   r+  r,  s/   
(use 'hg help' for the full list of commands)
sF   
(use 'hg help' for the full list of commands or 'hg -v' for details)
s/   
(use 'hg help %s' to show the full help text)
sF   
(use 'hg help -v -e %s' to show built-in aliases and global options)
sB   
(use 'hg help -v%s' to show built-in aliases and global options)
r8   rE   )rB  zIterable[bytes]r   None)r  r   r1  r<   r   setkeysr'   	develwarnr"   forcebytestrr   r^   r   r)   rD   r   rS   rU   rR   r  r   r*   r+   r   r5  )r  optsr  rD  missing_orderr  catfnscatnameexanyoptsr?   r  	topicsynstopicstr3   r  rB   r  r   r:  rC   r   s                   @@@r4   r<  help_.<locals>.helplist  s   /f
a 88

1567J xx|#

1345!

1NOP

1345	@ 	@ ++qM  		,s>/BBMF --m<= &#r*64y1}").*=">

:#78JJu%v& & XXY-I9(HK#I()""$!zzD
 

5!

4 JJq789#<R#K I  	 01C8L4MMML --m<= ,"sB/69~)")*>s*C"D

:#78JJu%#)

=A9#<= $* , 88R 
Q ZZJJ'((*=*=rzz2 |#

JK@ 
9 |#

56 
+ d

JK( 
! $4499;#6

9 	 
 

1 +t2s	4 
rE   c                F  >^ Su  p#T(       a\  U [         ;   aR  [         U     H  u  pBnTU;   d  M    O   [        U4S j[         U     5       5      (       d  [        R                  " U 5      eU(       d2  [         H  nUSS u  pBnX;   d  M    O   [        R                  " U 5      e[
        R                  " U5      /nU(       d  UR                  S[        S5      -  5        [        U5      (       a,  Xc" T
5      R                  5        Vs/ s H  nSU-  PM
     sn-  nT
R                  (       d  [        S5      n[        Xh5         [        R                  " U T	R                  5        UR                  [        S5      X 4-  5        U$ s  snf ! [        R                   a     U$ f = f)	N)NNc              3  4   >#    U  H  nTUS    ;   v   M     g7f)r   Nr/   )r1   r   r6  s     r4   r5   +help_.<locals>.helptopic.<locals>.<genexpr>   s     AAx1Q4's   r   r   s       %s
r   :   (some details hidden, use --verbose to show complete help)s4   
use 'hg help -c %s' to see help for the %s command
)r   r;   r   r0  r   r   r}   r<   r   rn   rQ   rU   r   r   r-  r   )rC   r6  r>   rJ   r   r   rB   r   r   r   r   s    `       r4   	helptopichelp_.<locals>.helptopic  sv    	)&/o"su$ '6 A4AAA**400"%*1QZ"s= #
 **400v&' JJ{Q'B%CCDC==SW-?-?-AB-AK!O-ABBCzz+G C)	OOD(..1JJKL, 
# C ## 	
	s   F?F F F c                l  >  [         R                  " U 5      n[        TU5      nU(       d  [        S5      nSU;  a  USpTOUR                  SS5      u  pE[        S5      U R                  S5      S   U4-  /nU(       a1  UR                  UR                  S5      5        UR                  S5        TR                  (       d  [        S	5      n[        Xg5        U(       aS   UR                   nU V	s1 s H  oR%                  S
5      S   iM     n
n	UR                  T" U
R&                  5      5        U$ UR                  [        S5      5        U$ ! [         aE    S n[         R
                  " U 5      nU(       d  [        R                  " U 5      e[        TU5      n GNdf = f! ["         a    0 n Nf = fs  sn	f )Ns   no help text availabler   rE   r   s   %s extension - %s

r[   rY   TrZ     |r   B   (use 'hg help extensions' for information on enabling extensions)
)r   r]   rK   r   r4  disabled_helpr   r0  rH   r_   r   rR   rQ   r<   rU   r   r   AttributeError	partition__contains__)rC   r6  r   rJ   headtailrB   r   ctr  modcmdsr<  r   s              r4   helpexthelp_.<locals>.helpextD  s   
	0//$'C2s#C12 c$5!,JD)*dood.CB.G-NNOJJtt,-JJuzz+G C)\\ 688R{{4(+RG8JJx 4 456 
 JJ& 
K  	0C**40C**400&r3/C	04 " 8s*   4E F /F1AFFF.-F.c                  > [         R                  " TU TR                  SS5      5      u  p#n[        R                  " U5      n[        [        S5      U-  X40SSS9nUR                  S5        UR                  [        S5      5        U$ )	N   uis   stricts,   '%s' is provided by the following extension:   T)r@   rA   r   r_  )r   disabledcmdrj   r"   r   rD   r   r<   )rC   r6  r   rI   rJ   rB   r   s         r4   r;  help_.<locals>.helpextcmdq  s     #..bmmE95
# ""3'=>DJ	
 	

5

!	
 
rE   s   keywordc              3  .   >#    U  H
  nTU   v   M     g 7fr.   r/   )r1   orM  s     r4   r5   help_.<locals>.<genexpr>  s     !84a$q'4s   rE   r   rM   s
   Extensionss   commandr   s   Commandsr   s   Topicsr   s   Extension Commandss   %s:

r   r   s
   no matchess"   try 'hg help' for a list of topics)hintr   s   no such help topic: %ss   try 'hg help --keyword %s's   Mercurial Distributed SCM
)rC   r   r6  Optional[bytes]r   r&   r.   )r  Optional[_SelectFn]r   r&   )r   byteskwargsr   r;   r   r   r<   rR   r   rr   r9   r   
InputErrorr0  r1  	strkwargsrV   )r   r   rC   r/  r:  r6  fullnamerM  r=  r[  rh  rB   r   matches	helpareasrU  titler9  rr  queriesr  
formatnamehintnamer;  r<  s   `````  `               @@r4   help_r  !  s    %Dd dL B) )V+ +\ 26.	 . C	*	B	T\c!84!888R4;37	88L!!=!M*:;<<I88J;+788IAiL)an-- 01%q)>'?@	I "HAuzz

:-.

7,,VGJ-?CD

5!	 "
 M"C:;D""3T22  
$,&
|#G88L!!y G88Jy G 7J?GAh'  **400!)J!%J'H#H12Z?67(B&&s66 xx34e<C

8=H$6$6t$<=>88C=/ '' s   >	LL#"L#c                   Uc  / nO[        U5      nS=n=pUbp  UR                  S5      n
U
R                  S5      nU
(       a  U[        ;   a  U
R                  S5      nU
(       a%  [        R
                  " SR                  U
5      5      n	U R                  SS5      nU R                  5       S-
  nUS::  d  X:  a  Un[        U UU4UUUUS.UD6n[        R                  " XS9u  pS	U;   a  UR                  S
5        OUR                  S5        [        R                  " XS9u  pU	(       a  [        R                  " X5      nU	(       a0  U(       a  U(       d"  [        R                  " [!        S5      U-  5      e[        R"                  " X5      $ )z}get help for a given topic (as a dotted name) as rendered rst

Either returns the rendered help text or raises an exception.
Nr[   r   rk  s	   textwidthr\   )rx  r6  r/  r:  )keeps   verboses   omitteds
   notomitteds   help section not found: %s)rp   r_   popr   r   r   rV   	configint	termwidthr  r   parser<   filtersectionsr   rv  r   formatplain)r   r   rx  r  r/  r:  rM  rC   r6  r}   	nameparts	textwidthr  r`   blockspruneds                   r4   formattedhelpr    sf    |Dz !%$D$8NN4(	}}Q* }}Q'HnnTYYy%9:GUL1I"IA~.	
	 	 	D ]]43NFVJM"]]43NF''8
 4q!>?(JKKv11rE   )r   F)
r>   r   r?   r(   r@   intrA   rq   r   r&   r   )r`   r   r   z#Optional[Tuple[bytes, List[bytes]]])r>   r   rU   rq   r   r   r   r   r.   )rB   r&   r   r   r   rs  r   rH  )
r   r   r   r   r   r   rJ   r   r   rq   )r   r   r   r   r   rq   )r   r   r   r   r   z&Dict[bytes, List[Tuple[bytes, bytes]]])r   r   r   rs  r   
_DocLoader)r   r   r   
_TopicHookr   rH  )F)r   r   r   r   rJ   r   ra   r   r:   r(   r   rq   r   r   )r   r   ra   r   r   rq   r   rH  )r   r   r   r   rJ   r   r   r   )r   r   rJ   r   r   r   )r   r   rC   r   r  rt  r   zBTuple[Dict[bytes, List[bytes]], Dict[bytes, bytes], _SynonymTable])r   r   r  zList[_HelpEntry]r   zGTuple[Dict[bytes, List[Tuple[bytes, bytes]]], Dict[bytes, List[bytes]]])FTNN)r   r   rC   r   r/  rq   r:  rq   r6  rs  rx  rs  r   r   )NFT)r   r   rx  rs  r  zOptional[Iterable[bytes]]r/  rq   r:  rq   r   r   )p
__future__r   r   r   r   typingr   r   r   r   r   r	   r
   r   r   i18nr   r    r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   hgwebr   utilsr    r!   r"   r   r  
_HelpEntryr#   r$   objectrq   	_SelectFn_SynonymTabler  r%   __annotations__r  CATEGORY_REPO_CREATIONCATEGORY_REMOTE_REPO_MANAGEMENTCATEGORY_COMMITTINGCATEGORY_CHANGE_MANAGEMENTCATEGORY_CHANGE_ORGANIZATIONCATEGORY_FILE_CONTENTSCATEGORY_CHANGE_NAVIGATIONCATEGORY_WORKING_DIRECTORYCATEGORY_IMPORT_EXPORTCATEGORY_MAINTENANCECATEGORY_HELPCATEGORY_MISCr  r'   r)   TOPIC_CATEGORY_IDSTOPIC_CATEGORY_OUTPUTTOPIC_CATEGORY_CONFIGTOPIC_CATEGORY_CONCEPTSTOPIC_CATEGORY_MISCr  r*   r+   rD   rK   rW   rd   r   r   r   r   r   rP   r9   r   r   r   r   r   r   r   r   bundlecompressiontopicsr   internalsdockeywordsfiltersfuncsr   r   compile	MULTILINEr   rH   r  r  r  r  r/   rE   r4   <module>r     s   #  	 
 
 
    "   uxxj%'(
CD
T%[%;< tE{E:uDE fXt^$	UDK'(uxx.56
 mo
z 
" ,,55))0022,,0000,,**###### & ,,.D557V))+=002F002H224J002Q,,.H,,.E**,E##W##%>##%>&" "  ! ! %    % k  0.5[)0, (   	
  	
 $)$35r EIP	P$P2AP	P.EHH %H+HV" .4 N$%L6	

 q}gj&NO
q}gj&NO
AgJ EF
a	lGIl$KLoOL9	
 K!"Il3	
 ()N<8	
 L)M,7	
 OmM,7	
 ()OL9	
 LJ|4	
 OL9	
   "#&|<	
 ()%l;	
o<>.* >B	 +1 O$%M"#		
 J#$H!		
  $%I!		
 O$%M"		
 JoH!		
 J#$H!		
 M#$K 		
 V$&'N#!		
 %&L!	

 "#G!		
 *%%&K 		
 JoH!		
 :nN#!		
 A L!!		
 AlOWW%57IJO*+!		
 *% !K #		
 J"#H!		
 MkNK #		
 )$23K 		
 K$%I#		
 N89L!#		
 N<=L!		
 N01		
 JH!		
o]_+	' _F .6	2  ,.	( -5  ( ( ( 
 ( 	 (
  (  (  (H :?26	 !'')
 3W__ E -y/E/E 4fnn E 2J4G4G H 1?3J3J K 3]5H5H I %{';';D
< :",,O H HL"'1DG>.L( Y &  $ $ee e 	e
 e e e eX '+:2:2 :2 $	:2
 :2 :2 :2rE   