403Webshell
Server IP : 74.208.236.16  /  Your IP : 216.73.217.15
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u102440577 ( 7172810)
PHP Version : 8.4.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/mercurial/__pycache__/ui.cpython-313.pyc
�

6�h�M�	��%SSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKrSSK
r
SSKrSSKJrJrJrJrJrJrJrJrJrJrJrJr SSKJr SSKJr SSKJ r J!r!J"r"J#r#J$r$J%r%J&r&J'r'J(r(J)r)J*r*J+r+ SSK,J-r- SS	K.J/r/J0r0J1r1J2r2J3r3 \\\4\44\54r6\\4\7\S
4r8\\4\44r9\"SSS
9r:\+Rvr;SRyS\="\)R|\?"S5555r@S\AS'SrBS\AS'SSSSS.rCS\AS'SrDSrE"SS5rFS*S jrG\5"5rH/rIS!\AS"'"S#S5rJSqKS$\AS%'S+S&jrLS,S'jrMS-S(jrNS.S)jrOg)/�)�annotationsN)�Any�Callable�Dict�List�NoReturn�Optional�Tuple�Type�TypeVar�Union�cast�overload�)�_)�hex)�color�config�configitems�encoding�error�
extensions�	formatter�loggingutil�progress�pycompat�scmutil�util)�rcutil)�dateutil�procutil�resourceutil�
stringutil�urlutil�
_PromptChoice�_Tui�ui)�bound�c#�R# �UHoR5(aMUv� M g7f�N)�isalnum)�.0�cs  �./usr/lib/python3/dist-packages/mercurial/ui.py�	<genexpr>r0Ls����0�!�	�	��A�A�0�s�'�	'��bytes�
_keepalnums�
[ui]
# The rollback command is dangerous. As a rule, don't use it.
rollback = False
# Make `hg status` report copy information
statuscopies = yes
# Prefer curses UIs when available. Revert to plain-text with `text`.
interface = curses
# Make compatible commands emit cwd-relative paths by default.
relative-paths = yes

[commands]
# Grep working directory by default.
grep.all-files = True
# Refuse to perform an `hg update` that would cause a file content merge
update.check = noconflict
# Show conflicts information in `hg status`
status.verbose = True
# Make `hg resolve` with no action (like `-m`) fail instead of re-merging.
resolve.explicit-re-merge = True

[diff]
git = 1
showfunc = 1
word-diff = 1
�tweakrcs�# example user config (see 'hg help config' for more info)
[ui]
# name and email, e.g.
# username = Jane Doe <jdoe@example.com>
username =

# We recommend enabling tweakdefaults to get slight improvements to
# the UI over time. Make sure to set HGPLAIN in the environment when
# writing scripts!
# tweakdefaults = True

# uncomment to disable color in command output
# (see 'hg help color' for details)
# color = never

# uncomment to disable command output pagination
# (see 'hg help pager' for details)
# paginate = never

[extensions]
# uncomment the lines below to enable some popular extensions
# (see 'hg help extensions' for more info)
#
# histedit =
# rebase =
# uncommit =
s�# example repository config (see 'hg help config' for more info)
[paths]
default = %s

# path aliases to other clones of this repo in URLs or filesystem paths
# (see 'hg help config.paths' for more info)
#
# default:pushurl = ssh://jdoe@example.net/hg/jdoes-fork
# my-fork         = ssh://jdoe@example.net/hg/jdoes-fork
# my-clone        = /home/jdoe/jdoes-clone

[ui]
# name and email (local to this repository, optional), e.g.
# username = Jane Doe <jdoe@example.com>
s�# example repository config (see 'hg help config' for more info)
[paths]
# path aliases to other clones of this repo in URLs or filesystem paths
# (see 'hg help config.paths' for more info)
#
# default         = http://example.com/hg/example-repo
# default:pushurl = ssh://jdoe@example.net/hg/jdoes-fork
# my-fork         = ssh://jdoe@example.net/hg/jdoes-fork
# my-clone        = /home/jdoe/jdoes-clone

[ui]
# name and email (local to this repository, optional), e.g.
# username = Jane Doe <jdoe@example.com>
s�# example system-wide hg config (see 'hg help config' for more info)

[ui]
# uncomment to disable color in command output
# (see 'hg help color' for details)
# color = never

# uncomment to disable command output pagination
# (see 'hg help pager' for details)
# paginate = never

[extensions]
# uncomment the lines below to enable some popular extensions
# (see 'hg help extensions' for more info)
#
# blackbox =
# churn =
)susersclonedslocalsglobalzDict[bytes, bytes]�samplehgrcsc�L�[R"[RU5$r+)r�rapply�strurl)�
maybebytess r/�_maybestrurlr:�s���?�?�8�?�?�J�7�7r)c�L�[R"[RU5$r+)rr7�bytesurl)�maybestrs r/�_maybebytesurlr>�s���?�?�8�,�,�h�7�7r)c�4�\rSrSrSrS	SjrSrSrSrSr	g)
�httppasswordmgrdbproxy��z)Delays loading urllib2 until it's needed.c��SUlgr+��_mgr��selfs r/�__init__�httppasswordmgrdbproxy.__init__�s	����	r)c�f�URc[R5UlUR$r+)rD�urlreq�httppasswordmgrwithdefaultrealmrEs r/�_get_mgr�httppasswordmgrdbproxy._get_mgr�s&���9�9���>�>�@�D�I��y�y�r)c��UR5R[U5[U5[U5[U55$r+)rL�add_passwordr:)rF�realm�uris�user�passwds     r/rO�#httppasswordmgrdbproxy.add_password�s;���}�}��+�+������������ �	
�	
r)c�|�UR5n[UR[U5[U555$r+)rLr>�find_user_passwordr:)rFrP�uri�mgrs    r/rV�)httppasswordmgrdbproxy.find_user_password�s4���m�m�o����"�"�<��#6��S�8I�J�
�	
r)rCN��return�None)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__rGrLrOrV�__static_attributes__�r)r/r@r@�s��3���

�
r)r@c�"�[Rer+)r�SignalInterrupt)�argss r/�
_catchtermrg�s��
�
�
�r)r�_reqexithandlersc�v�\rSrSrSsStSjjrSuSjr\SvSj5rSuSjrSwSjr	SuSjr
\RSxS	j5r
\RS
5rSySjrSzSjrS{SuSjjrS{SuSjjrS{SuSjjrS|S}SjjrSuSjrS~SuSjjrSrSuSjrSSuSjjrSrS�Sjr\S
4Sjr\S
4SjrSr\S
4Sjr \S
4Sjr!\S
4Sjr"\SS
4Sjr#\S
4S jr$\S
4S!jr%\S
4S"jr&\S
4S#jr'S$r(S�S%jr)S�S&jr*S�S'jr+S�S(jr,S)r-S*r.SsS�S+jjr/S�S,jr0S�S-jr1\2RfS.5r4\5S/5r6\2RfS05r7\6RpS15r6\5S25r9\9RpS35r9\5S45r:\:RpS55r:\5S65r;\;RpS75r;\RS�S�S8jj5r<S�S�S9jjr=S�S:jr>S�S;jr?S�S<jr@S�S=jrAS�S>jrBS�S?jrCS�S@jrDS�SAjrES�SBjrFS�SCjrGSuSDjrHS�SEjrISFrJSGrK\RSH5rLSuSIjrMS�SJjrNSsS�SKjjrO\5SL5rPSMrQS�SNjrRSOrSS�SPjrTSQrUS�S�SRjjrV\WR�(a\YS�SSj5rZ\YS�STj5rZS�SUjrZ\WR�(a$\YS�SVj5r[\YS�SWj5r[S�SXjr[\\S�SYj5r]S�S�SZjjr^S~S�S[jjr_S�S\jr`S�S]jraS�S^jrbS�S_jrcS�S`jrd\`re\crf\arg\BrhS�S�SajjriS�S�SbjjrjS�ScjrkS�S�SdjjrlSerm\2RfS�Sfj5rnSuSgjroS|S�ShjjrpSirqSuSjjrrSuSkjrsS�SljrtS�S�SmjjruS�S�SnjjrvSorw\RSS�Spjj5rxS�SqjrySrrzg)�r'��Nc���/Ul/UlSUlS=Ul=Ul=UlUlSUl[RUl
[R"5Ul[R"5Ul
[R"5Ul[5Ul[5UlSUl0UlSUlSUlSUlSUl0Ul0UlSUlSUlU(Ga*UR8UlUR:UlUR<UlUR>UlUR@Ul URBUl!URDUl"URFRI5Ul#URJUl%URLUl&URNUl'URRI5Ul
URRI5UlURRI5UlUR RI5UlUR"RI5UlURPUl(UR$UlUR&UlUR(UlUR,UlUR0RI5UlUR2RI5UlURS5 URTUl*URVUl+O�[XRZUl[XR\Ul[XR^UlSUlUR`Ul URbUl!SUl"0Ul#SUl%SUl&SUl'[dRPUl([g5Ul*[hRj"[l5Ul+URoSS5nSU;aURPUl8g0Ul8UH0nX0RP;dMURPUURpU'M2 g)z�Create a fresh new ui object if no src given

Use uimod.ui.load() to create a ui which knows global and user configs.
In most cases, you should use ui.copy() to create a copy of an existing
ui object.
NFT�experimentalsexportableenviron�*)9�_buffers�
_bufferstates�_bufferapplylabels�quiet�verbose�	debugflag�
tracebackflag�_reportuntrustedr�	coreitems�_knownconfigr�_ocfg�_tcfg�_ucfg�set�_trustusers�_trustgroups�	callhooks�
_path_to_root�insecureconnections�logblockedtimes�
_colormode�_readlineprompt�_terminfoparams�_styles�_uninterruptible�
showtimestamp�_fout�_ferr�_fin�_fmsg�_fmsgout�_fmsgerr�_finoutredirected�_loggers�copy�pageractive�
_disablepager�_tweaked�environ�	fixconfig�httppasswordmgrdb�
_blockedtimesr!�stdout�stderr�stdin�fout�ferrrr@�collections�defaultdict�int�
configlist�_exportableenviron)rF�src�allowed�ks    r/rG�ui.__init__�s?����
� ���#'���JO�O��
�O�T�\�O�D�N�T�5G� $���'�1�1����]�]�_��
��]�]�_��
��]�]�_��
��5����E���������#(�� �$������$���!������ %���"�������D�J����D�J����D�I����D�J��L�L�D�M��L�L�D�M�%(�%:�%:�D�"��L�L�-�-�/�D�M�"���D��!$�!2�!2�D���L�L�D�M������)�D�J������)�D�J������)�D�J�"���3�3�5�D�� #� 0� 0� 5� 5� 7�D���;�;�D�L� �]�]�D�N�!$�!2�!2�D��'*�'>�'>�D�$�!�n�n�D�O�#&�#6�#6�#;�#;�#=�D� ��;�;�+�+�-�D�L��N�N��%(�%:�%:�D�"�!$�!2�!2�D��!���D�J�!���D�J� ���D�I��D�J� �I�I�D�M� �I�I�D�M�%*�D�"��D�M�$�D��!&�D��!�D�M�$�+�+�D�L�%;�%=�D�"�!,�!8�!8��!=�D���/�/�/�3G�H���7�?�&*�l�l�D�#�&(�D�#������$�15���a��D�+�+�A�.�r)c��URR5 URR5 URR5 gr+)rx�
new_sourceryrzrEs r/�_new_source�ui._new_sourceJs2���
�
�����
�
�����
�
���r)c�>�U"5n[R"5H�up#nUS:XaURUSS9 MUS:XaURUSS9 M6US:Xa�UR	5 [5nUHOupgp�URRXgX�5 URRXgX�5 URU5 MQ UHnURUS9 M M�[R"SU-5e UR5 UR	5 U$)z,Create a ui and load global and user configsspathT)�trustsresourcesitems��sectionsunknown rctype: %s)
r�rccomponents�
readconfig�read_resource_configr�r{ryrz�addr�r�ProgrammingError�_maybetweakdefaults)
�cls�u�_lvl�t�f�sectionsr��name�value�sources
          r/�load�ui.loadOs���
�E�� �-�-�/�J�D�Q��G�|����Q�d��+��k�!��&�&�q��&�5��h���
�
���5��45�0�G�5��G�G�K�K��u�=��G�G�K�K��u�=��L�L��)�56� (�G��K�K��K�0� (��,�,�-B�Q�-F�G�G�#0�$	
����	�
�
���r)c��URSS5(dgUR(dURS5(agSUl[R"5nUR	S[
5 UHHnUR
U5H0up4URX#5(aMURX#US5 M2 MJ g)N�uis
tweakdefaultsTs<tweakdefaults>)	�
configboolr��plainr�parser4�items�	hasconfig�	setconfig)rF�tmpcfgr�r�r�s     r/r��ui._maybetweakdefaultsjs������u�&6�7�7���=�=�D�J�J�'7�8�8����
���������'��1��G�%�|�|�G�4����~�~�g�4�4��N�N�7�%�9K�L� 5�r)c�$�URU5$r+)�	__class__rEs r/r��ui.copy~s���~�~�d�#�#r)c�x�UR(aURR5 [5Ulg)z;Clear internal state that shouldn't persist across commandsN)�_progbar�
resetstater@r�rEs r/r��
ui.resetstate�s$���=�=��M�M�$�$�&�!7�!9��r)c#�# �[R"5nSv� URUS-==[R"5U-
S--
ss'g!URUS-==[R"5U-
S--
ss'f=f7f)Ns_blocked��)r�timerr�)rF�key�	starttimes   r/�timeblockedsection�ui.timeblockedsection�s|����J�J�L�	�	�����s�[�0�1��
�
��y�(��6�
�1��D���s�[�0�1��
�
��y�(��6�
�1�s�B	�A�4B	�5B�B	c#�t^# �TRSS5nU(a'TRSS5(aTR5nTR(dU(dSv� gU4Sjn[R"U5 STlSv� STlSSS5 g!STlf=f!,(df   g=f7f)aMark an operation as unsafe.

Most operations on a repository are safe to interrupt, but a
few are risky (for example repair.strip). This context manager
lets you advise Mercurial that something risky is happening so
that control-C etc can be blocked if desired.
rlsnointerruptsnointerrupt-interactiveonlyNc�n>�TR[S55 TR[S55 g)Nsshutting down cleanly
s4press ^C again to terminate immediately (dangerous)
T)�warnrrEs�r/r�� ui.uninterruptible.<locals>.warn�s/����I�I�a�2�3�4��I�I��J�K�
�r)TF)r��interactiver�r!�uninterruptible)rF�enabledr�s`  r/r��ui.uninterruptible�s������/�/�/�>�B���t����;�
�
��&�&�(�G�� � ��
��	��
%�
%�d�
+�
.�(,��%��(-��%�,�
+��
).��%��,�
+�s6�A:B8�=B'�?B�
B'�	B8�	B$�$B'�'
B5�1B8c�0�[R"XX5$r+)r)rF�topic�optss   r/r�ui.formatter�s���"�"�4�u�;�;r)c���[R"U5n[R"U5(agURURpTSU;dSU;ag[R
"UR5n[R"UR5nXd;dXu;dU[R
"5:XagUR(aUR[S5X&U4-5 g)NTrms6not trusting file %s from untrusted user %s, group %s
F)r�fstat�isownerr|r}�username�st_uid�	groupname�st_gidrur�r)rF�fpr��st�tusers�tgroupsrR�groups        r/�_trusted�ui._trusted�s���
�Z�Z��^���<�<������*�*�D�,=�,=���6�>�T�W�_���}�}�R�Y�Y�'�����r�y�y�)���>�U�-������1H��� � ��I�I��+���E�"�	#�
�r)Fc��[R"USUS5nURSU-XbX4U5 g![a U(dgef=f)Nrrsresource:%s.%s)r"�
open_resource�OSError�_readconfig)rFr��rootr�r��remapr�s       r/r��ui.read_resource_config�sY��	��+�+�D��G�T�!�W�=�B�	
�����$�b���	
���	����	�s�7�A�
Ac�t�[US5nURXX#XE5 g![a U(dgef=f)N�rb)�openr�r�)rF�filenamer�r�r�r�r�s       r/r��
ui.readconfig�sA��	��h��%�B�	
����t�H�D���	����	�s�"�7�7c��U [R"5nU=(d U=(d URX!5nURXXVS9 SSS5 URWWU5 g![RaEn	U(aeUR[
S5U	RU	R4-5 Sn	A	NpSn	A	ff=f!,(df   N~=f)N)r�r�signored %s: %s
)
rr��readr�ConfigErrorr�r�location�message�_applyconfig)
rFr�r�r�r�r�r��cfg�trusted�insts
          r/r��ui._readconfig�s�����-�-�/�C��F�%�F�4�=�=��+F�G�
�������F��	
���#�w��-���$�$�
����	�	��)�*�d�m�m�T�\�\�-J�J����
��
�R�s.�9C�A)�)C�=;B=�8C�=C�C�
Cc��[R"5nUR"5HuupVnURXVXr5 M URUSU5 g)a�Add configitems from a non-file source.  Unlike with ``setconfig()``,
they can be overridden by subsequent config file reads.  The items are
in the same format as ``configoverride()``, namely a dict of the
following structures: {(section, name) : value}

Typically this is used by extensions that inject themselves into the
config file load procedure by monkeypatching ``localrepo.loadhgrc()``.
TN)rr�r{r)rFrr�r�rr�r�r�s        r/�applyconfig�ui.applyconfig�sK���m�m�o��&1�&7�&7�&9�"�O�W�U��G�G�G�5�1�':�	
���#�t�T�*r)c���UR5(aySHnXAS;dM
USU	M URS5HupEUSU	M
 URS5HupEUSU	M
 URS5HupEUSU	M
 URS5(a URS5HupEUSU	M
 URS5(a URS5HupEUSU	M
 URS5(a URS5HupEUSU	M
 U(a@URRU5 URRUR5 UR
RU5 UR
RUR5 Uc[RRS	5nURUS
9 g)N)
�debugsfallbackencoding�quietsslashslogtemplate�message-outputsstatuscopiessstyle�	traceback�verboser�sdefaultsscommandsscommand-templatessaliassrevsetaliass
templatealias�~)r�)
r�r�ry�updaterxrz�os�path�
expanduserr�)rFrrr�r��vs      r/r�ui._applyconfigs����:�:�<�<����E�
�?��E�
�1�
���	�	�+�.�����$�Q�'�/��	�	�+�.�����$�Q�'�/��	�	�"6�7����,�-�a�0�8��:�:�h����	�	�(�+�����M�!�$�,��:�:�n�%�%��	�	�.�1�����'��*�2��:�:�&�'�'��	�	�"2�3����(�)�!�,�4���J�J���c�"��J�J���d�j�j�)��
�
���#���
�
���$�*�*�%��<��7�7�%�%�d�+�D����D��!r)c�>�US;GaU=(d [R"5nURURUR4H�nURS5H�upEUnUR
SU5=(d SnXEU4nX�R;aXRU'SU;aMKU(dMTSU;a6UcSnUR[S5XEU4-5 URSS5nXV:wdM�URSXE5 M� M� US	;Ga'[U5uUl
UlURS
S5UlUR =(d URS
S5UlUR (+=(a URS
S
5UlUR"(aUR$(aS=UlUlUR =(d URS
S5UlURS
S5UlURS
S5UlURS
S5UlUS;aVUR.R1UR3SS55 UR4R1UR3SS55 US;a�UR (an[75n	URSS5(aU	R9S5 U	(a4[:R<"UR>U	5n
URASU
5 gggg)N)N�pathsrsnone�:s%%�nones((deprecated '%%' in path %s=%s from %s)
�%)Nr�r�rrrFsreport_untrustedstimestamp-outputrslogblockedtimes)N�trustedrsuserssgroups)N�develr�rsdebug.extensionss	extension)!r�getcwdryrzrxr��configsourcerr�r�replace�alter�_selectmsgdestsr�r�r�rsrrrqrur�rtr�r|rr�r}r{r�r�fileobjectloggerr��	setlogger)rFr�r�r.�n�p�old_p�s�root_key�tracked�loggers           r/r��ui.fixconfig9s����&�&��,�8�?�?�,�D��Z�Z����T�Z�Z�7���G�G�H�-�D�A��E��)�)�(�A�6�A�'�A� !�a�y�H��'9�'9�9�7;�*�*�8�4��q�y� �� ���z��9� &�A��	�	��J�K� �Q�i�(���I�I�e�T�2���z�����!�/�).�8�.�m�#�+:�4�+@�(�D�M�4�=�!�_�_�U�H�=�D�N��>�>�O�T�_�_�U�J�-O�D�L�!�^�^�+�P�����x�0P�D�J��|�|��
�
�,1�1��
�T�\�$(�N�N�%�d�o�o��*�7�D�!�"&����8K�!L�D��!%�����!E�D��#'�?�?�5�:L�#M�D� ��(�(����#�#�D�O�O�J��$I�J����$�$�T�_�_�Z��%K�L��-�-�$�.�.��e�G����x�)<�=�=����L�)��$�5�5�d�j�j�'�J�����x��0��	3A�-r)c��URRX5URRX5URRX54$r+)rx�backupryrz)rFr��items   r/�backupconfig�ui.backupconfigqsB���J�J���g�,��J�J���g�,��J�J���g�,�
�	
r)c��URRUS5 URRUS5 URRUS5 g)Nrr�)rx�restoreryrz)rF�datas  r/�
restoreconfig�ui.restoreconfigxsD���
�
���4��7�#��
�
���4��7�#��
�
���4��7�#r)c��URURUR4HnURXX45 M UR	US9 UR5 g)Nr�)rxryrzr{r�r�)rFr�r�r�r�rs      r/r��ui.setconfig}sG���J�J��
�
�D�J�J�7�C��G�G�G�5�1�8����w��'�� � �"r)c�R�U=(a UR=(d UR$r+)rzry)rF�	untrusteds  r/�_data�ui._data�s���'�T�Z�Z�5�4�:�:�5r)c�B�URU5RX5$r+)r<r��rFr�r�r;s    r/r�ui.configsource�s���z�z�)�$�+�+�G�:�:r)c�:�URXX4S9nU[LagU$)z+return the plain string version of a config)�defaultr;N)�_config�_unset�rFr�r�rBr;r�s      r/r�	ui.config�s+������7��
���F�?���r)c�^�U=pVURRU05RU5nX4/nUb3URb&UR[R"U5;aSnUbSUR	UR
5 [
UR5(aUR5nO(URnOSn	X�U4-n	URU	SS5 U[LaDUcUnO�UR[RLaSnSn	X�U4-n	URU	SS5 OXUnOUUbRUR[RLa5X6:wa0Sn	X�U[R"U54-n	URU	SS5 /n
URU5mUH0up�TR"X�S5n
U
cMU
RX�U
45 M2 U
(aU4Sjn[!X�S9SnUR"(a`U(dYUR$(aHUHBup�UR&RX�5nUcM%X�:wdM,UR)S	X�U4-5 MD U$)
Ns+accessing unregistered config item: '%s.%s'r3swarn-config-unknowns7config item requires an explicit default value: '%s.%s'swarn-config-defaultsPspecifying a mismatched default value for a registered config item: '%s.%s' '%s'c�6>�TR"USUS5$)Nrr)�level)�xrs �r/rI�ui._config.<locals>.level�s����|�|�A�a�D�!�A�$�/�/r))r��3ignoring untrusted configuration option %s.%s = %s
)rw�get�in_core_extensionr�extend�alias�callablerB�	develwarnrDr�dynamicdefaultr�bytestrr<�append�maxrsrurz�debug)rFr�r�rBr;r��itemdefaultr/�
alternates�msg�
candidatesr(r%�	candidaterI�uvaluers                @r/rC�
ui._config�s+���%�%��� � �$�$�W�b�1�5�5�d�;���o�&�
���� 6� 6� B��%�%��)>�)>�t�)D�D��������d�j�j�)�����%�%�"�l�l�n��"�l�l��@�C��T�?�"�C��N�N�3��#9�:��f���|�������!;�!;�;���P�����&�����s�A�'=�>�#�������K�$>�$>�>��&�-�
�
�T�8�#3�#3�G�#<�=�=�C��N�N�3��#9�:��
����I�&���D�A��
�
�1��.�I��$��!�!�1��"3�4���
0��
�.�q�1�E��>�>�)��0E�0E�"���������-���%�&�/��J�J�(�+,��.�9��#��r)c��URRU05RU5nUc[X45eUR$)z�return the default value for a config option

The default is returned "raw", for example if it is a callable, the
callable was not called.
)rwrM�KeyErrorrB)rFr�r�r/s    r/�config_default�ui.config_default�sC��� � �$�$�W�b�1�5�5�d�;���<��G�?�+�+��|�|�r)c���URXX4S9nURU5n0nSU-nURU5H-up�U	RU5(dMX�U	[	U5S'M/ UR
(asU(dlUR(a[UR5HGup�URRUSX)4-5nUcM*X�:wdM1URSXX�4-5 MI XW4$)a^Get a config option and all sub-options.

Some config options have sub-options that are declared with the
format "key:opt = value". This method is used to return the main
option and all its declared sub-options.

Returns a 2-tuple of ``(option, sub-options)``, where `sub-options``
is a dict of defined sub-options where keys and values are strings.
�r;s%s:Ns%s:%ss6ignoring untrusted configuration option %s:%s.%s = %s
)
rr<r��
startswith�lenrsrurzrMrW)rFr�r�rBr;�mainr5�sub�prefixr�rr]s            r/�configsuboptions�ui.configsuboptions�s����{�{�7�'�{�G���z�z�)�$�����$����J�J�w�'�D�A��|�|�F�#�#�()�A�c�&�k�m�$�%�(��>�>�)��0E�0E��	�	�����������T�I�1E�F���%�&�+��J�J�+�.5�Q�-G�H��$��y�r)c��URXX45nUcg[RRU5(aSU;a�UR	XU5nSU;an[RRUR
S5S5n[RRU[RRU55nU$)zEget a path config item, expanded relative to repo root or config
fileNs://rr)	rrr�isabsr�dirname�rsplit�joinr)rFr�r�rBr;rr��bases        r/�
configpath�
ui.configpath�s���
�K�K��w�:���9���w�w�}�}�Q���6��?��#�#�G�9�=�C��s�{��w�w���s�z�z�$�'7��':�;���G�G�L�L��r�w�w�'9�'9�!�'<�=���r)c��URXX4S9nUcU$U[LaU[LagU$[U[5(aU$[R
"U5nUc$[R"[S5XU4-5eU$)a�parse a configuration element as a boolean

>>> u = ui(); s = b'foo'
>>> u.setconfig(s, b'true', b'yes')
>>> u.configbool(s, b'true')
True
>>> u.setconfig(s, b'false', b'no')
>>> u.configbool(s, b'false')
False
>>> u.configbool(s, b'unknown')
False
>>> u.configbool(s, b'unknown', True)
True
>>> u.setconfig(s, b'invalid', b'somevalue')
>>> u.configbool(s, b'invalid')
Traceback (most recent call last):
    ...
ConfigError: foo.invalid is not a boolean ('somevalue')
rdFs%s.%s is not a boolean ('%s'))	rCrD�
isinstance�boolr#�	parseboolrr�r)rFr�r�rBr;r�bs       r/r��
ui.configbools���*
�L�L���L�E���9��H���;��&� ���N��a�����H�� � ��#���9��#�#��2�3�w�a�6H�H��
��r)c��URX#XF5nUcU$U"U5$![[R4aH Uc [R
"UR5n[R"[S5X#XW4-5ef=f)aparse a configuration element with a conversion function

>>> u = ui(); s = b'foo'
>>> u.setconfig(s, b'float1', b'42')
>>> u.configwith(float, s, b'float1')
42.0
>>> u.setconfig(s, b'float2', b'-4.25')
>>> u.configwith(float, s, b'float2')
-4.25
>>> u.configwith(float, s, b'unknown', 7)
7.0
>>> u.setconfig(s, b'invalid', b'somevalue')
>>> u.configwith(float, s, b'invalid')
Traceback (most recent call last):
    ...
ConfigError: foo.invalid is not a valid float ('somevalue')
>>> u.configwith(float, s, b'invalid', desc=b'womble')
Traceback (most recent call last):
    ...
ConfigError: foo.invalid is not a valid womble ('somevalue')
s%s.%s is not a valid %s ('%s'))	r�
ValueErrorr�
ParseErrorr�sysbytesr]r�r)rF�convertr�r�rB�descr;rs        r/�
configwith�
ui.configwith0s���2
�K�K��w�:���9��H�	��1�:����E�,�,�-�	��|��(�(��)9�)9�:���#�#��3�4��t�7O�O��
�	�s
�!�A"Bc�4�UR[XUSU5$)a�parse a configuration element as an integer

>>> u = ui(); s = b'foo'
>>> u.setconfig(s, b'int1', b'42')
>>> u.configint(s, b'int1')
42
>>> u.setconfig(s, b'int2', b'-42')
>>> u.configint(s, b'int2')
-42
>>> u.configint(s, b'unknown', 7)
7
>>> u.setconfig(s, b'invalid', b'somevalue')
>>> u.configint(s, b'invalid')
Traceback (most recent call last):
    ...
ConfigError: foo.invalid is not a valid integer ('somevalue')
sinteger)r�r��rFr�r�rBr;s     r/�	configint�ui.configintUs ��&�������Y�
�	
r)c�&�URXX45nU[La
U[LaSnUn[U[5(dU$[R
"U5$![Ra% [R"[S5XU4-5ef=f)a-parse a configuration element as a quantity in bytes

Units can be specified as b (bytes), k or kb (kilobytes), m or
mb (megabytes), g or gb (gigabytes).

>>> u = ui(); s = b'foo'
>>> u.setconfig(s, b'val1', b'42')
>>> u.configbytes(s, b'val1')
42
>>> u.setconfig(s, b'val2', b'42.5 kb')
>>> u.configbytes(s, b'val2')
43520
>>> u.configbytes(s, b'unknown', b'7 MB')
7340032
>>> u.setconfig(s, b'invalid', b'somevalue')
>>> u.configbytes(s, b'invalid')
Traceback (most recent call last):
    ...
ConfigError: foo.invalid is not a byte quantity ('somevalue')
rs#%s.%s is not a byte quantity ('%s'))
rCrDrur2r�	sizetointrr|r�rrEs      r/�configbytes�ui.configbytesls���,���W�G�?���F�?��&� ����E��%��'�'��L�	��>�>�%�(�(�����	��#�#��8�9��%�(�)��
�	�s�A�9Bc��UR[RXUSU5n[U[5(a[R"U5$Uc/$U$)aXparse a configuration element as a list of comma/space separated
strings

>>> u = ui(); s = b'foo'
>>> u.setconfig(s, b'list1', b'this,is "a small" ,test')
>>> u.configlist(s, b'list1')
['this', 'is', 'a small', 'test']
>>> u.setconfig(s, b'list2', b'this, is "a small" , test ')
>>> u.configlist(s, b'list2')
['this', 'is', 'a small', 'test']
slist)r�r#�	parselistrur2)rFr�r�rBr;rs      r/r��
ui.configlist�sR��
�O�O�� � �'��'�9�
���a�����'�'��*�*�
�Y��I��r)c��URXX45(a#UR[RXUSU5$U[LagU$)z�parse a configuration element as a tuple of ints

>>> u = ui(); s = b'foo'
>>> u.setconfig(s, b'date', b'0 0')
>>> u.configdate(s, b'date')
(0, 0)
sdateN)rr�r �	parsedaterDr�s     r/�
configdate�
ui.configdate�sI���;�;�w�g�9�9��?�?��"�"�G�7�G�Y��
��f����r)c���URRU05RU5nSnUb8[UR5(aUR5nU$URnU$)z,returns the default value of the config itemN)rwrMrQrB)rFr�r�r/rXs     r/�
configdefault�ui.configdefault�sc��� � �$�$�W�b�1�5�5�d�;����������%�%�"�l�l�n����#�l�l���r)c�B�URU5RX5$r+)r<�hasitemr?s    r/r��ui.hasconfig�s���z�z�)�$�,�,�W�;�;r)c�(�XRU5;$)z&tell whether section exists in config.)r<)rFr�r;s   r/�has_section�ui.has_section�s���*�*�Y�/�/�/r)c��URU5RU5nU(aUVs/sHnSUS;dMUPM nnUR(asU(dlUR(a[URRU5H<upgUR
R
X5U:wdM&URSXU4-5 M> U$s snf)NrrrL)r<r�rsrurzryrMrW)rFr�r;�	ignoresubr��ir�rs        r/r�ui.configitems�s����
�
�9�%�+�+�G�4��� %�:��1��Q�q�T�)9�Q��E�:��>�>�)��0E�0E��
�
�(�(��1����:�:�>�>�'�-��2��J�J�(�+2�q�/�:��2����;s
�
C�Cc#��# �URU5nU(dUShv�N gUR5n[US5n[US5nUcUb�UcUv� [US5nOjUcUv� [US5nOVUSSUSS:XaUv� [US5n[US5nO-USSUSS:aUv� [US5nOUv� [US5nUbM�UbM�ggN�7f)Nrr3)�_walk_config�_walk_known�next)rFr;�	all_known�defined�known�current_defined�
current_knowns       r/�
walkconfig�
ui.walkconfig�s����#�#�I�.�������� � �"���w��-���U�D�)�
��)�]�-F��&�#�#� $�U�D� 1�
��&�%�%�"&�w��"5���q��#��q��';�;�%�%�"&�w��"5�� $�U�D� 1�
��q��#�o�a��&:�:�#�#� $�U�D� 1�
�%�%�"&�w��"5��!�)�]�-F�
�s�C �C�B4C �C �C c#�# �[URR55H�up[UR55Hup4UR(aM[	UR
5(aUR5nO,UR
[RLaSnOUR
nXRU4v� M� M� g7f)Ns	<DYNAMIC>)	�sortedrwr��genericrQrBrrSr�)rFr�r�r�r�rBs      r/r��ui._walk_known�s����$�T�%6�%6�%<�%<�%>�?�N�G��u�{�{�}�-����9�9���A�I�I�&�&��i�i�k�G��Y�Y�+�"<�"<�<�*�G��i�i�G��v�v�w�.�.�.�@�s�C
Cc#�# �URU5nUR5H#nURX15HupEX4U4v� M
 M% g7fr+)r<r�r)rFr;rr�r�r�s      r/r��ui._walk_config�sF����j�j��#���|�|�~�G�#�/�/��C����U�*�*� D�&�s�A
Ac�|�S[R;aS[R;ag[RRSS5R5R	S5nS[RRSS5R	S5;aURS5 U(aU(aX;$g)	ais plain mode active?

Plain mode means that all configuration variables which affect
the behavior and output of Mercurial should be
ignored. Additionally, the output should be stable,
reproducible and suitable for use in scripts or applications.

The only way to trigger plain mode is by setting either the
`HGPLAIN' or `HGPLAINEXCEPT' environment variables.

The return value can either be
- False if HGPLAIN is not set, or feature is in HGPLAINEXCEPT
- False if feature is disabled by default and not included in HGPLAIN
- True otherwise
sHGPLAINs
HGPLAINEXCEPTFr)�,s+strictflagssstrictflagsT)rr�rM�strip�splitrU)rF�feature�
exceptionss   r/r��ui.plains���"
�h�.�.�.� ��(8�(8�8����� � �!1�3�7�=�=�?�E�E�d�K�	��(�"2�"2�"6�"6�z�3�"G�"M�"M��#
�
�
���n�-��z��,�,�r)c�V�[RRS5nUc4URSS5nUb[R
R
U5nUc[RRS5nUc	U(aU$Uc0URSS5(aUR[S5SS9nUctUR5(d_S	[R"5[R"[R"554-nUR![S
5U-5 U(d'[$R&"[S5[S5S
9eSU;a6[$R&"[S5[(R*"U5-5eU$!["a Nxf=f)a�Return default username to be used in commits.

Searched in this order: $HGUSER, [ui] section of hgrcs, $EMAIL
and stop searching if one of these is set.
If not found and acceptempty is True, returns None.
If not found and ui.askusername is True, ask the user, else use
($LOGNAME or $USER or $LNAME or $USERNAME) + "@full.hostname".
If no username could be found, raise an Abort error.
�HGUSERNr�susernamesEMAILsaskusernamesenter a commit username:�rBs%s@%ss&no username found, using '%s' instead
sno username supplieds+use 'hg config --edit' to set your username)�hint�
susername %r contains a newline
)rr�rMrrr�
expandvarsr��promptrr�r!�getuser�
strtolocal�socket�getfqdnr�r`r�AbortrrT)rF�acceptemptyrRs   r/r��ui.username%st�����#�#�I�.���<��;�;�u�k�2�D����w�w�)�)�$�/���<��#�#�'�'��1�D��<�K��K��<�D�O�O�E�>�B�B��;�;�q�!<�=�t�;�L�D��<�� 0� 0� 2� 2�
���$�$�&��'�'����(8�9�#����	�	�!�F�G�$�N�O���+�+��)�*��I�J��
��D�=��+�+��5�6��9I�9I�$�9O�O��
�����
��
�s�AF�
F(�'F(c�T�UR(d[R"U5nU$)z>Return a short representation of a user name or email address.)rrr#�	shortuser)rFrRs  r/r��ui.shortuserNs���|�|��'�'��-�D��r)c�.�[R"U5$r+)r$�pathsrEs r/r��ui.pathsTs���}�}�T�"�"r)c��UR$r+)r�rEs r/r��ui.foutX����z�z�r)c�:�URUR5 gr+)�_isattyr�rEs r/�_fout_is_a_tty�ui._fout_is_a_tty\s�����T�Z�Z� r)c�d�Xl[U5uUlUlS[	U5;aU?gg)Nr�)r�r"r�r��varsr��rFr�s  r/r�r�`s1���
�'6�t�'<�$��
�t�}��t�D�z�)��#�*r)c��UR$r+)r�rEs r/r��ui.ferrgr�r)c�@�Xl[U5uUlUlgr+)r�r"r�r�r�s  r/r�r�k����
�'6�t�'<�$��
�t�}r)c��UR$r+�r�rEs r/�fin�ui.finps���y�y�r)c��Xlgr+r�r�s  r/r�r�ts���	r)c��UR$)zMStream dedicated for status/error messages; may be None if
fout/ferr are used)r�rEs r/�fmsg�ui.fmsgxs���z�z�r)c�@�Xl[U5uUlUlgr+)r�r"r�r�r�s  r/r�r�~r�r)c#�# �URXUS9 Sv� UR5 g!UR5 f=f7f)N)r�subproc�labeled)�
pushbuffer�	popbuffer�rFrr�r�s    r/�silent�	ui.silent�s3���	
���e�g��F�	���N�N���D�N�N��s�>�)�>�;�>c��URR/5 URRXU45 X0lg)ainstall a buffer to capture standard output of the ui object

If error is True, the error output will be captured too.

If subproc is True, output from subprocesses (typically hooks) will be
captured too.

If labeled is True, any labels associated with buffered
output will be handled. By default, this has no effect
on the output returned, but extensions and GUI tools may
handle this argument and returned styled output. If output
is being buffered so it can be captured and parsed or
processed, labeled should not be set to True.
N)rnrUrorpr�s    r/r��
ui.pushbuffer�s5��"	
�
�
���R� ����!�!�5�7�";�<�")�r)c���URR5 UR(aURSSUlOSUlSRURR55$)z2pop the last buffer and return the buffered output���r3Nr))ro�poprprprnrEs r/r��ui.popbuffer�sY������� ����&*�&8�&8��&<�Q�&?�D�#�&*�D�#��x�x��
�
�)�)�+�,�,r)c���XRLa[UR5$XRLa.[UR=(a URSS5$g)Nr�rF)r�rvrnr�ro)rF�dests  r/�_isbuffered�ui._isbuffered�sN���:�:����
�
�&�&��:�:����*�*�H�t�/A�/A�"�/E�a�/H�I�I�r)c�d�UR(aUR(dgURSL$)zcheck if write skips the labelTN)rnrpr�rEs r/�canwritewithoutlabels�ui.canwritewithoutlabels�s#���=�=��!8�!8�����$�&�&r)c� �URS:g$)z.check if write calls with labels are batchable�win32)r�rEs r/�canbatchlabeledwrites�ui.canbatchlabeledwrites�s�����(�*�*r)c��^^�TRnTR(asURSS5mT(a;TR(a*TRSR	UU4SjU55 gTRSR	U5 gURSTR
5(dTR
5 SRU5n[R"5nTRS:Xa$[R"TURU40UD6 OCTRb$URSS5mTRUT5nURU5 TR$S==[R"5U-
S	--
ss'g![an[ R""U5eSnAff=f!TR$S==[R"5U-
S	--
ss'f=f)
a�write args to output

By default, this method simply writes to the buffer or stdout.
Color mode can be set on the UI class to have the output decorated
with color modifier before being written to stdout.

The color used is controlled by an optional keyword argument, "label".
This should be a string containing label names separated by space.
Label names take the form of "topic.type". For example, ui.debug()
issues a label of "ui.debug".

Progress reports via stderr are normally cleared before writing as
stdout and stderr go to the same terminal. This can be skipped with
the optional keyword argument "keepprogressbar". The progress bar
will continue to occupy a partial line on stderr in that case.
This functionality is intended when Mercurial acts as data source
in a pipe.

When labeling output for a specific command, a label of
"cmdname.type" is recommended. For example, status issues
a label of "status.modified" for modified files.
�labelr)r�c3�H># �UHnTRUT5v� M g7fr+�r��r-�ar�rFs  ��r/r0�ui.write.<locals>.<genexpr>������(L�t�!����A�u�)=�)=�t���"N�keepprogressbarr��
stdio_blockedr�)r�rnrMrprOr��
_progclearrprr�r�r�
win32print�writer�r�r�
StdioErrorr�)rFrfr�r�rZr��errr�s`      @r/r�ui.write�s����.�z�z���=�=��H�H�W�c�*�E���0�0��
�
�b�!�(�(�(L�t�(L�L�
��
�
�b�!�(�(��.���x�x�)�4�+>�+>�?�?��O�O���h�h�t�n���J�J�L�	�	����(�*�� � ��t�z�z�3�?�$�?��?�?�.� �H�H�W�c�2�E��*�*�S�%�0�C��
�
�3��
���/�0��
�
��y�(��5�
�0���	(��"�"�3�'�'��	(��
���/�0��
�
��y�(��5�
�0�s7�+3F�F;�AF�!F;�
F8�F3�3F8�8F;�;2G-c�D�UR"UR/UQ70UD6 gr+)�_writer�)rFrfr�s   r/�	write_err�ui.write_err�s�����D�J�J�.��.��.r)c�F^^�TRU5(asURSS5mT(a;TR(a*TRSR	UU4SjU55 gTRSR	U5 gTR
"U/UQ70UD6 g)Nr�r)r�c3�H># �UHnTRUT5v� M g7fr+r�r�s  ��r/r0�ui._write.<locals>.<genexpr>rr)r�rMrprnrO�_writenobuf)rFr�rfr�r�s`   @r/r�	ui._write�s{������D�!�!��H�H�W�c�*�E���0�0��
�
�b�!�(�(�(L�t�(L�L��
�
�b�!�(�(��.����T�1�D�1�D�1r)c���URSUR5(dUR5 SRU5n[R
"5nXRLa6[URSS5(dURR5 [USS5(aUR"U40UD6 OtURS:Xa#[R"XRU40UD6 OAURb#URSS5nURXF5nURU5 XRLa"[USS5(dUR5 UR(S==[R
"5U-
S	--
ss'g![a�nXRLarUR [ R"[ R$[ R&4;a5SnAUR(S==[R
"5U-
S	--
ss'g[*R,"U5eSnAff=f!UR(S==[R
"5U-
S	--
ss'f=f)
Nrr)�closedF�
structuredr�r�rr�)rMr�rrprr�r��getattrr��flushrr�rrr�r��errno�EPIPE�EIO�EBADFr�rr)rFr�rfr�rZr�r�r	s        r/r�ui._writenobufs����x�x�)�4�+>�+>�?�?��O�O���h�h�t�n���J�J�L�	� 	��z�z�!�'�$�*�*�h��*N�*N��
�
� � �"��t�\�5�1�1��
�
�3�'�$�'����H�,�� � ��z�z�3�?�$�?��?�?�.� �H�H�W�c�2�E��*�*�S�0�C��
�
�3���z�z�!�'�$��%�*H�*H��
�
��
���/�0��
�
��y�(��5�
�0���	(��z�z�!�c�i�i�����	�	����4�'��
���/�0��
�
��y�(��5�
�0��"�"�3�'�'��	(��
���/�0��
�
��y�(��5�
�0�s2�DF�
H=�"AH8�-I�"H8�8H=�=I�2I2c�R�UR=(a URS5S;nU(aGS[R"[RR5R
55-4U-n[URU/UQ70UD6 U(aUR5 gg)N�type>�noter�error�status�warnings[%s] )
r�rMrrT�datetime�now�	isoformat�
_writemsgwithrr)rFr�rfr��	timestamps     r/�	_writemsg�ui._writemsg0s����&�&�
�4�8�8�F�+;�@
�,
�	����"�"�8�#4�#4�#8�#8�#:�#D�#D�#F�G�H����D�	�d�k�k�4�7�$�7�$�7���J�J�L�r)c�8�[URU/UQ70UD6 gr+)r'r)rFr�rfr�s    r/�_writemsgnobuf�ui._writemsgnobufAs���d�&�&��<�t�<�t�<r)c�"�[R"5nURR5 URR5 URS==[R"5U-
S--
ss'g![a]nUR
[
R[
R[
R4;a[R"U5eSnAN�SnAff=f![a]nUR
[
R[
R[
R4;a[R"U5eSnAN�SnAff=f!URR5 f![a]nUR
[
R[
R[
R4;a[R"U5eSnAfSnAff=f=f!URS==[R"5U-
S--
ss'f=f)Nrr�)
rr�r�rr�rrrrrrr�r�)rFr�r	s   r/r�ui.flushDs����J�J�L�	�	�

4��
�
� � �"�
4��J�J�$�$�&�

���/�0��
�
��y�(��5�
�0���
0��9�9�U�[�[�%�)�)�U�[�[�$I�I��*�*�3�/�/�J��
0���4��y�y����e�i�i����(M�M�#�.�.�s�3�3�N��4��4��J�J�$�$�&���4��y�y����e�i�i����(M�M�#�.�.�s�3�3�N��4��
���/�0��
�
��y�(��5�
�0�s��A>�C(�>
C%�AC �E� C%�%E�(
E�2AE
�G�
E�G�G�E/�.G�/
G�9AG�G�G�G�G�2Hc�^�URSS5(ag[R"U5$)Nr��nonttyF)r�r!�isatty)rF�fhs  r/r��
ui._isattyXs%���?�?�5�)�,�,�����r�"�"r)c��UR(aURUR4$[R"URUR5upX4URUR4:gUlX4$)z�Duplicate ui streams and redirect original if they are stdio

Returns (fin, fout) which point to the original ui fds, but may be
copy of them. The returned streams can be considered "owned" in that
print(), exec(), etc. never reach to them.
)r�r�r�r!�protectstdio�rFr�r�s   r/�
protectfinout�ui.protectfinout]sb���!�!��9�9�d�j�j�(�(��)�)�$�)�)�T�Z�Z�@�	��"%�����D�J�J�0G�!G����y�r)c��X4URUR4:Xag[R"URURX5 SUlg)z7Restore ui streams from possibly duplicated (fin, fout)NF)r�r�r!�restorestdior�r7s   r/�
restorefinout�ui.restorefinoutls@���;�4�9�9�d�j�j�1�1�����d�i�i����S�?�"'��r)c#�# �UR5upX4v� URX5 g!URX5 f=f7f)z.Run code block with protected standard streamsN)r8r<r7s   r/�protectedfinout�ui.protectedfinoutus?����&�&�(�	��	*��)�O����s�)��D���s�)�s�A�-�A�A�Ac��SUlg)NT)r�rEs r/�disablepager�ui.disablepager~s
��!��r)c�n�UR(dUR(agURS5(d�XRSS5;d�UR	SS5(a�UR	SSU-S5(ar[
RRS	5S
:XdOUR5(a:UR5(d%UR(dS[R;ag[R(a'[[SS5S
:XaUR!S5 gUR#SS[$R&5nU(dg0n[$R("5R+5HupEU[
R;dMXSU'M! UR!S[,R."U5-5 UR15 UR5n[3[4S5(a)[4R4"[4R6[85 UR;X#5(aiSUlUR=SSUS5 UR=SSSS5 UR>nXpR#SSU5:wa[@RB"U5 ggURE5 g)a�Start a pager for subsequent command output.

Commands which produce a long stream of output should call
this function to activate the user's preferred pagination
mechanism (which may be no pager). Calling this function
precludes any future use of interactive functionality, such as
prompting the user or activating curses.

Args:
  command: The full, non-aliased name of the command. That is, "log"
           not "history, "summary" not "summ", etc.
Nsinternal-always-spagersignorer�spaginatesattend-T�TERM�dumbs
--debugger�frozen�console_exes+pager is unavailable with py2exe packaging
sstarting pager for command %s
�SIGPIPE�	formatted�interactiveFscolors	pagermode)#r�r�rer�r�rr�rM�	formattedr�rnr�sysargv�	iswindowsr�sysrWrr�
fallbackpager�defaultpagerenvr�r#�pprintr�hasattr�signalrIrg�	_runpagerr�r�r�setuprB)rF�command�pagercmd�pagerenvr�r��wasformatted�cms        r/�pager�ui.pager�s������!1�!1���!�!�"5�6�6�
���x��;�;��?�?�5�+�6�6��?�?�8�Z�'�-A�4�H�H����#�#�G�,��7��>�>�#�#��z�z�|�|��}�}��� 0� 0�0�

����'�#�x��">�-�"O��J�J�F�G���;�;�x��6�3G�3G�H������!�1�1�3�9�9�;�K�D��8�+�+�+�!&���<�	
�
�
�.��1B�1B�7�1K�K�	
�	
�
�
���~�~�'���6�9�%�%��M�M�&�.�.�*�5��>�>�(�-�-�#�D��
�N�N�5�,��h�G��N�N�5�.�%��B����B��[�[��<��<�<����D�!�=�
���r)c�^^^^�TS:Xag[U4SjS55n[R(aDU(d=[R"T5nU(dUR[
S5T-5 gUm[R"[R"T5US[R[R[R[R[R"[R"U55S9m[R"S:wad[$R&"[RR)55m[$R&"[RR)55m[$R*"TR,R)5[RR)55 UR/[R5(aK[$R*"TR,R)5[RR)55 UR0UUU4S	j5ng
![ a( U(dUR[
S5T-5 gef=f)z�Actually start the pager and set up file descriptors.

This is separate in part so that extensions (like chg) can
override how a pager is invoked.
scatFc3�,># �UH	oT;v� M g7fr+rc)r-r.rWs  �r/r0�ui._runpager.<locals>.<genexpr>�s����H�*G�Q��L�*G�s�s|&;<>()$`\"' 	
*?[#~=%s+missing pager command '%s', skipping pager
r�)�shell�bufsize�	close_fdsr�r�r��env�OpenVMSc�>�[[S5(a3[R"[R[R5 [R
S:XaTR
5 [R"T[RR55 [R"T[RR55 TRR5 TR5 g)N�SIGINTre)rSrTrg�SIG_IGNr�sysplatform�killr�dup2r!r��filenor�r��close�wait)r\�stderrfd�stdoutfds���r/�	killpager�ui._runpager.<locals>.killpagers�����v�x�(�(��
�
�f�m�m�V�^�^�<��#�#�z�1��
�
���G�G�H�h�o�o�4�4�6�7��G�G�H�h�o�o�4�4�6�7��K�K�����J�J�Lr)T)�anyrrNr!�findexer�r�
subprocess�Popen�tonativestr�closefds�PIPEr�r��tonativeenv�shellenviron�FileNotFoundErrorrir�duprlrkr�r��atexit)	rFrWrdra�fullcmdrqr\rorps	 `    @@@r/rU�ui._runpager�s�����f���
�H�*G�H�H�����e��&�&�w�/�G���	�	��E�F��P����G�	��$�$��$�$�W�-���"�+�+� �o�o��������(�(��)>�)>�s�)C�D�	�E�&���:�-��v�v�h�o�o�4�4�6�7�H��v�v�h�o�o�4�4�6�7�H�
������"�"�$�h�o�o�&<�&<�&>�?��<�<����(�(��G�G�E�K�K�&�&�(�(�/�/�*@�*@�*B�C�	
���		�
�		���;!�	���	�	��E�F��P����
	�s�;BI�.J�Jc��[$r+)rhrEs r/�
_exithandlers�ui._exithandlerss���r)c�@�URRXU45 U$)zrregister a function to run after dispatching a request

Handlers do not stay registered across request boundaries.)r�rU)rF�funcrf�kwargss    r/r~�	ui.atexits"��	
���!�!�4�v�"6�7��r)c��[SS/5nSS/SS/S.nXR5;a[SU-5e[X15nX$:�a[SU-5eUR5(d#[R
R
S5S:XagSnURSS	5nXb;a[[U5nUnURSS
U-5nX�;a[[U5nUbEXV:wa@UbUR[S5U4-5 OUR[S5Xg4-5 Ub$Xx:waUR[S
5XU4-5 U$)a�what interface to use for interactive console features?

The interface is controlled by the value of `ui.interface` but also by
the value of feature-specific configuration. For example:

ui.interface.histedit = text
ui.interface.chunkselector = curses

Here the features are "histedit" and "chunkselector".

The configuration above means that the default interfaces for commands
is curses, the interface for histedit is text and the interface for
selecting chunk is crecord (the best curses interface available).

Consider the following example:
ui.interface = curses
ui.interface.histedit = text

Then histedit will use the text interface and chunkselector will use
the default curses interface (crecord at the moment).
stextscurses)s
chunkselectorshisteditsUnknown feature requested %ss1Feature %s does not handle all default interfacesrErFr�s	interfacesinterface.%ss#invalid value for ui.interface: %s
s.invalid value for ui.interface: %s (using %s)
s1invalid value for ui.interface.%s: %s (using %s)
)�	frozenset�keysr{r�rr�rMrrr2r�r)	rFr��alldefaults�featureinterfaces�availableinterfaces�defaultinterfacer��choseninterfacer�s	         r/�	interface�ui.interface%s��, ��)� 4�5�����
���	
���0�0�2�2��<�w�F�G�G�'�(9�(B�C���,��D�w�N��
��:�:�<�<�8�+�+�/�/��8�G�C��#���K�K��|�,����#�E�1�~��!1���K�K����8�9���#�"�5�!�n�O��=�-�2��}��	�	�!�C�D��t�K�L��	�	��H�I��*�+��
�=�_�1��I�I��G�H���/�0�
�
�r)c�f�URSS5nUcURUR5$U$)a�is interactive input allowed?

An interactive session is a session where input can be reasonably read
from `sys.stdin'. If this function returns false, any attempt to read
from stdin should fail with an error, unless a sensible default has been
specified.

Interactiveness is triggered by the value of the `ui.interactive'
configuration variable or - if it is unset - when `sys.stdin' points
to a terminal device.

This function refers to input only; for output, see `ui.formatted()'.
r�rK)r�r�r��rFr�s  r/r��ui.interactivess3��
�O�O�E�>�2���9��<�<��	�	�*�*��r)c��S[R;a[[RS5$[R
"U5S$![a N%f=f)z$how wide is the terminal in columns?sCOLUMNSr)rr�r�r{r�termsizerEs r/�	termwidth�ui.termwidth�sW����)�)�)�
��8�+�+�J�7�8�8�����%�a�(�(���
��
�s�A�
A�Ac��UR5(agURSS5nUcURUR5$U$)a�should formatted output be used?

It is often desirable to format the output to suite the output medium.
Examples of this are truncating long lines or colorizing messages.
However, this is not often not desirable when piping output into other
utilities, e.g. `grep'.

Formatted output is triggered by the value of the `ui.formatted'
configuration variable or - if it is unset - when `sys.stdout' points
to a terminal device. Please note that `ui.formatted' should be
considered an implementation detail; it is not intended for use outside
Mercurial or its extensions.

This function refers to output only; for input, see `ui.interactive()'.
This function always returns false when in plain mode, see `ui.plain()'.
Fr�rJ)r�r�r�r�r�s  r/rL�ui.formatted�sA��"�:�:�<�<���O�O�E�<�0���9��<�<��
�
�+�+��r)c��URUR5=(ai URUR5=(aG [R"UR5=(a  [R
"UR5nU(aSSKnUR URS:XdU(d<U(d0nUR"URU4SS0UD6 UR5 SnO/URnSUl
URUS5S-nXPl
URS	5 U(auUR5 [ R""U5n[ R$"['U55n[(R*S
:XaUR-S5(aUSSnO�URR/[(R0"U55 URR5 URR
5nU(d[2eUR5[(R*5nSSS5 U$![a SnGN�f=f!XPl
f=f!,(df   W$=f)
NrFr�r�prompt� Ts	ui.prompt�stdios
�
r�)r�r�r�r!�isstdin�isstdout�readline�read_history_file�	Exceptionr�r,r�rr�r�r�r�strfromlocalr��inputr�	oslinesep�endswithrrT�EOFError�rstrip)rFr��
promptopts�usereadliner��wasreadlineprompt�lines       r/�	_readline�ui._readline�s���
�L�L����#�
.����T�Z�Z�(�
.�� � ����+�
.��!�!�$�*�*�-�		��	
$� ��*�*�
�?�?�h�&�k���
�����
�
�v�
�,5�
�9C�
�
�J�J�L��F� $� 4� 4��
9�'+��$����F�L�9�D�@��'8�$��
$�
$�X�
.���
�
��!�.�.�v�6���*�*�5��=�9���%�%��0�T�]�]�5�5I�5I����9�D���
�
� � ��!1�!1�&�!9�:��
�
� � �"��y�y�)�)�+���"�N��{�{�8�#5�#5�6��/�"���M�
$�#��
$��"(9�$��/�
.�"��s+�I
�I �7DI+�
I�I� I(�+
I:c��gr+rc�rFrZrBs   r/r��	ui.prompt����r)c��gr+rcr�s   r/r�r��r�r)c� �URXS9$)zXPrompt user with msg, read response.
If ui is not interactive, the default is returned.
r�)�_promptr�s   r/r�r��s���|�|�C�|�1�1r)c��gr+rc�rFrZrBr�s    r/r��
ui._prompt���
r)c��gr+rcr�s    r/r�r�r�r)c��0UESU0EnUR5(dHUR"URUS4SS0UD6 URURU=(d SSSS9 U$URXS	9nU(dUnUR	S
S5(a%URURU=(d SSSS9 U$![
a [R"5ef=f)NrBr�rr�r)r�s
promptecho)r)r�r�r�)r�r)r�r�r�r�r�ResponseExpected)rFrZrBr��rs     r/r�r�s���+�$�+�	�7�+�����!�!��N�N�4�=�=�#�t�L�)�L�t�L��N�N��
�
�w�~�#�u�=�
�
��N�
	+����c��;�A�������u�m�4�4�����M�M�1�8��U�����H���	+��(�(�*�*�	+�s
�'AB=�= Cc�$�[R"SU5nUceURS5nURS5RS5Vs/sHo3R	S5PM nnSnX$Vs/sH
oe"U5PM sn4$s snfs snf)a�Extract prompt message and list of choices from specified prompt.

This returns tuple "(message, choices)", and "choices" is the
list of tuple "(response character, text without &)".

>>> ui.extractchoices(b"awake? $$ &Yes $$ &No")
('awake? ', [('y', 'Yes'), ('n', 'No')])
>>> ui.extractchoices(b"line\nbreak? $$ &Yes $$ &No")
('line\nbreak? ', [('y', 'Yes'), ('n', 'No')])
>>> ui.extractchoices(b"want lots of $$money$$?$$Ye&s$$N&o")
('want lots of $$money$$?', [('s', 'Yes'), ('o', 'No')])
s(?s)(.+?)\$\$([^$]*&[^ $].*)rr3s$$r�c�z�URS5nXS-US-R5URSSS54$)N�&rr3r))�index�lowerr )r(�ampidxs  r/�choicetuple�&ui.extractchoices.<locals>.choicetuple;s=���W�W�T�]�F��a�Z�&�1�*�-�3�3�5�q�y�y��s�A�7N�N�Nr))�re�matchr�r�r�)r��mrZr&�choicesr�r(s       r/�extractchoices�ui.extractchoices s���(
�H�H�5�v�>���}��}��g�g�a�j��*+�'�'�!�*�*:�*:�5�*A�B�*A�Q�7�7�4�=�*A��B�	O��g�6�g��k�!�n�g�6�7�7��
C��7s�B�3B
c�<�URU5up4UVVs/sHupVUPM	 nnnURX7UUS9nUR5U;aURUR55$UR	UR
[
S55 Mms snnf)a5Prompt user with a message, read response, and ensure it matches
one of the provided choices. The prompt is formatted as follows:

   "would you like fries with that (Yn)? $$ &Yes $$ &No"

The index of the choice is returned. Responses are case
insensitive. If ui is not interactive, the default is
returned.
)rBr�sunrecognized response
)r�r�r�r�r)r�r)rFr�rBrZr�r�r��respss        r/�promptchoice�ui.promptchoiceAs����*�*�6�2���&�'�w�t�q��w��'�����S��.�'��J�A��w�w�y�E�!��{�{�1�7�7�9�-�-��N�N�4�=�=�!�,F�*G�H���(s�Bc��UR5(dU$URURU=(d [S5SSS9 UR	S5 URSS5(aAURR5nU(d[eURS5sSSS5 $[R"5sSSS5 $!,(df   g=f![a [R"5ef=f)	Ns
password: r�T)r�passwordr�r�r1r�)r�r)r�rr�r�r�r�r�r�r�get_passwordrr�)rFr�rB�ls    r/�getpass�
ui.getpassUs������!�!��N�	+��N�N��
�
��*�!�M�*���	
�
��(�(��2��?�?�5�)�4�4��	�	�*�*�,�A��&���8�8�E�?�3�2� �,�,�.�3�2�2���	+��(�(�*�*�	+�s6�?C �AC�'	C �1C�	C �
C�C �C �  Dc�l�UR(d#UR"UR/UQ7SS0UD6 gg)zawrite status message to output (if ui.quiet is False)

This adds an output label of "ui.status".
rr"N)rqr)r��rFrZr�s   r/�status�	ui.statusns/��
�z�z��N�N�4�=�=�G�3�G�y�G�$�G�r)c�H�UR"UR/UQ7SS0UD6 g)zUwrite warning message to output (stderr)

This adds an output label of "ui.warning".
rr#N�r)r�r�s   r/r��ui.warnvs#��
	
���t�}�}�D��D�:�D�t�Dr)c�H�UR"UR/UQ7SS0UD6 g)zQwrite error message to output (stderr)

This adds an output label of "ui.error".
rr!Nr�r�s   r/r�ui.error}s#��
	
���t�}�}�B�c�B�8�B�T�Br)c�l�UR(a#UR"UR/UQ7SS0UD6 gg)zVwrite note to output (if ui.verbose is True)

This adds an output label of "ui.note".
rr N)rrr)r�r�s   r/�note�ui.note�s/��
�<�<��N�N�4�=�=�E��E�w�E��E�r)c��UR(aEUR"UR/UQ7SS0UD6 URSSSR	U55 gg)zbwrite debug message to output (if ui.debugflag is True)

This adds an output label of "ui.debug".
rrs%sr)N)rsr)r��logrpr�s   r/rW�ui.debug�sG��
�>�>��N�N�4�=�=�F�#�F�x�F��F��H�H�X�u�c�h�h�s�m�4�r)c�>�UcURS5 SSS.nUb4URS5bURS5 URU5 UnUS:XaSn	OU(aS	U-n	OUSn	Sn
URS
S5(aUn
[R
"SUS
-S-X�S9up�[R"US5n
U
R[R"U55 SSS5 SU0nSU;aURS[US505 SHnX�;dM
URSX?05  O U(aURSU05 U(aURSU05 UR5nURSUU4-U[R[!S5SS9 [R""[R$"U55n[R&"U5 U$!,(df   GN=f![R&"U5 f=f)NsAaction is None but will soon be a required parameter to ui.edit()�editors.txt)�prefix�suffixr�s>extra.suffix is not None but will soon be ignored by ui.edit()sdiffs.diffs
.%s.hg.txtrls
editortmpinhgshg-r��-)ri�suffix�dir�wbr�stransplant_sources
HGREVISION)sintermediate-sourcessources
rebase_sources
HGEDITFORMs
HG_PENDINGs%s "%s"sedit failed)r��onerr�	errprefix�
blockedtag)rRrMrr�r�mkstempr�fdopenrr�tonativeeolr�	geteditor�systemr�
CanceledErrorr�
fromnativeeol�readfile�unlink)rF�textrR�extra�editform�pending�repopath�action�extra_defaultsr��rdir�fdr�r�r�r��editorr�s                  r/�edit�ui.edit�s���>��N�N�*�
�
!��
�����y�y��#�/����,��
�!�!�%�(����W���F�
�"�V�+�F��9�%�F����?�?�?�,<�=�=��D��%�%��E�)�,�,�t�3�F�
�
��	����2�t�$������(�(��.�/�%�!�$�'�G�#�u�,����"�C��.B�(C�$D�E��O���>��N�N�M�5�<�#@�A��O�����
�x�8�9�����
�w�7�8��^�^�%�F��K�K����~�-���)�)��N�+�$�
�
��"�"�4�=�=��#6�7�A��I�I�d�O���?%�$��:
�I�I�d�O�s+�*H�&G2�'9H�$B6H�2
H�<H�Hc���UcURS[5SSnSU-nURn[SUR55(aUnURU5 UR
XX8S9n	SSS5 W	(aNU(aGS[R"U5S[R"U	54-n
U(aSXZ4-n
U"U
5eU	$!,(df   Ne=f)	z�execute shell command with appropriate output stream. command
output will be redirected if fout is not stdout.

if command fails and onerr is None, return status, else raise onerr
object as exception.
Ni����sunknown_system_c3�*# �UH	oSv� M g7f�rNrc)r-r(s  r/r0�ui.system.<locals>.<genexpr>�s���0�/���t�/�s��r��cwd�outs%s %srs%s: %s)
�	translater3r�rsror��
_runsystemr!�
shellsplit�explainexit)rF�cmdr�rr�r�r��	cmdsuffixr
�rc�errmsgs           r/r��	ui.system�s������
�
�d�J�7���=�I�+�i�7�J��j�j���0�T�/�/�0�0�0��C�
�
$�
$�Z�
0�����3��H�B�1�
�%���#�#�C�(��+��$�$�R�(�!��F��"�i�%8�8����-���	�1�
0�s�"C�
C c�,�[R"XX4S9$)zSactually execute the given shell command (can be overridden by
extensions like chg)r)r!r�)rFrr�rr
s     r/r�
ui._runsystem	s�����s��F�Fr)c
��UR(dU(GaPUc[R"5n[USSS5nUb�[R
"US5n[R
"US5n[R"USUS5nURS[R"SRUSS55[R"SRU55[R"SRU555 OU[R"USUSUS5nUR[R"SRU555 UR=(d U$)	z�print exception traceback if traceback printing enabled or forced.
only to call in exception handler. returns true if traceback
printed.Nr�causer3rs#Traceback (most recent call last):
�r�)rtrO�exc_infor�	traceback�	format_tb�format_exception_onlyr
rr�rp�format_exception)rF�exc�forcer�causetb�exctb�exconly�outputs        r/r�ui.tracebacks'�������{��l�l�n���C��F�G�T�2�E�� �#�-�-�e�A�h�7��!�+�+�C��F�3��#�9�9�%��(�E�!�H�M�����;��'�'�����c�r�
�(;�<��'�'�����(8�9��'�'�����(8�9�	�#�3�3�C��F�C��F�C��F�K�����x�2�2�2�7�7�6�?�C�D��!�!�*�U�*r)c��[RS:XaSnO2[R(aSnO[R(aSnOSn[R
R
S5=(d URSSU5$)	zreturn editor to usesplan9�Esvimsnotepad.exesvisHGEDITORr�r�)rri�isdarwinrNrr�rMr)rFrs  r/r��ui.geteditor(sj�����8�+��F�
�
�
�
�F�
�
�
�#�F��F����#�#�K�0�
�D�K�K��9�f�5
�	
r)c���UR(dCUR(d2URSS5(d[R"U5(dg[U5$)z,setup the progbar singleton to the ui object�progresssdisableN)rqrsr�r�shouldprint�
getprogbarrEs r/r��ui._progbar>sB��
�J�J��~�~����{�J�7�7��'�'��-�-���$��r)c��[5(dgURb7URR(aURR5 ggg)z:clear progress bar output if any. use it before any outputN)�haveprogbarr��printed�clearrEs r/r�
ui._progclearJs:���}�}���=�=�$����)>�)>��M�M���!�*?�$r)c��^�[TRSS5(aU4SjnO'TRbTRRnOSn[R"TXAX#5$)z0Create a progress helper for the specified topicrFc
�D>�TRRSSUUUUUS9 g)Nr-)rr��posr/�unit�total)r�r)r�r8r/r9r:rFs     �r/�	updatebar�"ui.makeprogress.<locals>.updatebar[s/����
�
�#�#��$������$�r)c��gr+rc)r�r8r/r9r:s     r/r;r<js��r))rr�r�rr)rFr�r9r:r;s`    r/�makeprogress�ui.makeprogressQsT����4�=�=�,��6�6�	
��]�]�
&��
�
�.�.�I�
�����i��D�Dr)c�8�URRU5$)z=Returns a logger of the given name; or None if not registered)r�rM)rFr�s  r/�	getlogger�ui.getloggeros���}�}� � ��&�&r)c� �X RU'g)z�Install logger which can be identified later by the given name

More than one loggers can be registered. Use extension or module
name to uniquely identify the logger instance.
N)r�)rFr�r+s   r/r$�ui.setloggerss��%�
�
�d�r)c�x�UR(dgURR5Vs/sHoURU5(dMUPM nnU(dgX#-n[R"U5nURn0UlUHn	U	RXXt5 M X�lgs snf!X�lf=f)ahook for logging facility extensions

event should be a readily-identifiable subsystem, which will
allow filtering.

msgfmt should be a newline-terminated format string to log, and
*msgargs are %-formatted into it.

**opts currently has no defined meanings.
N)r��valuesr*r�byteskwargsr�)
rF�event�msgfmt�msgargsr�r��
activeloggersrZ�registeredloggersr+s
          r/r��ui.log{s����}�}��$(�M�M�$8�$8�$:�O�$:�q�i�i��>N��$:�
�O�������#�#�D�)�� �M�M����
�	.�'���
�
�4��2�(�.�M��P��.�M�s�B,�B,�
B1�1B9c�N�URb[R"XU5$U$)a&style msg based on supplied label

If some color mode is enabled, this will add the necessary control
characters to apply such color. In addition, 'debug' color mode adds
markup showing which label affects a piece of text.

ui.write(s, 'label') is equivalent to
ui.write(ui.label(s, 'label')).
)r�r�
colorlabel)rFrZr�s   r/r��ui.label�s&���?�?�&��#�#�D�u�5�5��
r)c
��URSS5(dUbURSU5(dgSU-nUS-
nUR(ag[R"XURUR
5 UR
SSUSR[R"U554-5 g[R"5n[R"US	5nXRSS
upgn[R"U5[R"U5p�URSXXx4-5 UR
SSXXx5 AAg)zpissue a developer warning message

Use 'stacklevel' to report the offender some layers further up in the
stack.
r�all-warningsNsdevel-warn: rs	develwarns	%s at:
%sr)r3�s%s at: %s:%d (%s)
)r�rtr�debugstacktracer�r�r�rp�getstackframes�inspect�currentframe�getouterframesrr}r
)	rFrZ�
stacklevelr�curframe�calframe�fname�linenor�s	         r/rR�ui.develwarn�s�����x��9�9��~�T�_�_�X�v�%F�%F����#���a��
����� � ��$�*�*�d�j�j�I��H�H��������!4�!4�Z�!@�A�B�C�
��+�+�-�H��-�-�h��:�H�"*�"6�q��";��E�4�"�+�+�E�2�H�4E�4E�d�4K�4��N�N�1�S��4N�N�O��H�H��4�c�&�
�
�r)c��URSS5(dURSS5(dgUSU--
nURXSS9 g)z�issue a deprecation warning

- msg: message explaining what is deprecated and how to upgrade,
- version: last version where the API will be supported,
rrRsdeprec-warnNsF
(compatibility will be dropped after Mercurial-%s, update your code.))rYr)r�rR)rFrZ�versionrYs    r/�
deprecwarn�
ui.deprecwarn�sR��
�O�O�H�o�6�6����x��8�8���
#���	��	
���s�.��Ir)c��UR$)zGThe environment variables that are safe to export, e.g. through
hgweb.
)r�rEs r/�exportableenviron�ui.exportableenviron�s���&�&�&r)c#�# �0nUR5H/uupEnURXE5X4U4'URXEXb5 M1 Sv� UR5HupxURU5 M SU;aUR	SS9 gg!UR5HupxURU5 M SU;aUR	SS9 ff=f7f)zContext manager for temporary config overrides
`overrides` must be a dict of the following structure:
{(section, name) : value}N)r�rr�r�)r�r0r�r6r�)	rF�	overridesr��backupsr�r�r��__r.s	         r/�configoverride�ui.configoverride�s����
��	.�*3�/�/�*;�&����+/�+<�+<�W�+K��$��(����w�e�<�+<�
�%�m�m�o�
���"�"�6�*�.�!�I�-����u��-�.��	&�m�m�o�
���"�"�6�*�.�!�I�-����u��-�.�s�C�AB�
AC�AC�Cc��URSS5nUb[R"U5$[R"5$![Ra# [R
"[
S5U-5ef=f)z�Provide an estimate for the available system memory in Bytes.

This can be overriden via ui.available-memory. It returns None, if
no estimate can be computed.
r�savailable-memorys+ui.available-memory value is invalid ('%s'))rrr�rr|r�r�_estimatememory)rFr�s  r/�estimatememory�ui.estimatememory�sx�����E�#6�7����
��~�~�e�,�,�
�#�#�%�%��	�#�#�
��'�'��D�E��M���
�s�A�7A9)'r�rprnror�r�r�r�r�r�r�r�r�r�rwr�rxrr�rur�ryr�r}r|r�rzr�r~rsr�r�r�r�r�rqr�rtrrr+)r�zOptional[ui]r[r\rZ)r�z
Type[_Tui]r[r&)rFr&r[r&)r�r2)r�r2)r�r2r[rv)NFNN)r)N)r�_ConfigItemsr[r\)NN)r))F)FF)r��Optional[bytes]r[rv)rRr2r[r2)FFF)rrvr�rvr�rv)rrvr�rvr�rvr[r\)r[r2�r[rv�rfr2r��_MsgOptsr[r\)rWr2r[r\)rWr2r[rv)r�r2r[r2)r[r�)r�N)r�r2r�zOptional[Dict[str, _MsgOpts]]r[r2)rZr2rBr2r[r2)rZr2rBr\r[rq)�y)rZr2rBr2r�rtr[r2)rZr2rBr\r�rtr[rq)r�r2r[z!Tuple[bytes, List[_PromptChoice]])r)r�r2rBr�r[r�)r�rqrBrqr[rq)rZr2r�rtr[r\)NNNNN)r�r2rRr2r�zOptional[Dict[bytes, Any]]r�rqrrqr[r2)rr2rrqr�z&Optional[Callable[[bytes], Exception]]r�rqr�rqr[r�)rr2rrqr[r�)NF)r"rv)r[�Optional[progress.progbar])r�r2r9r2r:�
Optional[int]r[zscmutil.progress)rZr2r�r2r[r2r	)rZr2rYr�rrqr[r\)r3)rZr2r`r2rYr�r[r\)rgrpr�r2)r[rw){r]r^r_r`rGr��classmethodr�r�r�r��
contextlib�contextmanagerr�r�rr�r�r�r�rrr�r0r6r�r<rrDrrCrarjrrr�r�r�r�r�r�r�r�r�rr�r�r�r�r�r�r�
propertycacher��propertyr�r��setterr�r�r�r�r�r�r�r�r�rr
rrr)r,rr�r8r<r?rBr\rUr�r~r�r�r�rLr��typing�
TYPE_CHECKINGrr�r��staticmethodr�r�r�r�r�rr�rW�statusnoi18n�
notenoi18n�
warnnoi18n�writenoi18nrr�rrr�r�rr>rAr$r�r�rRrardrjrnrbrcr)r/r'r'�s{��_A�B �
����4M�($�:���������� .�� .�D<��2BF�
�	
�
�FJ�
E�	
�
E�JN�.�	
�.�&;?�+�'�+�	
�+�$)"�V61�p
�$�
#�6�;�-3�e��.4�u�A�F
�7=���:17�%��17�%�#�L/5�4�5�#�J06��
�.28�5�#�J17�%��,17�%�� 	�<�0��6�4/�+��B'�R�
���#��#�����
���!��!�
�[�[�$��$�����
�[�[�=��=�����	�Z�Z��������

�[�[�=��=����JO����,0��CG����KP�*��*�,0�*�CG�*�	
�*�*-��'�+�
8�t/�	2�(�T�"=��(#�

�'����*��*�"�O �bF�P� �� ��L�\�,)��<�48�>��>�2�>�
�	>�@���	�	�
�	�
�	�
�	�2����	�	��	�',�	�6>�	�
�	�
�	�

�	��	�'+�	�5=�	�
�	�
�	�
+�(�8��8�@I�*JN�+�%�+�7F�+�	�+�2H�E�C�F�5��L��J��J��K�-1���$(�"&�I��I��I�*�	I�"�I� �I�
�I�\�#�8<�%)�&*�!�
�!��	!�
6�!�#�
!�$�!�

�!�FG�
+�4
�,
���	 ��	 �"�GK�E��E�"'�E�6C�E�	�E�<'�%�.�6�JN� �� �&)� �7F� �	
� �L�	J�
�J��J��	J�

�J�,'����.��.�$&r)rv�_progresssingletonc�H�[c[R"U5q[$r+)r�r�progbar)r's r/r/r/	s!���!�&�-�-�b�1���r)c��[SL$r+)r�rcr)r/r2r2	s
���T�)�)r)c�^�URSS5nUS:XaAUR(aURUR4$URUR4$US:XaURUR4$US:XaURUR4$[R
"SU-5e)Nr�r
schannelr�sstderrs)invalid ui.message-output destination: %s)rr�r�r�rr�)r'r�s  r/r"r"	s���
�9�9�U�-�.�D��z��
�7�7��7�7�B�G�G�#�#��7�7�B�G�G�#�#��x���w�w�������y���w�w������
�+�+�B�T�I�
J�Jr)c��SU;a<[USS5(d*URSS5SURS5--US'U"U/UQ70UD6 g)z�Write ui message with the given ui._write*() function

The specified message type is translated to 'ui.<type>' label if the dest
isn't a structured channel, so that the message will be colorized.
rrFr�r)s ui.%sN)rrMr�)rr�rfr�s    r/r'r'(	sR����~�g�d�L�%�@�@�����#�.��T�X�X�f�=M�1M�M��W�
�	�$�����r))r[r)r'r'r[zprogress.progbarrr)r'r'rs)P�
__future__rr�ryr$rrVrr�rTr�rurOrr~rrrrrr	r
rrr
rr�i18nr�noderrrrrrrrrrrrrr�
configurationr�utilsr r!r"r#r$r2�objectrprvrtr%r&rJrp�map�bytechr�ranger3�__annotations__r4r5r:r>r@rgrDrhr'r�r/r2r"r'rcr)r/�<module>r�s���#������	�	�
�
��
��
�
�
�
�
���
�
�
�
�"����E�%��,�'��/�0�����d�?�3�3�4���e�U�l�#�
��v�T�"��	
�����H�H���8�#�#�U�3�Z�0���
�E��
����8�6�
��sK#��
�K�\8�8�
�
�4 �
�����$��[ &�[ &�@A26��.�5��*�
K� 	r)

Youez - 2016 - github.com/yon3zu
LinuXploit