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__/dispatch.cpython-310.pyc
o

�]LbŸ�@s�ddlmZmZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlm
Z
ddlmZddlmZddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z#m$Z$m%Z&m'Z'm(Z(ddl)m*Z*m+Z+m,Z,Gd	d
�d
e-�Z.dd�Z/d
d�Z0ej1r�dd�Z2dd�Z3ndd�Z2dd�Z3dd�Z4dd�Z5dd�Z6dd�Z7dd�Z8dd �Z9d!d"�Z:Gd#d$�d$e-�Z;Gd%d&�d&e-�Z<d'd(�Z=d)d*�Z>d+d,�Z?d-d.�Z@d/d0�ZAd1d2�ZBd3d4�ZCdAd5d6�ZDd7d8�ZEd9d:�ZFd;d<�ZGd=d>�ZHd?d@�ZIdS)B�)�absolute_import�print_functionN�)�_)�getattr)�tracing)�cmdutil�color�commands�demandimport�encoding�error�
extensions�	fancyopts�help�hg�hook�	localrepo�	profiling�pycompat�rcutil�	registrar�requirements�scmutil�ui�util�vfs)�procutil�
stringutil�urlutilc@s,eZdZ							ddd�Zdd�ZdS)�requestNc		CsD||_||_||_||_||_||_||_i|_|pg|_d|_	dS�N)
�argsr�repo�fin�fout�ferr�fmsg�earlyoptions�
prereposetups�canonical_command)	�selfr"rr#r$r%r&r'r)�r,�4/usr/lib/python3/dist-packages/mercurial/dispatch.py�__init__:s

zrequest.__init__cCs�d}|jj}z9|r7|��\}}}z	||i|��Wn|dur't��d}|j�d�|jjdd�Y|s	W|dur>|�dS|durF|�w)Nrserror in exit handlers:
T)�force)r�
_exithandlers�pop�sys�exc_info�
warnnoi18n�	traceback)r+�exc�handlers�funcr"�kwargsr,r,r-�_runexithandlersZs$��
�zrequest._runexithandlers)NNNNNNN)�__name__�
__module__�__qualname__r.r:r,r,r,r-r 9s
� r c
Cs�d}t�|d�r3|dusJ�|jdusJ�z|j��Wnty2}z
|}d}WYd}~nd}~wwt�|d�rq|dus?J�|jdusFJ�z|dur]|jtjkr]|j�dt	�
|j��|j��W|Stypd}Y|Sw|S)Nsfout���sferrs
abort: %s
)r�safehasattrr%�flush�IOErrorr&�errno�EPIPE�writer�
strtolocal�strerror)r�err�status�er,r,r-�_flushstdiols4�����rJcCs~z*t�t�d��ttjdd��}Wd�n1swYt|�}t�Wnty5d}Ynwt	�
|d@�dS)zrun the command in sys.argvzparse args into requestrNr>�)�	initstdior�logr r�sysargv�dispatch�
_silencestdio�KeyboardInterruptr2�exit)�reqrHr,r,r-�run�s�
�rTcCs�tjdur+dtjjd�}t�tjd�rtjj|d<tjtjjtjj	tjj
fi|��t_tjdurVdtjjd�}t�tjd�rDtjj|d<tjtjjtjj	tjj
fi|��t_tjdurptjtjjtjj	tjj
dtjjd�t_dSdS)N�
)�newline�line_buffering�
write_through)
r2�stdoutrWrr?rX�io�
TextIOWrapper�bufferr�errors�stderr�stdin)r9r,r,r-rL�sF
���
���
��rLc	Cs^tjtjfD]&}|dur
qz|��WqtyYnwz|��Wqty,YqwdSr!)r2rYr^r@rA�close��fpr,r,r-rP�s���rPcCs$tjtjtjfD]}t�|�qdSr!)r2r_rYr^r�	setbinaryrar,r,r-rL�s�cCsdSr!r,r,r,r,r-rP��cCsd�dd�|D��S)N� cs��|]}t�|�VqdSr!�r�
shellquote)�.0�ar,r,r-�	<genexpr>���z_formatargs.<locals>.<genexpr>)�join�r"r,r,r-�_formatargs�sroc
Cs\d}zt|�}Wntjy}z
|}d}WYd}~nd}~wwt|j|�}|r,|s,|}|S)zErun the command specified in req.args; returns an integer status codeNr>)�_rundispatchr
�
StdioErrorrJr)rSrGrHrI�retr,r,r-rO�s��rOc	Cs~t�d����|jr|j}n|jr|jj}ntj}zD|js#tj��|_|j�	t
|j|j��|jdr<|j�dddd�|j
rD|j
|j_
|jrL|j|j_|jrT|j|j_|jr\|j|j_Wn!tjy~}z|�|���WYd}~Wd�dSd}~wwt|j�}t��}d}z�zt|�p�d}Wnttjy�}z|j�td	�|�|jr�|j�td
�|j��d}~wt�y}zBzt|tj�r�td�}ntd�}|j�|�Wn"tjy�Ynty�}z
|jtj kr�WYd}~nd}~wwd}WYd}~nd}~wwWt��|}|j�!�|jj"�r1|d
|jj#d<|jj		dit$�%|jj#���|d@}|jjdd||||||j&d�z|�'�Wn	|�pRd}Y|j�!�nQt��|}|j�!�|jj"�r�|d
|jj#d<|jj		dit$�%|jj#���|d@}|jjdd||||||j&d�z|�'�Wn	|�p�d}Y|j�!�w|Wd�S1�s�wYdS)Nzdispatch._rundispatch�	traceback�ui�on�--tracebackr>rrs** ProgrammingError: %s
s** (%s)
skilled!
s
interrupted!
i�scommand_duration�	uiblocked�ui blocked ms
rKs
commandfinishs!%s exited %d after %0.2f seconds
)�return_code�durationr*)rwrx)(rrMr&rrr^�uimod�loadr(�update�_earlyparseoptsr"�	setconfigr$r%r'r
�AbortrD�formatror�timer�	_runcatch�ProgrammingErrorr�hintrQ�
isinstance�SignalInterruptrArBrCr@�logblockedtimes�
_blockedtimesr�	strkwargsr*r:)	rSr&�inst�
formattedargs�	starttimerr�msgrzryr,r,r-rps�





�
��
�
������

���
�

���
&�rpc	s�t�d��:dd�}�j�zdD]}tt|d�}|r t�||�qWn	ty+Ynw��fdd�}t�|�Wd�S1sBwYdS)Nzdispatch._runcatchcWstj�r!)r
r�rnr,r,r-�	catchterm\sz_runcatch.<locals>.catchterm)sSIGBREAKsSIGHUPsSIGTERMc
s�d}z!t��jdd�tji�}|d}t�|tjd�\}}|d}Wntjtj	t
tjfy3Ynw|dkrnd|vrnt
�j�dks`�jddks`�jd�d�s`�jd	dks`�jd
dkrnt�td�t��j�f��z�d}dtji}dtji}t�j�jd
�}�jr�|D]\}	}
}�jjj|	|
|dd�q���dd�}t}|r����r�d}n)�jdr�t���zt|�}Wn	t y�YnwWd�n1s�wY|j||<|j||<�jd�r��!td��|dk�r|||dk�r��!td�|�t���
||�Wd�n	1�swYz
t"��W��#�WS��#�w�jd�rCt$�%�||t&�'�d	��)NrFsserves--stdio�s-Rr�--��s/potentially unsafe serve --stdio invocation: %sspdb�config�--config)�sourcert�debuggersAentering debugger - type c to continue starting hg or h for help
s3%s debugger specified but its module was not found
)(rr"r
�
globaloptsr�findcmd�tabler
�UnknownCommand�AmbiguousCommand�
IndexError�getopt�GetoptError�len�
startswithr�rr�pprint�pdb�	set_trace�post_mortem�_parseconfigrr(r#r�config�plainr�deactivated�
__import__�ImportError�warn�	_dispatchr@r5�	print_excr2r3)
�realcmd�cmdargs�cmd�aliases�entry�debugger�
debugtrace�debugmortem�cfgs�sec�name�val�debugmod�rSrr,r-�
_runcatchfunchs��
�
�
���

�

���

��
���
�z _runcatch.<locals>._runcatchfunc)rrMrr�signal�
ValueError�
_callcatch)rSr�r��numr�r,r�r-r�Ys ���n$�r�c	Csd}zt�||�WStjy.}zd}|�td�|jd�|j�f�WYd}~n�d}~wtj	yx}z>d}|j
r]|�d�t�
|j�}|�td�|j
|f�tj||j
dd	d
�n|�td�|j�|�td��WYd}~n�d}~wtjy�}zad}td
�|j
}ztj|t|j
d	d�}|�|�|�|�Wn;tjtjfy�d}|jr�t�|j|j
�}|r�|�|�|�dt�|��d	}|s�|�|�|�td��YnwWYd}~nd}~wty��ty��t|�s��Y|�dd��r|SdS)z�like scmutil.callcatch but handles more high-level exceptions about
    config parsing and commands. besides, use handlecommandexception to handle
    uncaught exceptions.
    r>�
s&hg: command '%s' is ambiguous:
    %s
reN�helps
hg %s: %s
FT)�full�commandshg: %s
s0(use 'hg help -v' for a list of global options)
shg: unknown command '%s'
)�
unknowncmds(%s)
s'(use 'hg help' for a list of commands)
rtsdetailed-exit-code)r�	callcatchr
r�r�r�prefixrm�matches�CommandErrorr��pagerr�bytestr�messager
�help_r�r�
formattedhelprDr��all_commands�
getsimilar�similarity_hintrArQ�handlecommandexception�
configbool)	rr8�detailed_exit_coder��msgbytes�nocmdmsg�	formatted�	suggested�simr,r,r-r��sn���
�
�


����r�cszg}t�|d�st|d|�}|r9d�ttj|��}g���fdd�}t�d||�}�fdd�t	��D��t
�|�}|�S)	Ns	_origfuncr"recs>t|�d��d}��|�|t��kr�|St�td���)Nrs#too few arguments for command alias)�int�group�appendr�r
�
InputErrorr)�mr���	givenargs�numsr,r-�replacers

zaliasargs.<locals>.replacer�
\$(\d+|\$)csg|]
\}}|�vr|�qSr,r,)ri�i�x)r�r,r-�
<listcomp>'�zaliasargs.<locals>.<listcomp>)rr?rrm�maprrh�re�sub�	enumerater�
shlexsplit)�fnr�r"r�r�r,r�r-�	aliasargss
r�cs|dd�t|�D��|�d<d�d<d�|��d<d�dd	�|D���d
<d������dd�}t�|�}|��fd
d�|�S)zXinterpolate args into cmd for shell aliases

    This also handles $0, $@ and "$@".
    cSsi|]\}}d|d|�qS)s$%drr,)rir��argr,r,r-�
<dictcomp>3sz$aliasinterpolate.<locals>.<dictcomp>s$0�$s$$res$@csrfr!rg)rir�r,r,r-rk;rlz#aliasinterpolate.<locals>.<genexpr>s"$@"�|s\$cs�|��Sr!)r�)r���
replacemapr,r-�<lambda>?sz"aliasinterpolate.<locals>.<lambda>)r�rm�keys�replacer��compiler�)r�r"r��regex�rr,r�r-�aliasinterpolate,s
r�c@s:eZdZdd�Zddd�Zedd��Zdd	�Zd
d�ZdS)
�cmdaliasc
sf|�_�_d�_|�_d�_g�_g�_d�_d�_d�_	|�_
z!t��j|�\}}t
�|�D]
\}}	|	|ur=|�_nq0d�_Wn
tjyOd�_Ynw�js]td��j�_dS�j�d�r��jdd��d�_��fdd�}
|
�_d�_��||��j�dSzt
��j�}Wn ty�}ztd	��jt�|�f�_WYd}~dSd}~wwt|�\}
}|
r�td
��jd�t
j|
�d�f�_dS|�d��_}|�_z/t�||d�d}t|�d
kr�|\�_�_}n|\�_�_d}d�_��|||�j|�WdStj�ytd��j|f�_d�_	YdStj �y2td��j|f�_YdSw)N�FTsno definition for alias '%s'�!rcsXdd��jf��i}���fdd�}t�d|��}t�j�|�}�j||d�jd�S)NsHG_ARGSrecs\|��ddkr|��St|��d�t��kr|��S��dt|��d��jf�dS)Nrr�sLNo argument found for substitution of %i variable in alias '%s' definition.
r�)�groupsr�r�r��debugr�)r�)r"r+rr,r-�	_checkvards��z0cmdalias.__init__.<locals>.fn.<locals>._checkvarr�salias_%s)�environ�
blockedtag)rmr�r�r�r��system)rr"�envrr��r+�shdef)r"rr-r�as
�zcmdalias.__init__.<locals>.fns&error in definition for alias '%s': %ssLerror in definition for alias '%s': %s may only be given on the command line�/rr�s+alias '%s' resolves to unknown command '%s's-alias '%s' resolves to ambiguous command '%s')!r�r��cmdname�
definitionr�r��optsr�badaliasr�r�rr�r�	iteritems�shadowsr
r�rr��shell�alias�
_populatehelpr�r�r�forcebytestr�_earlysplitoptsrm�ziplistr1r�r�)r+rr�r�cmdtabler�r�r�rrIr�r"r��	earlyoptsr��
tableentry�cmdhelpr,rr-r.Cs��

�������������zcmdalias.__init__Nc
Cs�i}dD]'}|�dd||fd�}|durqt�|�s'td�||f|_dS|||<q|�d|p2d�|_|jrL|j�d|�rL|jdt|�d�|_d	|v|_	|�d	t
�|��}	|	durct
�|	�}	|	|_
|�d
tjj�|_dS)N)�docr��category�aliass%s:%ss/non-ASCII character in alias definition '%s:%s'r�r�shg r�rr)r�r�
isasciistrrr
�getrr�r��owndocr�getdoc�sysstr�__doc__rr��
CATEGORY_NONE�helpcategory)
r+rr�r�r��defaulthelp�cfg�k�v�docr,r,r-r�s0
��



�zcmdalias._populatehelpcCst�tj|j�}t|j|�Sr!)r�maplistr�
expandpathr�r�r�)r+r"r,r,r-r"�sz
cmdalias.argscCsFdt�ddd�}||vrt|��|jst�|d�r||St|j|�S)NTF)�norepo�intents�optionalrepo�	inferrepo�shell)�set�AttributeErrorr
rr?rr�)r+r��	adefaultsr,r,r-�__getattr__�s�zcmdalias.__getattr__cOs|jr2d}|jr*zt�||j�dd�\}}td�||f}Wn
tjy)Ynwtj|j|d��|j	r@|�
d|j|jf�|�dd|j|j
�t�|d�r\|j|g|�Ri|��Szt�|j�|g|�Ri|��WStjy�d�|jg|j�}|�
d|j|f��w)	Nr�s"'%s' is provided by '%s' extension)r�s alias '%s' shadows command '%s'
scommandaliassalias '%s' expands to '%s'
r0re)r
r�r�disabledcmdr
rr
r��ConfigErrorrrr�rMrrr?r��checksignature�SignatureErrorrmr")r+rr"rr�r��extr,r,r-�__call__�s:��� �zcmdalias.__call__r!)	r;r<r=r.r�propertyr"r4r:r,r,r,r-r�Bs
f

r�c@s>eZdZdZdd�Zejdd��Zdd�Zdd	�Z	d
d�Z
dS)
�lazyaliasentryz<like a typical command entry (func, opts, help), but is lazycCs,||_||_||_|��|_||_d|_dS)NT)rr�r�copyrr�r)r+rr�rrr�r,r,r-r.�s

zlazyaliasentry.__init__cCst|j|j|j|j|j�Sr!)r�rr�rrr��r+r,r,r-�	_aliasdefs�zlazyaliasentry._aliasdefcCs2|j}|dkr	|S|dkr|jS|dkr|jSt�)Nrrr�)r?rrr�)r+�n�aliasdefr,r,r-�__getitem__
szlazyaliasentry.__getitem__ccs�td�D]}||VqdS�Nr�)�range)r+r�r,r,r-�__iter__s��zlazyaliasentry.__iter__cCsdSrCr,r>r,r,r-�__len__rdzlazyaliasentry.__len__N)r;r<r=r"r.r�
propertycacher?rBrErFr,r,r,r-r<�s
r<c
Csn|jddd�D]-\}}z||j|krWqWnttfy!Ynw|�d|�}t|||||�}|||<qdS)NrT)�	ignoresub)�configitemsr�KeyErrorr2�configsourcer<)rrrrr�r�r,r,r-�
addaliasess��
�rLc
Cs�i}i}z
t�|tj|�}Wntjy$}z	t�dt�|���d}~ww|rf|d|dd�}}t	�
|tj|�dd��\}}|d}t
|d|�}|�d|�}|r_t�tjt�|��|}t|d�}	nd}g}	tjD]}
|	�|
d|
d||
d|
df�qmztj||	|dd�}Wntjy�}z	t�|t�|���d}~wwtjD]}
|
d}||||<||=q�||r�|dp�d|||fS)	Nrrrt�strictsdefaultsr�T)�gnu)rr
r�r�r�r
r�rrrr�r�r�r�r�rr*rr+r��listr�)rr"�options�
cmdoptionsr�r�r�r��defaults�c�or@r,r,r-�_parse.sJ�����
(��
rUc
Cs�g}|D]D}z-dd�|�dd�D�\}}|�dd�\}}|r |s"t�|�|||d�|�|||f�WqttfyHt�td�t�	|���w|S)z0parse the --config options from the command linecSsg|]}|���qSr,)�strip)ri�cfgelemr,r,r-r�a�z _parseconfig.<locals>.<listcomp>�=r�.r�s?malformed --config option: %r (use --config section.name=value))
�splitr�rr�r�r
r�rrr�)rr��configsr&r��value�sectionr,r,r-r�[s&����	r�cCs.i}tj|tj||�d�dddgid�|S)NsstrictflagsT�
repository�repo)rN�early�
optaliases)rr
r�r�)rr"rPr,r,r-r~ss
�r~cCs d}gd�}tj|||ddd�S)zCSplit args into a list of possible early options and remainder argssR:)scwd=srepository=srepo=sconfig=T)rN�keepsep)r�earlygetopt)r"�shortoptions�longoptionsr,r,r-r�s

�rc	
Cs�tj||d|dd�|�||d�zt||||�}	tj||d|dd�|�|	||d�W|	StyFtj||d|dd�|�||d��w)	Nspre-%sTre)r"�patsrspost-%sF)r"�resultrgrsfail-%s)rrm�_runcommand�	Exception)
�luir#r��fullargsrrP�d�cmdpatsrQrrr,r,r-�
runcommand�sD�	���	�rocCs�zXttj�|dd�d��B}t|�����}tj|vrtj	|vs)	Wd�WdSt
�
tj�|d��}t�||�}|j
}|�|�d�|�Wd�WdS1sQwYWdStybYdSw)a!if the current repository is shared one, this tries to read
    .hg/hgrc of shared source if we are in share-safe mode

    Config read is loaded into the ui object passed

    This should be called before reading .hg/hgrc or the main repo
    as that overrides config set in shared source�.hgsrequires�rbN�hgrc)�open�os�pathrmr1�read�
splitlines�requirementsmod�SHARESAFE_REQUIREMENT�SHARED_REQUIREMENTrr�
_getsharedvfs�base�
readconfigrA)rrurbr�hgvfs�	sharedvfs�rootr,r,r-�_readsharedsourceconfig�s

�&��r�c
Cs|dur$zt��}Wnty#}z
t�td�t�|j���d}~wwt�	|�p*d}|s0|}n%|�
�}t��rUt
||�|�tj�|dd�|�|�tj�|dd�|�|r�t�||�d}|�
�}t��r�t
||�|�tj�|dd�|�|�tj�|dd�|�||fS)zpReturn (path, local ui object) for the given target path.

    Takes paths in [cwd]/.hg/hgrc into account."
    Ns+error getting current working directory: %sr�rprrshgrc-not-sharedr)r�getcwd�OSErrorr
r�rrErFr�findrepor=r�
use_repo_hgrcr�r}rtrurmr�get_clone_path)r�rpath�wdrIrurkr,r,r-�	_getlocal�s6
����

r�c	s�i�z
t��tj���WntjyYdSw�sdStj}�d�z��dd�}t��||�\}}Wnt	j
t	jfyBYdSw|d�|d��rlt�
�d�rnt��\}����fdd��������fdd�SdSdS)	z=Return the function to run the shell alias, if it is requiredNrrtrMr0cs��g�dd��R�S�Nrr,r,)r"r�rr,r-r��z"_checkshellalias.<locals>.<lambda>c
s t�d��dd����gi�	Sr�)ror,)r"r�rmrkrPrr,r-r�s�)rr
r�r�r�r�r�rr�r
r�r�rr?r)rkrr"r�strictr�r��
_earlyoptsr,)r"r�rmr�rkrPrr-�_checkshellalias�s.���r�cs�|j�|j�|jd}|rt�|�|jd}t�|�\}}�|h}|jr,|�|jj�|jds;|jds;|jdrYdD]}t�	t
|j|��}|D]}|�d||d|�qKq=|jd	rl|D]
}|�d
ddd
�q`n|jd	dur�|�d
d�r�|�d
ddd�|�d
d�}	t
j||	d����}
t�|�|j�_t|tj�t|���}|r�|D]}t�|�q�|�Wd�S|�dd�}|r�|t_�}
t|��\}��}}||_|d|jdkr�t�td���|d|jdkr�t�td���|d|jdk�rt�td���|d|jdk�rt�td���|d�r!|dt_|d�r+|dt_|d�rDdd��������fdd�}�� |�|d	�rM|
�!�|d�s\|d�s\|d�r�dD](}|||j|k�rl�q^t�	t
||��}|D]
}|�d||d|��qw�q^|d �r�|D]}|�dd d!d"��q�|d#�r�|D]}|�dd$d%d&��q�|�"d'd��r�|D]}d(|_#�q�|d)}|D]}|�r�|�dd)|d*�t$�%|��q�t&�'|d+��r��(d,|�n|d+d-k�r�|D]}|�)��q�|D]}t�|��q�|d.�rt�*��Wd�S|d/�r*tj+�||dud0�Wd�S|�s:t�+�d1�Wd�Sd}�dd�}�du�sIJ��j,�s|�sV|�sV|j}|�rn�j-|j_-�j.|j_.�j/|j_/�j0|j_0n�z%t1j2�||j3�j4d2�}|�5��s�t�td3�|��|j�d4d5|j6d6�Wnftj7�y��tj8�y�|�r���j9�s��j:�r��r�|�s�t�;t<j=��}|d7}|�r�|�>|�t?|�k�r�d8|g|
|_||jd<t@|�YWd�S|�s�t�td9�t�A����Ynw|�r	|j�|d:�r	|�B�}��Cd7|�n
|�r��Dtd;��tE|
�}��Fd<d=|�t�G|������fd>d?�}z!tH||||
�||||�	W|�rM||jk�rM|�I�Wd�S|�rc||jk�rd|�I�www1�siwYdS)@Nscwdr_�verbose�debug�quiet)r�r�r�rtr�sprofiles	profilingsenabledstrues	--profileFsfalses--no-profile)�enabledsfallbackencodingr�s&option --config may not be abbreviateds#option --cwd may not be abbreviatedsroption -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repor�s(option --debugger may not be abbreviatedsencodingsencodingmodestimecSs:t��}|ddkr|d|d|d|dt��f}|S)Nr�grrr�r�)rt�timesrr���tr,r,r-�	get_timesos"z_dispatch.<locals>.get_timesc
sb��}��td�|d�d|d�d|d�d|d�d|d�df�dS)Ns4time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f)
r�rr�rr�)r�rr�)r��srr,r-�
print_timexs���z_dispatch.<locals>.print_timersrurvsnoninteractivesinteractivesoffs-ysinsecureTscolors--colorspagersinternal-always-sautosversionr�)r�s	shortlist)ru�
presetupfuncsr-srepository '%s' is not localsbundlesmainreporootr`rs--repositorys+no repository found in '%s' (.hg not found)shiddenswarning: --repository ignored
scommands%s
cst����g��Ri���Sr!)rr7r,)r"r8�	strcmdoptrr,r-r��r�z_dispatch.<locals>.<lambda>)Jr"rr(rt�chdirr�r#�addrr��boolrr�r�profiler�loadall�	__class__rLr
r�r��
populateuir�r�fallbackencodingrUr*r
r�r�encodingmode�atexit�startr�insecureconnectionsr	�setupr�	parseboolr��disablepager�version_r�r,r$r%r&r'r�
repositoryr)r-�localr��RequirementError�	RepoErrorr.r/r*rr��countr�r�r��
unfiltered�insertr�rorMr�ror`)rS�cwdr�rurk�uis�optr��ui_r��profiler�shellaliasfn�fallbackrlr�rPrQr��coloroptr#rn�repos�guessr�rmr,)r"r8r�r�r�rr-r�
st


����
�
����






�



�
|�~
�


�

�
�

��-�����

���G
���r�cCs^zt�d|��|�Wd�WS1swYWdStjy.t�|td���w)z8Run a command function, possibly with profiling enabled.zRunning %s commandNsinvalid arguments)rrMr
r8r�r)rrPr��cmdfuncr,r,r-ris(��ric	s�tjdd��d�ddf}|�dd�durtt��D][\}}t�t|dd��}t�|�}t|dtd	��}|�	�s>|d
||f}n6t�
|�rDqdd�|��D�}�|vrRq�fd
d�|D�}t|p_|�}	|ddusm|	|dkrs||	||f}q|ddur�|\}}}}t
|ttf�s�d�dd�|D��}|p�td�}
td�||
||t�|�f}n|�dd�}|dur�td�}td�|d}t�tj��dd�}
dd��|td�|
td�t��td�d��fdd�tt���D��7}|S)z:Produce a warning message for the current active exceptionr�)r@Nr�rtssupportcontact�
testedwith�buglinksthe extension author.sunknowncSsg|]}t�|d��qS)r�)r�versiontuple�rir�r,r,r-r�(r�z%_exceptionwarning.<locals>.<listcomp>csg|]}|�kr|�qSr,r,r�)�ctr,r-r�,r�rrrZcSsg|]}t�|��qSr,)rr)rirSr,r,r-r�4ss
(version N/A)s�** Unknown exception encountered with possibly-broken third-party extension "%s" %s
** which supports versions %s of Mercurial.
** Please disable "%s" and try your action again.
** If that fixes the bug please report it to %s
s)https://mercurial-scm.org/wiki/BugTrackers?** unknown exception encountered, please report by visiting
** �
cSs*|d}t�|d�}|r|d|7}|S)Nrrre)r�
moduleversion)r�r9�verr,r,r-�ext_with_verLs
z'_exceptionwarning.<locals>.ext_with_vers
** Python %s
s*** Mercurial Distributed SCM (version %s)
s** Extensions loaded: %s
s, csg|]}�|��qSr,r,)rir�)r�r,r-r�YrX)rr�r�rrrrr�rrV�ismoduleinternalr[�maxr��bytes�strrmr�sysbytesr2�versionr��sorted)r�worstr��modr�r��report�tested�lower�nearest�extver�warning�
bugtracker�
sysversionr,)r�r�r-�_exceptionwarning
sv

�

��������
�����
r�c	Cs0t|�}|�dd|t�t����|�|�dS)z�Produce a warning message for broken commands

    Called when handling an exception; the exception is reraised if
    this function returns False, ignored otherwise.
    scommandexceptions%s
%s
F)r�rMrr�r5�
format_excr�)rr�r,r,r-r�`s�
r�r!)J�
__future__rrrBr�rZrtr�r�r�r2r5�i18nrrr�hgdemandimportr�rr	r
rrr
rrrrrrrrrrrxrrr{rr�utilsrrr�objectr rJrT�ispy3rLrProrOrpr�r�r�r�r�r<rLrUr�r~rror�r�r�r�rir�r�r,r,r,r-�<module>s`\3
;T<8$-

'
#!u	V

https://t.me/RX1948 - 2025