ó
    6°hÎ?  ã            
      óÖ  • S r SSKJr  SSKJr  SSK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  Sr0 r\R.                  " \5      r\R0                  " 5       r " S S\R2                  5      r\" 5       r\" S	S
SSS\" S5      4/\" S5      \R8                  S9S S j5       r\" SSS9S 5       r\" SSS9S 5       r\" S5      S 5       r \" SSS9S 5       r!S r"S!S jr#S r$\$" 5         g)"aj  unified command to show various repository information (EXPERIMENTAL)

This extension provides the :hg:`show` command, which provides a central
command for displaying commonly-accessed repository data and views of that
data.

The following config options can influence operation.

``commands``
------------

``show.aliasprefix``
   List of strings that will register aliases for views. e.g. ``s`` will
   effectively set config options ``alias.s<view> = show <view>`` for all
   views. i.e. `hg swork` would execute `hg show work`.

   Aliases that would conflict with existing registrations will not be
   performed.
é    )Úannotations)Ú_)Únullrev)ÚcmdutilÚcommandsÚdestutilÚerrorÚ	formatterÚgraphmodÚ
logcmdutilÚphasesÚpycompatÚ	registrarÚrevsetÚ
revsetlangÚscmutils   ships-with-hg-corec                  ó&   • \ rS rSrSrSrSS jrSrg)Úshowcmdfuncé<   z;Register a function to be invoked for an `hg show <thing>`.s   %s -- %sNc                ó   • X2l         XBl        g)aÆ  Called with decorator arguments to register a show view.

``name`` is the sub-command name.

``func`` is the function being decorated.

``fmtopic`` is the topic in the style that will be rendered for
this view.

``csettopic`` is the topic in the style to be used for a changeset
printer.

If ``fmtopic`` is specified, the view function will receive a
formatter instance. If ``csettopic`` is specified, the view
function will receive a changeset printer.
N)Ú_fmtopicÚ
_csettopic)ÚselfÚnameÚfuncÚfmtopicÚ	csettopics        Ú,/usr/lib/python3/dist-packages/hgext/show.pyÚ_extrasetupÚshowcmdfunc._extrasetupB   s   € ð"  ŒØ#�ó    © ©NN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
_docformatr   Ú__static_attributes__r"   r!   r   r   r   <   s   † ÙEð €J÷$r!   r   ó   showó   Tó   templater!   s   display with templates   TEMPLATEs   VIEW)ÚhelpcategoryNc                óT  • U R                  5       (       a0  U(       d)  [        S5      n[        R                  " [        S5      US9e[        R
                  nU(       dÈ  U R                  S5        U R                  [        S5      5        U R                  S5        [        UR                  5       5       H7  u  pgU R                  S[        R                  " UR                  5      -  5        M9     U R                  S5        [        R                  " [        S5      [        S	5      S9eX%;  a*  [        R                  " [        S
5      U-  [        S5      S9eU=(       d    SnXR   nU R                  S5        UR                  (       a6  SUR                  -  n	U R                  U	SU05       n
U" XU
5      sSSS5        $ UR                  (       aE  SUR                  -  n[        R                   " XU5      n["        R$                  " XUSS9nU" XU5      $ U" X5      $ ! , (       d  f       g= f)a½  show various repository information

A requested view of repository data is displayed.

If no view is requested, the list of available views is shown and the
command aborts.

.. note::

   There are no backwards compatibility guarantees for the output of this
   command. Output may change in any future Mercurial release.

   Consumers wanting stable command output should specify a template via
   ``-T/--template``.

List of available views:
s2   invoke with -T/--template to control output formats%   must specify a template in plain mode)Úhintr+   s   available views:
ó   
s   %s
s   no view requesteds#   use "hg show VIEW" to choose a views   unknown view: %ss$   run "hg show" to see available viewss   show%sr-   NT)Úbuffered)Úplainr   r	   ÚAbortÚshowviewÚ_tableÚpagerÚwriteÚsortedÚitemsr   Úsysbytesr(   r   r
   r   Úlookuptemplater   Úchangesettemplater)ÚuiÚrepoÚviewÚtemplater0   Úviewsr   r   Úfnr   ÚfmÚrefÚspecÚ	displayers                 r   ÚshowrH   Z   s¾  € ð> 
‡x�x‡z�zž(ÜÐFÓGˆÜ�kŠkÜÐ6Ó7¸dñ
ð 	
ô �O‰O€EæØ
�‰�Ôð 	�‰”Ð(Ó)Ô*Ø
�‰�Œä  §¡£Ö/‰JˆDØ�H‰H�Wœx×0Ò0°·±Ó>Ñ>Ö?ñ 0ð 	�‰�ŒÜ�kŠkÜÐ"Ó#ÜÐ9Ó:ñ
ð 	
ð ÓÜ�kŠkÜÐ!Ó" TÑ)ÜÐ:Ó;ñ
ð 	
ð
 ×"˜7€Hà	‰€BØ‡H�HˆWÔà	‡{‡{Ø˜bŸk™kÑ)ˆØ�\‰\˜' K°Ð#:Ô;¸rÙ�b Ó#÷ <Ñ;à	��Ø˜"Ÿ-™-Ñ'ˆÜ×'Ò'¨°Ó:ˆÜ×1Ò1°"¸DÈ4ÑPˆ	Ù�"˜IÓ&Ð&á�"‹|Ð÷ <Õ;ús   Æ(	HÈ
H's	   bookmarks)r   c                óž  • UR                   n[        U5      (       d:  [        U[        R                  5      (       d  U R                  [        S5      5        gUR                  5        Vs/ s H  oAU   R                  5       PM     nnUR                  n[        S U 5       5      n[        X5      n[        UR                  5       5       H|  u  p”UR                  5         UR                  X   S9  UR                  SSU	5        UR                  SUR!                  U5      UR!                  U5      5        UR#                  X–:H  XxS9  M~     gs  snf )	z(bookmarks and their associated changesets   (no bookmarks set)
Nc              3  ó8   #   • U  H  n[        U5      v •  M     g 7f©N)Úlen)Ú.0Úbs     r   Ú	<genexpr>Ú showbookmarks.<locals>.<genexpr>¸   s   é € Ð,¢e ”c˜!—f�f¢eùs   ‚)Úctxs   bookmarks   %só   node)ÚactiveÚlongestbookmarklenÚnodelen)Ú
_bookmarksrL   Ú
isinstancer
   Újsonformatterr8   r   ÚvaluesÚrevÚ_activebookmarkÚmaxÚlongestshortestr9   r:   Ú	startitemÚcontextÚhexfuncÚdata)
r>   r?   rD   ÚmarksÚnodeÚrevsrS   ÚlongestnamerU   Úbms
             r   Úshowbookmarksrg   ª   s  € ð �O‰O€EÜˆu�:‰:ô ˜"œi×5Ñ5×6Ñ6Ø�H‰H”QÐ.Ó/Ô0Øà).¯©¬Ó8ª �‰J�N‰NÖ©€DÐ8Ø×!Ñ!€FÜÑ,¡eÓ,Ó,€KÜ˜dÓ)€Gä˜5Ÿ;™;›=Ö)‰ˆØ
�‰ŒØ
�
‰
�t‘zˆ
Ñ"Ø
�‰�˜e RÔ(Ø
�‰�˜"Ÿ*™* TÓ*¨B¯J©J°tÓ,<Ô=Ø
�‰Ø‘<°Kð 	ó 	
ò *ùò 9s   Á)E
s   stack)r   c                ón  ^^• US   nUR                  5       [        :X  a  [        R                  " [	        S5      5      eUR                  5       [        R                  :X  a  U R                  [	        S5      5        g[        R                  " X5      nSnUc"  UR                  5       nUR                  5       1nO[        UR                  SU5      5      nX   nUR                  5       R                  5       [        :w  a  UR                  5       nSnUR                  n	U	R                  UR                  5       /5       Hk  n
X   nUR                  5       [        R                  :X  a    ODUR!                  UR                  5       5        [#        UR%                  5       5      S:”  d  Mi  Sn  O   ['        [)        USS	95      nU(       a+  [        UR                  S
UR                  5       U5      5      nO
[        5       n[        U5      U-  U1-  n[+        X5      n [,        R.                  " S[0        R2                  5        Sn[8        R:                  " X5      n[8        R<                  " U SU-  US9mU4S jnU(       Ga¬  0 mU H9  nU	R?                  U/UR                  5       S9n[#        ['        U5      5      TU'   M;     XS      n[)        UU4S jSS9n[A        U5       GH  u  nn
X   nU(       a  U R                  S5        OU R                  S5        U RC                  S5        URE                  X}S9  URG                  U5        U R                  S5        U(       a  U R                  S5        OU R                  S5        U R                  S5        U R                  [	        S5      TU
   -  SS9  U(       a2  U R                  S5        U R                  SU" U5      U" U5      4-  S S9  U R                  S!5        GM     U R                  S"5        U R                  [	        S#5      S$S9  U(       a;  U R                  S%5        U R                  [	        S&5      S$S9  U R                  S'5        U H‹  n
X   nX£R                  5       :X  a  S(OS)nU(       a  U R                  S5        OU R                  S5        U R                  US5        URE                  X}S9  URG                  U5        U R                  S5        M�     U(       a‡  U(       a  U R                  S*5        OU R                  S+5        U R                  [	        S,5      SS$S9  U RC                  S5        URE                  X]S9  URG                  U5        U R                  S5        gg! [        R4                  [        R6                  4 a    Sn GNtf = f)-zcurrent line of workó   .s;   stack view only available when there is a working directorysA   (empty stack; working directory parent is a published changeset)
Ns   %d::.Fé   T)Úreverses    heads(%d::) - %ld - not public()s   rebases   {shortest(node, %d)})Ú	resourcesc                óF   >• TR                  X R                  5       S.5      $ )N)s   ctxrR   )ÚrenderdefaultÚhex)rQ   Úshortesttmpls    €r   ÚshortestÚshowstack.<locals>.shortest!  s   ø€ Ø×)Ñ)°3ÇÁÃÑ*KÓLÐLr!   )Ústoprevéÿÿÿÿc                ó   >• TU    $ rK   r"   )ÚxÚrevdistances    €r   Ú<lambda>Úshowstack.<locals>.<lambda>4  s	   ø€  K°¢Nr!   )Úkeyrk   s   : s     s   o  )rU   r1   s   :/s    /s       (s   %d commits aheads   stack.commitdistance)Úlabels   ; s   hg rebase --source %s --dest %ss   stack.rebasehints   )
s   :
:    s   (stack head)
s   stack.labels    \ /  s   (multiple children)
s     |
ó   @ó   os   :/   s    /   s   (stack base))$rZ   r   r	   r4   r   Úphaser   Úpublicr8   r   Ú	stackbaseÚsetrd   Úp1Ú	changelogÚdescendantsÚaddrL   ÚchildrenÚlistr9   r]   r   Úfindcmdr   ÚtableÚAmbiguousCommandÚUnknownCommandr
   ÚtemplateresourcesÚmaketemplaterÚ	ancestorsÚ	enumerateÚwritenoi18nrH   Úflush)r>   r?   rG   ÚwdirctxÚbaserevÚbasectxÚ	stackrevsrQ   ÚbranchpointattipÚclrZ   ÚnewheadsÚallrevsrU   Ú
haverebaseÚtresrq   ÚheadrŽ   Ú	sourcectxÚsortedheadsÚiÚsymbolrw   rp   s                          @@r   Ú	showstackr¡   Å   sÊ  ù€ ð �4‰j€GØ‡{�{ƒ}œÓÜ�kŠkÜð%óó
ð 	
ð ‡}�}ƒœ&Ÿ-™-Ó'Ø
�‰Üð óô	
ð 	ô
 × Ò  Ó*€GØ€Gà�Ø—+‘+“-ˆØ—[‘[“]�O‰	ä˜Ÿ	™	 (¨GÓ4Ó5ˆ	à
‰-€CØ
‡v�vƒx‡|�|ƒ~œÓ Ø—&‘&“(ˆð ÐØ	�‰€Bà�~‰~˜wŸ{™{›}˜oÖ.ˆØ‰iˆð �9‰9‹;œ&Ÿ-™-Ó'Ùà�‰�c—g‘g“iÔ ô ˆs�|‰|‹~Ó Õ"Ø#ÐÙñ! /ô$ ”V˜I¨tÑ4Ó5€Iö äØ�I‰IØ3°W·[±[³]ÀIóó
‰ô “5ˆä�)‹n˜xÑ'¨7¨)Ñ3€GÜ˜dÓ,€GðÜ�Š˜	¤8§>¡>Ô2Øˆ
ô ×&Ò& rÓ0€DÜ×*Ò*Ø
Ð# gÑ-¸ñ€LõM÷ ð ˆÛˆDð Ÿ™ d V°W·[±[³]˜ÐCˆIÜ #¤D¨£OÓ 4ˆK˜Óñ	 ð  2™Ñ'ˆ	äØÔ2¸Dñ
ˆô   ×,‰FˆAˆsØ‘)ˆCæØ—‘˜•à—‘˜”à�N‰N˜6Ô"Ø�N‰N˜3ˆNÑ0Ø�O‰O˜CÔ Ø�H‰H�UŒOæØ—‘˜•à—‘˜”à�H‰H�XÔØ�H‰HÜÐ%Ó&¨°SÑ)9Ñ9Ø-ð ñ ö
 à—‘˜”Ø—‘à:Ù# IÓ.±¸³Ð>ñ?ð .ð ñ ð �H‰H�V×ñG -ðJ 	�‰�ÔØ
�‰”Ð$Ó%¨^ˆÑ<æØ
�‰�ÔØ
�‰”Ð+Ó,°NˆÑCØ
�‰�ÔãˆØ‰iˆØ§¡£Ó-‘°4ˆæØ�H‰H�U�Oà�H‰H�UŒOà
�‰�˜ÔØ�‰�sˆÑ,Ø�‰˜ÔØ
�‰�Žñ ö  ö Ø�H‰H�XÕà�H‰H�XÔà
�‰”�?Ó# U°.ˆÑAØ
�‰�vÔà�‰�wˆÑ0Ø�‰˜Ô Ø
�‰��ð øôA ×"Ñ"¤E×$8Ñ$8Ð9ó Ø‹
ðús   È'V
 Ö
&V4Ö3V4s!   _underway([commitage[, headage]])c                óŒ  • [         R                  " USS5      nSU;  a  S US'   SU;  a  S US'   Sn/ nUS   (       a7  US-  nUR                  [        R                  " US   [        S5      5      5        U R                  " U/UQ76 n[         R                  " U5      nXpR                  SU5      -  nS	n/ nUS   (       a7  US-  nUR                  [        R                  " US   [        S
5      5      5        XpR                  " U/UQ76 -  nU S   R                  5       nU[        :w  a  U[         R                  " U15      -  nX-  $ )Ns   underways   commitage headages	   commitages   headages   not public() and not obsolete()s    and date(%s)s   commitage requires a strings   parents(%ld)s   head() and not closed()s   headage requires a stringri   )
r   ÚgetargsdictÚappendr   Ú	getstringr   rd   ÚbasesetrZ   r   )	r?   Úsubsetrv   ÚargsÚrsÚrsargsÚmutableÚrelevantÚwdirrevs	            r   Úunderwayrevsetr®   „  sU  € ä×Ò˜a Ð.BÓC€DØ˜4ÓØ!ˆˆ\ÑØ˜ÓØˆˆZÑð 
,€BØ€FØˆL×Ø
ÐÑˆØ�‰Ü× Ò Ø�\Ñ"¤AÐ&DÓ$Eóô	
ð �iŠi˜Ð$˜VÒ$€GÜ�~Š~˜gÓ&€Hð —	‘	˜/¨7Ó3Ñ3€Hð 
$€BØ€FØˆJ×Ø
ÐÑˆØ�‰Ü× Ò Ø�ZÑ ¤!Ð$@Ó"Aóô	
ð —	’	˜"Ð&˜vÒ&Ñ&€Hð �4‰j�n‰nÓ€GØ”'ÓØ”F—N’N G 9Ó-Ñ-ˆàÑÐr!   s   workc           	     óà   • UR                  S5      n[        X5      n[        R                  " X5      nU R	                  SSS5        [
        R                  " U UUU[        R                  SU0S9  g)zchangesets that aren't finisheds   sort(_underway(), topo)s   experimentals   graphshortenTs   nodelen)ÚpropsN)rd   r]   r   Ú	dagwalkerÚ	setconfigr   ÚdisplaygraphÚ
asciiedges)r>   r?   rG   rd   rU   Úrevdags         r   Úshowworkr¶   ½  sh   € ð �9‰9Ð/Ó0€DÜ˜dÓ)€Gä×Ò Ó+€Fà‡L�L� /°4Ô8Ü×ÒØ
ØØØÜ×ÑØ˜7Ð#ór!   c           	     ó(  • U R                  SS5       H|  n[        R                   He  nSX4-  n[        R                  " U[
        R                  SS9u  pEX4;   a  M6  U R                  SUS 5      (       a  MP  U R                  SUSU-  SS	9  Mg     M~     g )
Ns   commandss   show.aliasprefixs   %s%sT)Ústricts   aliass   show %sr+   )Úsource)	Ú
configlistr5   r6   r   Úfindpossibler   r‰   Úconfigr²   )r>   Úprefixr@   r   ÚchoiceÚallcommandss         r   ÚextsetuprÀ   Ñ  sŒ   € à—-‘- Ð-@ÖAˆÜ—O”OˆDØ˜f˜^Ñ+ˆDä")×"6Ò"6Ø”h—n‘n¨Tñ#ÑˆFð
 ‹~Ùð �y‰y˜ 4¨×.Ñ.Ùà�L‰L˜ 4¨°dÑ):À7ˆLÓKó $ò Br!   c                ó`   ^ ^^• U(       d  T$ T R                   m[        UUU 4S jU 5       5      $ )aÝ  Return the length of the longest shortest node to identify revisions.

The result of this function can be used with the ``shortest()`` template
function to ensure that a value is unique and unambiguous for a given
set of nodes.

The number of revisions in the repo is taken into account to prevent
a numeric node prefix from conflicting with an integer revision number.
If we fail to do this, a value of e.g. ``10023`` could mean either
revision 10023 or node ``10023abc...``.
c           	   3  ó„   >#   • U  H5  n[        [        R                  " TTR                  U5      T5      5      v •  M7     g 7frK   )rL   r   Úshortesthexnodeidprefixrc   )rM   Úrr—   Úminlenr?   s     €€€r   rO   Ú"longestshortest.<locals>.<genexpr>õ  s7   øé € ð âˆAô 	ŒG×+Ò+¨D°"·'±'¸!³*¸fÓE×FÐFÚùs   ƒ=A )rƒ   r\   )r?   rd   rÅ   r—   s   ` `@r   r]   r]   æ  s0   ú€ ö ØˆØ	�‰€BÜö áóó ð r!   c                 ód  • [        [        [        [        R                  R                  5       5      5      n / n[        [        R                  R                  5       5       HY  nUR                  [        R                  " UR                  U 5      5      < S[        R                  U   R                  < 35        M[     [        R                  " S5      [        R                  " [        S   S   R                  5      [        R                  " S5      R                  U5      4-  [        S   S   l        g )Nz   s   %s

%s
    r+   r   s   

)r\   ÚmaprL   r5   r6   Úkeysr9   r¤   r   ÚsysstrÚljustÚ_origdocÚcleandocÚcmdtabler(   Újoin)ÚlongestÚentriesrz   s      r   Ú_updatedocstringrÒ      sÙ   € Ü”#”cœ8Ÿ?™?×/Ñ/Ó1Ó2Ó3€GØ€GÜ”h—o‘o×*Ñ*Ó,Ö-ˆØ�‰ô —’ §	¡	¨'Ó 2Ö3Ü—‘ Ñ$×-Ó-ðö	
ñ .ô $,§?¢?Ð3DÓ#EÜ×Òœ( 7Ñ+¨AÑ.×6Ñ6Ó7Ü�Š˜Ó ×%Ñ% gÓ.ðIñ $„HˆWÑ�aÑÕ r!   r#   )é   )%r(   Ú
__future__r   Úmercurial.i18nr   Úmercurial.noder   Ú	mercurialr   r   r   r	   r
   r   r   r   r   r   r   r   r   Ú
testedwithrÎ   ÚcommandÚrevsetpredicateÚ_funcregistrarbaser   r5   ÚCATEGORY_CHANGE_NAVIGATIONrH   rg   r¡   r®   r¶   rÀ   r]   rÒ   r"   r!   r   Ú<module>rÝ      s@  ðñõ( #å Ý "÷÷ ÷ õ ð( #€
à€Ø
×
Ò
˜HÓ
%€à×+Ò+Ó-€ô$�)×.Ñ.ô $ñ6 ‹=€ñ 	Øð 
ˆ{˜CÐ!9¹1¸[»>ÐJðñ €gƒJØ×3Ñ3ñó@óð@ñF 
ˆ, Ñ-ñ
ó .ð
ñ4 
ˆ(˜hÑ'ñ{ó (ð{ñ| Ð5Ó6ñ5ó 7ð5ñp 
ˆ'˜WÑ%ñó &ðò&Lô*ò4ñ$ Õ r!   