https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/mercurial/__pycache__/help.cpython-310.pyc
o

�]Lb��@sVddlmZddlZddlZddlZddlmZmZddlm	Z	ddl
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZddlmZddlmZmZd	d
ded	�ed
�ed�hZ ej!j"ej!j#ej!j$ej!j%ej!j&ej!j'ej!j(ej!j)ej!j*ej!j+ej!j,ej!j-ej!j.g
Z/ej!j"dej!j#d
ej!j$dej!j(dej!j%dej!j&dej!j)dej!j'dej!j*dej!j+dej!j,dej!j-dej!j.di
Z0dZ1dZ2dZ3dZ4dZ5dZ6e1e2e3e4e5e6gZ7e1de2d e3d!e4d"e5d#e6d$iZ8d�d&d'�Z9d(d)�Z:d*d+�Z;d,d-�Z<d�d.d/�Z=d0d1�Z>d2d3�Z?d4d5�Z@d�d6d7�ZAeBd8ged9�eAd8d:d;�fd<ged=�eAd<d:d;�fd>ged?�eAd>d:d;�fd@gedA�eAd@d:d;�fdBgedC�eAdBd:d;�fdDgedE�eAdDd:d;�fdgedF�eAdd:d;�fdGgedH�eAdGd:d;�fdIdJgedK�eAdId:d;�fdLgedM�eAdLd:d;�fdNgedO�eAdNd:d;�fdPgedQ�eAdPd:d;�fdRgedS�eAdRd:d;�fdTgedU�eAdTd:d;�fdVgedW�eAdVd:d;�fg�ZCdXdY�ZDeBdZged[�eAdZ�e4fd\ged]�eAd\�e2fdd^ged_�eAd�e3fd`geda�eAd`�e5fdbgedc�eAdb�e2fddgede�eAdd�e3fdfgedg�eAdf�e1fdhdigedj�eAdh�e3fgdk�edl�eAdm�e1fdndogedp�eAdn�e3fdqdrgeds�eAdq�e1fdtgedu�eAdt�e2fgdv�edw�eAdx�e3fgdy�edz�eAd{�e2fd|ged}�eAd|�e1fdIged~�e:e3fdd�ged��eAd�e4fd�ged��eAd��e3fd�ged��eAd��e4fd�d�ged��eAd��e1fd�ged��eAd��e4fd�ged��eAd��e4fd�ged��eAd��e5fd:ged��eDe5fd�ged��eAd��e3fg�ZEd:eCiZFiZGd�d��ZHd�d�d��ZId�d�d��ZJeJdZd�e�K��eJdqd�ejL�eJdxd�ejM�eJdmd�ejL�eJd{d�ejN�eJd{d�ejO�eJd{d�ejP�eJd�d�ejQd�d��d�d��ZRd�d�d��ZSd�d��ZTeHdeR�	%	�		d�d�d��ZU	�d�d�d��ZVdS)��)�absolute_importN�)�_�gettext)�getattr)�cmdutil�encoding�error�
extensions�	fancyopts�	filemerge�fileset�minirst�pycompat�	registrar�revset�templatefilters�
templatefuncs�
templatekw�ui�util)�webcommands)�compression�resourceutils
(ADVANCED)s(DEPRECATED)s(EXPERIMENTAL)sRepository creationsRemote repository managementsChange creationsChange navigationsChange manipulationsChange organizationsWorking directory managementsFile content managementsChange import/exportsRepository maintenancesHelpsMiscellaneous commandssUncategorized commandssidssoutputsconfigsconceptssmiscsnonesMercurial identifierssMercurial outputsMercurial configurationsConceptss
MiscellaneoussUncategorized topicsFcslg}|r*tt�|��D]\}�|st�fdd�tD��rq|�dd||�f�q|r4|�dd|�|S)z-return a text listing of the given extensionsc3��|]}|�vVqdS�N���.0�w��descr�0/usr/lib/python3/dist-packages/mercurial/help.py�	<genexpr>���zlistexts.<locals>.<genexpr>s
%s:%s: %s
� rs
%s

)�sortedr�	iteritems�any�
_exclkeywords�append�insert)�header�exts�indent�showdeprecated�rst�namerr r"�listexts}sr2cCsZtd�|��d�}|�ttd�t��dd��|�ttd�t��|jd��d�	|�}|S)N�
extensionsT�enabled extensions:�r/sdisabled extensions:�)
�loaddoc�
splitlines�extendr2rr
�enabled�disabled�verbose�join)rr0�docrrr"�extshelp�s����
r?cCsZ|dd�dkr)d}|�|�}|dkr+||t|�d�}|d|�|�dd�fSdSdS)zdgiven a text 'abc (DEFAULT: def.ghi)',
    returns (b'abc', (b'def', b'ghi')). Otherwise return None���N�)s (DEFAULT: r�.�)�find�len�split)�text�marker�pos�itemrrr"�parsedefaultmarker�s
�rKcs�g}d}|D]�}t|�dkr|\}}}	�}
n
|\}}}	�td�}
|s.t�fdd�tD��r.qd}|	durNt��}|durN|\�\}
}|�|
|�rNd}	td�}d}|rVd	|}d
|}|	durbd|}t|	tj�rl|	�	�}	|	r�t
|	�s�t�|	�}|	durtd�}�td
�||7�t|	t
�r�|d|
7}d}n|	dur�t|	t�s�|d|
7}|�||�f�q|r�|td�7}d|g}|�t�|d��d�|�S)NF�sVALUEc3rrrrr rr"r#�r$zoptrst.<locals>.<genexpr>r6Ts from config�-s--s--[no-]sons (default: %s)s %s [+]s %ss ([+] can be repeated)s
%s:

r)rErr(r)rK�
configbool�
isinstancer�	customopt�getdefaultvalue�callabler�bytestr�list�boolr*r9r�	maketabler=)r,�optionsr<r�data�
multioccur�option�shortopt�longopt�default�optlabel�defaultstrsuffix�parseresult�sectionr1�so�lo�
defaultstrr0rr r"�optrst�sR



recCs(|�d|�|r|�d|�dSdS)Ns"

.. container:: omitted

    %s

s%

.. container:: notomitted

    %s

)r*)r0�omitted�
notomittedrrr"�indicateomitted�s�rhcs�|js|�d�r|dkrdS|js4|s�sdSt|dd�r%t|dd�s%dS�r4t�fdd�tD��r4dS|dkr@t|d	d�s@dS|�d
d|�rJdSdS)N�debugT�aliasF�owndocc3rrrr�r>rr"r#�r$zfiltercmd.<locals>.<genexpr>�	shortlist�	helpbasic�helpshidden-command.%s)�	debugflag�
startswithr<rr(r)rN)r�cmd�func�kwr>rrlr"�	filtercmd�srucCs|�dd|d�S)Nroshidden-topic.%sF)rN)r�topicrrr"�filtertopic�srwc	svt�����fdd�}ggggd�}tD]4}|dd�\}}}tt||��s4||�s4t|�rH|||��rH|d}	t||	�sH|d�|d|f�qt�	|j
�D]M\}
}t|�dkr^|d}nd}|d}
tt�
|
��pld}�|
vsy||�sy||�r�|��}|r�|d}t�|
�d}t|||
�|�r�qO|d	�||f�qOt�t�	t�d
��t�	t����D]�\}	}|s�q�|	�d�d}	||	�s�||�r�|d
�|	|��df�z	t�||	d�}Wn	ty�Yq�wt�	t|di��D]J\}
}�|
v�st|�dk�r7||d��r7t�|
�d}|d}
t�
|
�}|�r t|���d}ntd�}t|||
�|��r.q�|d�||f�q�q�|S)z�Return help topics matching kw.

    Returns {'section': [(name, summary), ...], ...} where section is
    one of topics, commands, extensions, or extensioncommands.
    cs�t�|�vSr)r�lower)�	container�rtrr"�
lowercontainssz!topicmatch.<locals>.lowercontains)�topics�commandsr3�extensioncommandsr�r|rCr6r}FrBr@r3�cmdtable�(no help text available)r~)rrx�	helptable�sum�maprRrwr*rr'�tablerEr�getdocr8r�parsealiasesru�	itertools�chainr
r:r;�
rpartition�load�ImportErrorrr)r�commandsrtr{�resultsrv�namesr,r>r1rr�entry�summaryrs�docs�doclines�cmdname�mod�cmddocrrzr"�
topicmatchs�
����
�
�
���&
��r�cs��fdd�}|S)z+Return a delayed loader for help/topic.txt.csrd}�r
|d�7}t�|�d��}t|���}Wd�n1s#wYt��g�D]}||�|�}q.|S)Nsmercurial.helptextrBs.txt)r�
open_resourcer�read�	helphooks�get)r�package�fpr>�rewriter��subdirrvrr"�loaderMs�zloaddoc.<locals>.loaderr)rvr�r�rr�r"r7Js
r7s	bid-mergesBid Merge Algorithms	internals)r�sbundle2sBundle2sbundlessBundlesscborsCBORscensorsCensorschangegroupssChangegroupssConfig Registrarsdirstate-v2sdirstate-v2 file formatr3�	extensions
Extension APIs
mergestates
MergestatesrequirementssRepository Requirementssrevlogss
Revision Logsswireprotocols
Wire ProtocolswireprotocolrpcsWire Protocol RPCswireprotocolv2sWire Protocol Version 2cCs8ddg}tD]\}}}|�d|d|f�qd�|�S)z-Generate the index for the "internals" topic.s>To access a subtopic, use "hg help internals.{subtopic-name}"
�
�	 :%s: %s
rr6)�internalstabler*r=)r�linesr�r,r>rrr"�
internalshelp�s�
r�s
bundlespecsBundle File FormatsscolorsColorizing OutputsshgrcsConfiguration Filess
deprecatedsDeprecated FeaturessdatessDate FormatssflagssCommand-line flagsspatternssFile Name PatternssenvironmentsenvsEnvironment Variables)�	revisionssrevssrevsetssrevsets	multirevssmrevssSpecifying Revisionsr�srustsrustextsRust in MercurialsfilesetssfilesetsSpecifying File SetssdiffssDiff Formats)�merge-toolss
mergetoolss	mergetoolsMerge Toolsr�)s
templating�	templatesstemplatesstylesTemplate Usager�surlss	URL PathssUsing Additional FeaturesssubreposssubreposSubrepositoriesshgwebsConfiguring hgwebsglossarysGlossaryshgignoresignores!Syntax for Mercurial Ignore FilessphasessWorking with Phasess	evolutions'Safely rewriting history (EXPERIMENTAL)s	scriptings+Using Mercurial from scripts and automationsTechnical implementation topicsspagers
Pager SupportcCst�|g��|�dSr)r��
setdefaultr*)rvr�rrr"�addtopichookQsr�cs�g}t|�D]e}t�||�pd����r#|js$t�fdd�tD��r$qt���|r5t�	��
d���d�����}|dg}	|dd�D]}
|
�
��d�rOn|rY|	�|
���qD|	�d	|
�
��qD|�d
�|	��qd�|�}|�||�S)z�Extract docstring from the items key to function mapping, build a
    single documentation block and use it to overwrite the marker in doc.
    r6c3rrrr�rGrr"r#\r$zmakeitemsdoc.<locals>.<genexpr>�latin1rrNs>>>s  r�s

)r&rr��rstripr<r(r)r�textwrap�dedent�decode�encoder8�striprqr*r=�replace)rrvr>rH�itemsr��entriesr1r�r��lrr�r"�makeitemsdocUs& 

r�cs���fdd�}t||�dS)Ncst|||���d�S)N�r�)r�)rrvr>�r�rH�symbolsrr"�addrszaddtopicsymbols.<locals>.add)r�)rvrHr�r�r�rr�r"�addtopicsymbolsqsr�s.. bundlecompressionmarkers.. predicatesmarkers.. internaltoolsmarkers.. keywordsmarkers.. filtersmarkers.. functionsmarkers.. webcommandsmarkerTr�cs.d}tj��fdd�}t�dt�|�||�S)Ns.. tweakdefaultsmarkercs �fdd����D�}d�|�S)Ncsg|]	}��d�|�qS)r)�group�r�s��mrr"�
<listcomp>��z.inserttweakrc.<locals>.sub.<locals>.<listcomp>r�)r8r=)r�r���replr�r"�sub�s
zinserttweakrc.<locals>.subs( *)%s)�uimod�tweakrc�rer��escape)rrvr>rHr�rr�r"�
inserttweakrc�sr�cCs�i}i}i}t�|�D]Q\}}t�|�}	|	d}
|	||
<|d}|r'||
�s'qt�|�}t||
|||�r5qt|�}|s?td�}|��d�	�||
<t
|dd�pRtjj
}
|�|
g��|
�q|||fS)Nrr��helpcategory)rr'rr�r�rurrr8r�rr�command�
CATEGORY_NONEr�r*)rr�r1�select�cats�h�syns�c�e�fs�frsr>�catrrr"�_getcategorizedhelpcmds�s,

�
r�c
Cs�i}i}|D]6}|dd�\}}}t|�dkr |dr |d}nt}|d}	t|�||	<t||	�s<|�|g��|	|f�q||fS)Nrr)rE�TOPIC_CATEGORY_NONErTrwr�r*)
r�
topictable�	topiccatsr�rvr�r,r>�category�	topicnamerrr"�_getcategorizedhelptopics�s

�r�c	s�t����d$������fdd�	}d$����fdd�	�d$��fdd�	}	d$��fdd	�	}
d$�fd
d�	�g}��d�}|sJ�dur�t�fd
d��D��r�t���pPd�}
g}��d�rb|dtd�fg7}��d�rp|dtd�fg7}|s�dtd�fdtd�fdtd�fdtd�fg}|D]!\}}|
|r�|�d|�|�t�	t
|
|�d��|�d�q�|s�td�}td�}tj||d��n���r/�d k�r/g}�r�|�g7}��d�r�||
g7}��d�r�||g7}|s�|	||
�f}|D]}z|�|�}Wn6tj
�yYq�w��rt�
���|�r|}n�}|�r|}n�}td!�|}td"�|}tj||d��n�j�s9td#�dg}|��d$it������d�|�S)%z�
    Generate the help for 'name' as unformatted restructured text. If
    'name' is None, describe the commands available.
    Nc
sz
tj|�j�d�\}}Wn"tjy/}z|j��fdd�}�|�}|WYd}~Sd}~wwg}t|ddd�rd|�|djd�|dj	rbz
|�
�|dj��W|StjyaY|Sw|St
|�dkr�|d�d�r{|�d	|d�n|�d
|d|df�n	|�d|d��r��js�t
|�dkr�|�td
�d�|dd���|�d�tt�|d��}|s�td�}t�|dd�r�|dj}|dj�d�r�td�|djdd�||f}ntd�|dj||f}|�d�}�js���s|�|d�n|�
|�|�d�z't�|�}	tt�|	���pd}d|��v�r6td�||f}
|�d|
�Wn
t�yAYnw�j�sZ|d�rZ|�ttd�|d�j����j�rl|�ttd��j �j����j�s���s~|�td�|�|S�j�s�|�td��|S)N)�strictcst�|�d���S)Nr)rr�rq)r���prefixrr"�<lambda>��z(help_.<locals>.helpcmd.<locals>.<lambda>r�badaliasr�rCshgs%s
s	hg %s %s
shg %s
rs

aliases: %s
�, r�s
definition�!s(shell alias for: %s

%s

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

%s

defined by: %s
Tr6s7(use 'hg help -e %s' to show help for the %s extension)�
%s
soptions�global optionss$
(use 'hg %s -h' to show more help)
s;
(some details hidden, use --verbose to show complete help))!r�findcmdr�r	�AmbiguousCommandr�rr*r��
unknowncmdr9r��UnknownCommandrErq�quietrr=rrr�r�safehasattr�source�
definitionr8r
rDr��KeyErrorrer<�
globalopts)r1�subtopic�aliasesr��instr�r0r>r�r��msg)r��full�
helpextcmd�helplistrr�r�r"�helpcmd�s����
�� 

��



������	���zhelp_.<locals>.helpcmdcst��j�|�\}��g��s�js��td���S�js=�dkr*��td��n�dkr6��td��n��td������fdd�}�d	vrO|��n<t|���tt�}|rb��d
|�tD]&}|�	|g�}|r�t
|�dkr�tt|�}��d|���d
�||�qd|j	}|d�p�|d�p�|d�}	��s|	�rt
td�t���jd�}
|
r���d
���|
���td��t�t�\}}t|���tt�}|rڈ�d|�tD]4}|�	|g�}
|
�rt
|�dkr�tt|�}��d|���d
�|
D]\}}��d||f��qq܈j�r	�S�j�r:��dttd��j�j����dk�r8��td���S�dk�rH��td���S��rY��sY��td����S��rq��rq����v�rq��td����S��td���r~d��pd��S)Nsno commands defined
rmsbasic commands:

ris,debug commands (internal and unsupported):

slist of commands:
csPt|�}|D]}|}�jrd��|�}|�dd�}��d|�|f�qdS)Nr��:s\:r�)r&r<r=r�r*)�cmdsr��display_cmd)r�r0r�rrr"�
appendcmdsQs�z+help_.<locals>.helplist.<locals>.appendcmds)rmris/help categories missing from CATEGORY_ORDER: %srs
%s:
r��keywordr��	extensionr4r5s
additional help topics:
s5help 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)
r%r6)r�r�r�r*r�set�keys�CATEGORY_ORDER�	develwarnr�rEr�CATEGORY_NAMESr2r
r:r<r9r�r��TOPIC_CATEGORY_ORDER�TOPIC_CATEGORY_NAMESrer�)r��optsr�r�
missing_orderr��catfns�catname�ex�anyoptsr-r��	topicsyns�topics�tr!)r�r�r1r)r�r0r�r"r�=s�

�	
��
��

��
�)����
� 
��������������zhelp_.<locals>.helplistcs,d\}}�r,|tvr,t|D]\}}}�|vrnqt�fdd�t|D��s,t�|��|sGtD]}|dd�\}}}||vrAnq0t�|��t�|�g}|sX|�dtd��t	|�ri|dd	�|���
�D�7}�jsutd
�}t||�zt
�|�j�|�td�||f�W|Stjy�Y|Sw)N)NNc3s�|]	}�|dvVqdS)rNrr��r�rr"r#�s�z+help_.<locals>.helptopic.<locals>.<genexpr>rr�    %s
r�cSsg|]}d|�qS)rr)rr�rrr"r��r�z,help_.<locals>.helptopic.<locals>.<listcomp>�:(some details hidden, use --verbose to show complete help)s4
use 'hg help -c %s' to see help for the %s command
)�	subtopicsr(r	r�r�rrar*rrRr8r<rhrr�r�)r1r�r,r>r�rvr0rf)r�rrr"�	helptopic�sJ�
�
�
����zhelp_.<locals>.helptopicc
s$zt�|�}tt�|��ptd�}Wnty)d}t�|�}|s't�	|��Ynwd|vr4|d}}n|�
dd�\}}td�|�d�d|fg}|rY|�|�
d��|�d��jsetd	�}t||�|r�z|j}Wntywi}Ynwd
d�|D�}	|��|	j��|S|�td��|S)
Nsno help text availabler�r6rs%s extension - %s

rBr@TrcSsh|]	}|�d�d�qS)�|r)�	partition)rr�rrr"�	<setcomp>r�z)help_.<locals>.helpext.<locals>.<setcomp>�B(use 'hg help extensions' for information on enabling extensions)
)r
rDrrr�rr��
disabled_helpr	r�rFr�r9r8r*r<rhr��AttributeError�__contains__)
r1r�r�r>�head�tailr0rf�ct�modcmds)r�rrr"�helpext�sJ


��
�

����zhelp_.<locals>.helpextcs`t��|��dd��\}}}|��d}ttd�|||iddd�}|�d�|�td	��|S)
N�uisstrictrs,'%s' is provided by the following extension:�T)r.r/r�r)r
�disabledcmdrNr8r2rr*)r1r�rr�extr>r0)rrr"r�s"
�
�
��zhelp_.<locals>.helpextcmdskeywordc3s�|]}�|VqdSrr)r�o)r
rr"r#*r$zhelp_.<locals>.<genexpr>r6r�r3s
Extensionsscommandr}sCommandsr|sTopicsr~sExtension Commandss%s:

rr�s
no matchess"try 'hg help' for a list of topics)�hintrmsno such help topic: %sstry 'hg help --keyword %s'sMercurial Distributed SCM
r)r�byteskwargsr�r(r�rr*r9rrVr&r	�
InputErrorr�r��	strkwargsr=)rr�r1r�r�r��fullnamer
r�rr#r0rt�matches�	helpareasr�titler�r)�queriesr��
formatname�hintnamer)r�r�r�r�r1r
rr�r"�help_�s�
e+*
"





�
��





�
�
r4cKs.|durg}nt|�}d}}}	|dur4|�d�}
|
�d�}|
r*|tvr*|
�d�}|
r4t�d�|
��}	|�dd�}|��d}|dksH||krJ|}t	|||f||||d�|��}
t
j|
|d�\}}d	|vrl|�d
�n|�d�t
j|
|d�\}}|	r�t
�
||	�}|	r�|r�|s�t�td�|��t
�||�S)
z�get help for a given topic (as a dotted name) as rendered rst

    Either returns the rendered help text or raises an exception.
    NrBrr$s	textwidthrC)r-r�r�r�)�keepsverbosesomitteds
notomittedshelp section not found: %s)rTrF�poprrrxr=�	configint�	termwidthr4r�parser*�filtersectionsr	r+r�formatplain)rr�r-r5r�r�r
r1r�ra�	nameparts�	textwidthr8rG�blocks�prunedrrr"�
formattedhelpisJ


���
r@)rFr)F)FTNN)NFT)W�
__future__rr�r�r��i18nrrrr�rrr	r
rrr
rrrrrrrr�r�hgwebr�utilsrrr)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�rr�TOPIC_CATEGORY_IDS�TOPIC_CATEGORY_OUTPUT�TOPIC_CATEGORY_CONFIG�TOPIC_CATEGORY_CONCEPTS�TOPIC_CATEGORY_MISCr�rr	r2r?rKrerhrurwr�r7r&r�r�r�rr�r�r�r��bundlecompressiontopicsr��internalsdoc�keywords�filters�funcsr�r�r�r�r4r@rrrr"�<module>sBH�����



8
J
�
�
�
�
�
�
�
�
�
�
���A�����������
�����������������#�

��
�


�&�

https://t.me/RX1948 - 2025