HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/self/root/usr/lib64/python2.7/site-packages/mercurial/ui.pyc
�
1�3\c@@saddlmZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlmZddlmZddlmZmZmZmZmZmZmZmZmZmZmZddlmZm Z m!Z!ej"Z"dj#d	�e$ej%e&d
��D��Z'dZ(idd
6dd6dd6dd6Z)d�Z*d�Z+de,fd��YZ-d�Z.e,�Z/gZ0de,fd��YZ1de2fd��YZ3iZ4d�Z5e5dd�d ��Z6e5d!d!�d"��Z7d#e,fd$��YZ8e9a:d%�Z;d&�Z<dS('i(tabsolute_importNi(t_(thex(tcolortconfigtconfigitemstencodingterrort	formattertprogresstpycompattrcutiltscmutiltutil(tdateutiltprocutilt
stringutiltcc@s!|]}|j�s|VqdS(N(tisalnum(t.0tc((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pys	<genexpr>0sisP
[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

[commands]
# Grep working directory by default.
grep.all-files = True
# Make `hg status` emit cwd-relative paths by default.
status.relative = yes
# 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

[diff]
git = 1
showfunc = 1
word-diff = 1
s�# 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 these lines to enable some popular extensions
# (see 'hg help extensions' for more info)
#
# churn =
tusers�# 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>
tcloneds�# 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>
tlocals�# 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 these lines to enable some popular extensions
# (see 'hg help extensions' for more info)
#
# blackbox =
# churn =
tglobalcC@stjtj|�S(N(R
trapplytstrurl(t
maybebytes((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt_maybestrurl�scC@stjtj|�S(N(R
Rtbytesurl(tmaybestr((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt_maybebytesurl�sthttppasswordmgrdbproxycB@s2eZdZd�Zd�Zd�Zd�ZRS(s)Delays loading urllib2 until it's needed.cC@s
d|_dS(N(tNonet_mgr(tself((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt__init__�scC@s(|jdkr!tj�|_n|jS(N(R"R!turlreqthttppasswordmgrwithdefaultrealm(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt_get_mgr�scC@s4|j�jt|�t|�t|�t|��S(N(R'tadd_passwordR(R#trealmturisRtpasswd((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR(�scC@s.|j�}t|jt|�t|���S(N(R'Rtfind_user_passwordR(R#R)turitmgr((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR,�s(t__name__t
__module__t__doc__R$R'R(R,(((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR �s
			cG@s
tj�dS(N(RtSignalInterrupt(targs((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt
_catchterm�stuicB@s�eZdUd�Zed��Zd�Zd�Zd�Ze	j
d��Ze	j
d��Zd�Z
d�ZdUedUdUd	�ZdUdUd
�Zd�Zd�Zd
d�Zd�Zed�Zeed�Zeed�Zeed�Zeed�Zeed�ZedUed�Zeed�Zeed�Zeed�Z eed�Z!ed�Z"ed�Z#eed�Z$ed�Z%dUd�Z&ed �Z'd!�Z(dUd"�Z)e*j+d#��Z,eeed$�Z-d%�Z.d&�Z/d'�Z0d(�Z1d)�Z2d*�Z3d+�Z4d,�Z5d-�Z6d.�Z7d/�Z8d0�Z9dUd1�Z:e;d2��Z<d3�Z=d4�Z>d5�Z?d6�Z@d7�ZAd8�ZBd9d:�ZCeDd;��ZEd<d=�ZFdUdUd>�ZGd?�ZHd@�ZIdA�ZJdB�ZKdC�ZLdUdUdUdUdUdD�ZMdUdUdUdUdUdE�ZNdF�ZOdUedG�ZPdH�ZQe*j+dI��ZRdJ�ZSd
d
dUdK�ZTd
dUdL�ZUdM�ZVdN�ZWdOdUdP�ZXdQdR�ZYdS�ZZe	j
d
dT��Z[RS(VcC@s�g|_g|_d|_t|_|_|_|_t	|_
tj|_
tj�|_tj�|_tj�|_t�|_t�|_t	|_t|_t|_d|_i|_i|_t|_|r�|j|_|j|_|j|_|j|_|j |_ |j!|_!|j"|_"|jj#�|_|jj#�|_|jj#�|_|jj#�|_|jj#�|_|j$|_$|j|_|j|_|j|_|jj#�|_|jj#�|_|j%�|j&|_&|j'|_'nrt(j)|_t(j*|_t(j+|_t|_t|_ t|_!t|_"t,j$|_$t-�|_&t.j/t0�|_'|j1dd�}d|kr�|j$|_2n@i|_2x4|D],}||j$kr�|j$||j2|<q�q�WdS(s�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.
        texperimentaltexportableenviront*N(3t_bufferst
_bufferstatesR!t_bufferapplylabelstFalsetquiettverboset	debugflagt
tracebackflagtTruet_reportuntrustedRt	coreitemst_knownconfigRt_ocfgt_tcfgt_ucfgtsett_trustuserst_trustgroupst	callhookstinsecureconnectionstlogblockedtimest
_colormodet_terminfoparamst_stylest_uninterruptibletfouttferrtfint_finoutredirectedtpageractivet
_disablepagert_tweakedtcopytenviront	fixconfigthttppasswordmgrdbt
_blockedtimesRtstdouttstderrtstdinRR tcollectionstdefaultdicttintt
configlistt_exportableenviron(R#tsrctallowedtk((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR$�sr											
					
c	C@s�|�}x�tj�D]�\}}|dkrD|j|dt�q|dkr�t�}xY|D]Q\}}}}|jj||||�|jj||||�|j|�q`Wx4|D]}|jd|�q�Wqt	j
d|��qW|j�|S(s,Create a ui and load global and user configstpathttrusttitemstsectionsunknown rctype: %s(Rtrccomponentst
readconfigRARHRFRGtaddR[RtProgrammingErrort_maybetweakdefaults(	tclstutttftsectionsRltnametvaluetsource((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytloads		

cC@s�|jdd�sdS|js.|jd�r2dSt|_tj�}|jdt�xY|D]Q}xH|j|�D]7\}}|j||�st|j	|||d�qtqtWq^WdS(NR5t
tweakdefaultss<tweakdefaults>(
t
configboolRXtplainRARtparsettweakrcRkt	hasconfigt	setconfig(R#ttmpcfgRlRwRx((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRq.s	
cC@s
|j|�S(N(t	__class__(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRYBscC@s)|jr|jj�nt�|_dS(s;Clear internal state that shouldn't persist across commandsN(t_progbart
resetstateR R\(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�Es	cc@sBtj�}z	dVWd|j|dctj�|d7<XdS(Nt_blockedi�(R
ttimerR](R#tkeyt	starttime((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyttimeblockedsectionKs
	c	#@s��jdd�}|r9�jdd�r9�j�}n�jsI|rRdVdS�fd�}tj|��$zt�_dVWdt�_XWdQXdS(s/Mark 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.
        R6tnointerruptsnointerrupt-interactiveonlyNc@s*�jtd���jtd��tS(Nsshutting down cleanly
s4press ^C again to terminate immediately (dangerous)
(twarnRRA((R#(s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�hs
(R|tinteractiveRQRtuninterruptableRAR<(R#tenabledR�((R#s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�Us			cC@stj||||�S(N(R(R#ttopictopts((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRtscC@s�tj|�}tj|�r"tS|j|j}}d|ksMd|krQtStj|j�}tj|j	�}||ks�||ks�|tj�kr�tS|j
r�|jtd�|||f�nt
S(NR8s6not trusting file %s from untrusted user %s, group %s
(R
tfstattisownerRARIRJtusernametst_uidt	groupnametst_gidRBR�RR<(R#tfpRutstttusersttgroupsRtgroup((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt_trustedws*	c	C@s�yt|d�}Wntk
r3|s-dS�nXtj�}|p[|p[|j||�}y*|j||d|d|�|j�WnBtjk
r�}	|r��n|jt	d�t
j|	��nX|j�rax,dD]$}
|
|dkr�|d|
=q�q�Wx(|j
d�D]\}
}|d|
=qWx+|j
d�D]\}
}|d|
=qCWn|jd�r�x+|j
d�D]\}
}|d|
=q�Wn|jd�r�x+|j
d�D]\}
}|d|
=q�Wn|jd�rx+|j
d�D]\}
}|d|
=q�Wn|rD|jj|�|jj|j�n|jj|�|jj|j�|dkr�tjjd�}n|jd|�dS(NtrbRvtremapsignored: %s
tdebugtfallbackencodingR=tslashtlogtemplatetstatuscopieststylet	tracebackR>R5tdefaultstcommandstaliastrevsetaliast
templatealiast~troot(	R�R�R=R�R�R�R�R�R>(topentIOErrorRR�treadtcloseRtConfigErrorR�RRtforcebytestrR}RkRFtupdateRERGR!tosRit
expanduserR[(R#tfilenameR�RjRvR�R�tcfgttrustedtinstRhtv((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRn�sT
$
cC@s]|dkrD|ptj�}x#|j|j|jfD]}x�|jd�D]�\}}d|krkqMn|swqMnd|kr�|jd|�p�d}|jt	d�|||f�|j
dd�}ntj|�}tj
|�r&tjj|�r&tjjtjj||��}n|jd||�qMWq7Wn|dkr|jdd�|_|jp}|jdd	�|_|jo�|jdd
�|_|jr�|jr�t|_|_n|jp�|jdd�|_|jdd�|_|jdd
�|_n|dkrY|jj|jdd��|jj|jdd��ndS(Ntpathst:s%%tnones((deprecated '%%' in path %s=%s from %s)
t%R5R�R>R=treport_untrustedR�RMR�tuserstgroups(NR�(NR5(NR�( R!RtgetcwdRFRGRERktconfigsourceR�RtreplaceR
t
expandpatht	hasschemeR�RitisabstnormpathtjoinRHR|R?R>R=R<RBR@RMRIR�RdRJ(R#R�RlRtntpts((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR[�s<#$cC@s:|jj||�|jj||�|jj||�fS(N(REtbackupRFRG(R#Rltitem((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytbackupconfig�scC@s@|jj|d�|jj|d�|jj|d�dS(Niii(REtrestoreRFRG(R#tdata((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt
restoreconfig�sRcC@sWx6|j|j|jfD]}|j||||�qW|jd|�|j�dS(NRl(RERFRGRHR[Rq(R#RlRwRxRyR�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��scC@s|r|jp|jS(N(RGRF(R#t	untrusted((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt_data�scC@s|j|�j||�S(N(R�Ry(R#RlRwR�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��scC@s2|j||d|d|�}|tkr.dS|S(s+return the plain string version of a configtdefaultR�N(t_configt_unsetR!(R#RlRwR�R�Rx((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�s
	cC@sN|}}|jj|i�j|�}||fg}|dk	r}|j|j�t|j�rq|j�}q�|j}n)d}	|	||f;}	|j|	dd�|tkr|dkr�|}qv|jt	j
krd}d}	|	||f;}	|j|	dd�qv|}nb|dk	rv|jt	j
k	rv||krvd}	|	||tj|�f;}	|j|	dd�nxT|D]L\}
}|j
|�j|
|d�}|dk	r}|}|
}|}Pq}q}W|jrJ|rJ|jrJxa|D]V\}
}|jj|
|�}
|
dk	r�|
|kr�|jd|
||
f�q�q�Wn|S(Ns+accessing unregistered config item: '%s.%s'iswarn-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's3ignoring untrusted configuration option %s.%s = %s
(RDtgetR!textendR�tcallableR�t	develwarnR�RtdynamicdefaultR
tbytestrR�R?RBRGR�(R#RlRwR�R�RxtitemdefaultR�t
alternatestmsgR�R�t	candidatetuvalue((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�sP
			cC@s|j|||d|�}|j|�}i}d|}xC|j|�D]2\}	}
|	j|�rJ|
||	t|�<qJqJW|jr|r|jrxt|j�D]c\}	}
|jj|d||	f�}|dk	r�||
kr�|j
d|||	|f�q�q�Wn||fS(s�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:s%s:%ss6ignoring untrusted configuration option %s:%s.%s = %s
N(RR�Rkt
startswithtlenR?RBRGR�R!R�(R#RlRwR�R�tmainR�tsubtprefixRhR�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytconfigsuboptions3s

	cC@s�|j||||�}|dkr(dStjj|�sGd|kr�|j|||�}d|kr�tjj|jd�d�}tjj|tjj	|��}q�n|S(sEget a path config item, expanded relative to repo root or config files://R�iN(
RR!R�RiR�R�tdirnametrsplitR�R�(R#RlRwR�R�R�Rftbase((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt
configpathNs'cC@s�|j|||d|�}|dkr+|S|tkrK|tkrGtS|St|t�r^|Stj|�}|dkr�tj	t
d�|||f��n|S(s\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')
        R�s%s.%s is not a boolean ('%s')N(R�R!R�R<t
isinstancetboolRt	parseboolRR�R(R#RlRwR�R�R�tb((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR|ZscC@s�|j||||�}|dkr(|Sy||�SWn`ttjfk
r�|dkrptj|j�}ntjt	d�||||f��nXdS(sparse 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')N(
RR!t
ValueErrorRt
ParseErrorR
tsysbytesR/R�R(R#tconvertRlRwR�tdescR�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt
configwith~scC@s|jt|||d|�S(sparse 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')
        tinteger(R�Rc(R#RlRwR�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt	configint�scC@s�|j||||�}|tkrB|tkr9d}n|}nt|t�sU|Sytj|�SWn6tjk
r�tjt	d�|||f��nXdS(s�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')
        is#%s.%s is not a byte quantity ('%s')N(
R�R�R�tbytesR
t	sizetointRR�R�R(R#RlRwR�R�Rx((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytconfigbytes�s		cC@sQ|jtj|||d|�}t|t�r=tj|�S|dkrMgS|S(s�parse 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']
        tlistN(R�Rt	parselistR�R�R!(R#RlRwR�R�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRd�s

cC@sK|j||||�r7|jtj|||d|�S|tkrGdS|S(s�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)
        tdateN(RR�Rt	parsedateR�R!(R#RlRwR�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt
configdate�s
cC@s|j|�j||�S(N(R�thasitem(R#RlRwR�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��scC@s||j|�kS(s&tell whether section exists in config.(R�(R#RlR�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pythas_sectionscC@s�|j|�j|�}|rJg|D]}d|dkr%|^q%}n|jr�|r�|jr�x[|jj|�D]D\}}|jj||�|krv|jd|||f�qvqvWn|S(NR�is3ignoring untrusted configuration option %s.%s = %s
(R�RkR?RBRGRFR�R�(R#RlR�t	ignoresubRktiRhR�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRs,	cc@s[|j|�}xE|j�D]7}x.|j||�D]\}}|||fVq5WqWdS(N(R�RvR(R#R�R�RlRwRx((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt
walkconfigscC@s�dtjkr"dtjkr"tStjjdd�j�jd�}dtjjdd�jd�krz|jd�n|r�|r�||kStS(suis 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
        tHGPLAINt
HGPLAINEXCEPTRt,s+strictflagststrictflags(RRZR<R�tstriptsplittappendRA(R#tfeaturet
exceptions((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR}s$
cC@s�tjjd�}|dkrT|jdd�}|dk	rTtjj|�}qTn|dkrutjjd�}n|dkr�|r�|S|dkr�|jdd�r�|j	t
d�dd�}n|dkr7|j�r7y@dtj
�tjtj��f}|jt
d	�|�Wq7tk
r3q7Xn|satjt
d
�dt
d���nd
|kr�tjt
d�tj|���n|S(s�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.
        tHGUSERR5R�tEMAILtaskusernamesenter a commit username:R�s%s@%ss&no username found, using '%s' instead
sno username suppliedthints+use 'hg config --edit' to set your usernames
susername %r contains a newline
N(RRZR�R!RR�Rit
expandvarsR|tpromptRR�Rtgetusert
strtolocaltsockettgetfqdnR�tKeyErrorRtAbortR
R�(R#tacceptemptyR((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�2s2

cC@s|jstj|�}n|S(s>Return a short representation of a user name or email address.(R>Rt	shortuser(R#R((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRWs	cC@s�y#|jj|�}|r"|jSWntjk
r9nX|r}y#|jj|�}|rb|jSWq}tjk
ryq}Xn|S(s:Return repository location relative to cwd or from [paths](R�tgetpathtrawlocRt	RepoError(R#tlocR�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�]scC@s
t|�S(N(R�(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�pscC@s6|jjg�|jj|||f�||_dS(seinstall 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(R9R
R:R;(R#Rtsubproctlabeled((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt
pushbuffertscC@sL|jj�|jr-|jdd|_n	d|_dj|jj��S(s2pop the last buffer and return the buffered outputi����iRN(R:tpopR;R!R�R9(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt	popbuffer�s

		cC@s$|jr|jrtS|jdkS(scheck if write skips the labelN(R9R;RARNR!(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytcanwritewithoutlabels�scC@s
|jdkS(s.check if write calls with labels are batchabletwin32(RN(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytcanbatchlabeledwrites�sc@sy�jre�jrN|jdd���jdj��fd�|D��qu�jdj|�n�j||�dS(s�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".

        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.
        tlabelRi����c3@s!|]}�j|��VqdS(N(R*(Rta(R*R#(s2/usr/lib64/python2.7/site-packages/mercurial/ui.pys	<genexpr>�sN(R9R;R�R�t_writenobuf(R#R3R�((R*R#s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytwrite�s		*cO@s�|jdkr+tj||j||�n_|}|jdk	rz|jdd�}g|D]}|j||�^qY}n|j||�dS(NR(R*R(RNRt
win32printt_writeR!R�R*(R#R3R�tmsgsR*R+((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR,�s(cO@s�|j�tj�}zFy|jjdj|��Wn"tk
rZ}tj|��nXWd|j	dctj�|d7<XdS(NRt
stdio_blockedi�(
t
_progclearR
R�RRR-R�R�Rt
StdioErrorR](R#R0R�R�terr((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR/�s

cO@s�|j�|jr7|jddr7|j||�n�|jdkrbtj||j||�n_|}|jdk	r�|jdd�}g|D]}|j	||�^q�}n|j||�dS(Ni����iR(R*R(
R2R:R-RNRR.t
_write_errR!R�R*(R#R3R�R0R*R+((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt	write_err�s
(cO@s�y�|jd��pt|jdt�s8|jj�nx|D]}|jj|�q?Wt|jdt�s~|jj�nWdQXWnFtk
r�}|jtj	tj
tjfkr�tj
|��q�nXdS(Ntstdiotclosed(R�tgetattrRRR<tflushRSR-R�terrnotEPIPEtEIOtEBADFRR3(R#R0R�R+R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR5�s
!cC@s�tj�}z�z^y|jj�WnFtk
rk}|jtjtjtjfkrlt	j
|��qlnXWdy|jj�WnFtk
r�}|jtjtjtjfkr�t	j
|��q�nXXWd|jdctj�|d7<XdS(NR1i�(
R
R�RRR:R�R;R<R=R>RR3RSR](R#R�R4((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR:�s!!
cC@s#|jdd�rtStj|�S(NR5tnontty(R|R<Rtisatty(R#tfh((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt_isatty�scC@s
t|_dS(N(RARW(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytdisablepagerscC@s|js|jrdS|jd�r�||jdd�ks�|jdd�s�|jdd|t�s�tjjd�d	ks�|j	�s�|j
�s�|js�d
tj
kr�dS|jddtj�}|s�dSi}x<tj�j�D](\}}|tjkr�|||<q�q�W|jdtj|��|j�|j	�}tjtd�rwtjtjt�n|j||�r�t|_|jdd
|d�|jddtd�|j}||jdd|�kr�t j!|�q�n
|j"�dS(s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-tpagertignoreR5tpaginatesattend-tTERMtdumbs
--debuggersstarting pager for command %s
tSIGPIPEt	formattedR�Rt	pagermode(#RWRVR�RdR|RARRZR�RJR}R9R
tsysargvRRt
fallbackpagertdefaultpagerenvRkR�RtpprintR:R
tsafehasattrtsignalRIR4t	_runpagerR�R<RNRtsetupRC(R#tcommandtpagercmdtpagerenvRwRxtwasformattedtcm((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRDsD
		
		
		c@s��dkrtSt�fd�dD��}tjru|rutj��}|sl|jtd���tS|�nydtj	tj
��d|dddtjd	tjd
tj
dtjdtjtj|����WnJtk
r%}|jtjkr|r|jtd���tS�nXtjtj
j���tjtjj���tj�jj�tj
j��|jtj�r�tj�jj�tjj��n|j���fd
��}tS(s�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.
        tcatc3@s|]}|�kVqdS(N((RR(RT(s2/usr/lib64/python2.7/site-packages/mercurial/ui.pys	<genexpr>[ss|&;<>()$`\"' 	
*?[#~=%s+missing pager command '%s', skipping pager
tshelltbufsizei����t	close_fdsR`R^R_tenvc@sxtjtd�r+tjtjtj�ntj�tjj	��tj�tj
j	���jj��j
�dS(NtSIGINT(R
RPRQR^tSIG_IGNR�tdup2RR^tfilenoR_R`R�twait((RDtstderrfdtstdoutfd(s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt	killpager�s
(R<tanyR
t	iswindowsRtfindexeR�Rt
subprocesstPopenttonativestrtclosefdstPIPER^R_ttonativeenvtshellenvirontOSErrorR;tENOENTR�tdupRaR`R`RBtatexitRA(R#RTR]RZtfullcmdteRe((RTRDRcRds2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRRNs:	"%
cC@stS(N(t_reqexithandlers(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt
_exithandlers�scO@s|jj|||f�|S(szregister a function to run after dispatching a request

        Handlers do not stay registered across request boundaries.(RwR
(R#tfuncR3tkwargs((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRs�sc	C@s�tddg�}iddgd6}||j�krJtd|��nt||�}||krytd|��n|j�s�tjjd�dkr�dSd}|jdd	�}||kr�|}n|}|jdd
|�}||kr�|}n|dk	r`||kr`|dk	r@|j	t
d�|f�q`|j	t
d�||f�n|dk	r�||kr�|j	t
d
�|||f�n|S(sAwhat 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).
        ttexttcursest
chunkselectorsUnknown feature requested %ss1Feature %s does not handle all default interfacesRGRHR5t	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)
N(t	frozensettkeysR�R}RRZR�RR!R�R(	R#RtalldefaultstfeatureinterfacestavailableinterfacestdefaultinterfaceRtchoseninterfaceRu((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR}�s>

$		cC@s2|jdd�}|dkr.|j|j�S|S(s-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()'.
        R5R�N(R|R!RBRT(R#R((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��scC@sLdtjkr;yttjd�SWq;tk
r7q;Xntj|�dS(s-how wide is the terminal in columns?
        tCOLUMNSi(RRZRcR�Rttermsize(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt	termwidth�s
cC@sB|j�rtS|jdd�}|dkr>|j|j�S|S(s*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()'.
        R5RJN(R}R<R|R!RBRR(R#R((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRJ�scC@s5|j|j�oE|j|j�oEtj|j�oEtj|j�}|r�yddl}|jWq�tk
r~t	}q�Xn|j
d���|r�tjt
jd��}t
jdkr+|jd�r+|d }q+nM|jjd�|jj�|jj�}|st�n|jt
j�}WdQX|S(NiR7t s
s
i����(RBRTRRRtisstdintisstdouttreadlinetread_history_filet	ExceptionR<R�RRR
trawinputt	oslineseptendswithR-R:tEOFErrortrstrip(R#tusereadlineR�tline((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt	_readlines*$


	tycC@s�|j�s,|j|d|p!dd�|S|j|dd�|j�yH|j�}|sg|}n|jdd�r�|j|d�n|SWntk
r�tj��nXdS(	shPrompt user with msg, read response.
        If ui is not interactive, the default is returned.
        R�Rs
R*s	ui.promptR5t
promptechoN(	R�R-R,R:R�R|R�RtResponseExpected(R#R�R�tr((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR@s
	
cC@s�tjd|�}|jd�}g|jd�jd�D]}|jd�^q:}d�}|g|D]}||�^qhfS(s4Extract 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)(.+?)\$\$([^\$]*&[^ \$].*)iis$$R�cS@s=|jd�}||d|d!j�|jddd�fS(Nt&iiR(tindextlowerR�(R�tampidx((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytchoicetuplejs(tretmatchR�RR(RtmR�R�tchoicesR�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytextractchoicesSs
4	icC@s�|j|�\}}g|D]\}}|^q}xXtr�|j|||�}|j�|krx|j|j��S|jtd��q7WdS(sePrompt 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.
        sunrecognized response
N(R�RARR�R�R-R(R#RR�R�R�R�Rttresps((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytpromptchoiceos	cC@s�|j�s|Sy�|j|j|p.td�d��|jd��O|jdd�r�|jj�}|sxt�n|j	d�St
j
d�SWdQXWntk
r�tj��nXdS(Ns
password: s	ui.promptR7R5R?s
R(
R�R6R*RR�R|RTR�R�R�tgetpassRR�(R#RR�tl((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��s%	

cO@s:|js6|jdd�d|d<|j||�ndS(sqwrite status message to output (if ui.quiet is False)

        This adds an output label of "ui.status".
        R*Rs
 ui.statusN(R=R�R-(R#R�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytstatus�s	cO@s.|jdd�d|d<|j||�dS(sewrite warning message to output (stderr)

        This adds an output label of "ui.warning".
        R*Rs ui.warningN(R�R6(R#R�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��scO@s.|jdd�d|d<|j||�dS(sawrite error message to output (stderr)

        This adds an output label of "ui.error".
        R*Rs	 ui.errorN(R�R6(R#R�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�scO@s:|jr6|jdd�d|d<|j||�ndS(sfwrite note to output (if ui.verbose is True)

        This adds an output label of "ui.note".
        R*Rs ui.noteN(R>R�R-(R#R�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytnote�s	cO@s:|jr6|jdd�d|d<|j||�ndS(srwrite debug message to output (if ui.debugflag is True)

        This adds an output label of "ui.debug".
        R*Rs	 ui.debugN(R?R�R-(R#R�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��s	c
C@sd|dkr|jd�nidd6dd6}|dk	rq|jd�dk	ra|jd�n|j|�n|}|dkr�d}	n|r�d	|}	n
|d}	d}
|jd
d�r�|}
ntjdd|dd
d|	d|
�\}}zUtj|d�}
|
j	t
j|��|
j�i|d6}d|kri|jit
|d�d6�nx6dD].}||krp|ji||d6�PqpqpW|r�|ji|d6�n|r�|ji|d6�n|j�}|jd||fd|dtjdtd�dd�t|d�}
t
j|
j��}|
j�Wdtj|�X|S( NsAaction is None but will soon be a required parameter to ui.edit()teditorR�s.txttsuffixs>extra.suffix is not None but will soon be ignored by ui.edit()tdiffs.diffs
.%s.hg.txtR6t
editortmpinhgshg-t-tdirtwbRttransplant_sourcet
HGREVISIONsintermediate-sourceRyt
rebase_sourcet
HGEDITFORMt
HG_PENDINGs%s "%s"RZtonerrt	errprefixsedit failedt
blockedtagR�(sintermediate-sourceRyR�(R!R�R�R�R|R
tmkstempR�tfdopenR-R
ttonativeeolR�Rt	geteditortsystemRRRR�t
fromnativeeolR�tunlink(R#RzRtextrateditformtpendingtrepopathtactiontextra_defaultsR�trdirtfdRwRuRZR*R�Rt((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytedit�s\
	

	

!
cC@s�|dkr/|jdt�d}d|}n|j}td�|jD��rZ|}n|j|��&|j|d|d|d|�}	WdQX|	r�|r�dtj	j
|jdd	�d
�tj
|	�f}
|r�d||
f}
n||
��n|	S(s�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.
        i����tunknown_system_cs@s|]}|dVqdS(iN((RR�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pys	<genexpr>
sRZtcwdtoutNs%s %siis%s: %s(R!t	translatet
_keepalnumRRRfR:R�t
_runsystemR�RitbasenameRRtexplainexit(R#tcmdRZR�R�R�R�t	cmdsuffixR�trcterrmsg((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��s
		'"cC@stj|d|d|d|�S(s[actually execute the given shell command (can be overridden by
        extensions like chg)RZR�R�(RR�(R#R�RZR�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�scC@s|js|r|dkr*tj�}nt|ddd�}|dk	r�tj|d�}tj|d�}tj|d|d�}|jddj	|d �dj	|�dj	|��qtj
|d|d|d�}|jtjdj	|���n|jp|S(	s�print exception traceback if traceback printing enabled or forced.
        only to call in exception handler. returns true if traceback
        printed.itcauseiis#Traceback (most recent call last):
Ri����N(
R@R!tsystexc_infoR9R�t	format_tbtformat_exception_onlyR6R�tformat_exceptionRR(R#texctforceR�tcausetbtexctbtexconlytoutput((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�s	!"cC@sCtjdkrd}nd}tjjd�pB|jdd|�S(sreturn editor to usetplan9tEtvitHGEDITORR5R�(R
tsysplatformRRZR�R(R#R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�3s
	cC@sB|js4|js4|jdd�s4tj|�r8dSt|�S(s,setup the progbar singleton to the ui objectR	tdisableN(R=R?R|R	tshouldprintR!t
getprogbar(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�?s
cC@s<t�s
dS|jdk	r8|jjr8|jj�ndS(s:clear progress bar output if any. use it before any outputN(thaveprogbarR�R!tprintedtclear(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR2Hs	c	C@s�|jdk	r7|jj||d|d|d|�n|dksV|jdd�rZdS|rmd|}n|r�d|}n|r�d||}|jd	||||||f�n|jd
||||f�dS(sGshow a progress message

        By default a textual progress bar will be displayed if an operation
        takes too long. 'topic' is the current operation, 'item' is a
        non-numeric marker of the current position (i.e. the currently
        in-process file), 'pos' is the current numeric position (i.e.
        revision, bytes, etc.), unit is a corresponding unit label,
        and total is the highest expected pos.

        Multiple nested topics may be active at a time.

        All topics should be marked closed by setting pos to None at
        termination.
        R�tunitttotalR	R�NR�gY@s%s:%s %d/%d%s (%4.2f%%)
s%s:%s %d%s
(R�R!R	R|R�(R#R�tposR�R�R�tpct((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR	Os


	cC@stj||||�S(s=exists only so low-level modules won't need to import scmutil(RR	(R#R�R�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytmakeprogresspscO@sdS(sEhook for logging facility extensions

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

        *msg should be a newline-terminated format string to log, and
        then any values to %-format into that format string.

        **opts currently has no defined meanings.
        N((R#tserviceR�R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytlogtRcC@s&|jdk	r"tj|||�S|S(sVstyle 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')).
        N(RNR!Rt
colorlabel(R#R�R*((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR*�s
ic	C@s>|jdd�s8|dks1|jd|�r8dSnd|}|d7}|jr�tj|||j|j�|jdd|djtj	|��f�n�t
j�}t
j|d	�}||dd
!\}}}t
j|�t
j|�}}|jd||||f�|jdd||||�d}}dS(s�issue a developer warning message

        Use 'stacklevel' to report the offender some layers further up in the
        stack.
        tdevelsall-warningsNsdevel-warn: iR�s	%s at:
%sRiis%s at: %s:%d (%s)
(R|R!R@R
tdebugstacktraceRSRRR�R�tgetstackframestinspecttcurrentframetgetouterframesR
R�R6(	R#R�t
stacklevelRtcurframetcalframetfnametlinenotfmsg((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��s$

	#	icC@sS|jdd�p!|jdd�s(dS|d|7}|j|d|dd�dS(s�issue a deprecation warning

        - msg: message explaining what is deprecated and how to upgrade,
        - version: last version where the API will be supported,
        R�sall-warningssdeprec-warnNsF
(compatibility will be dropped after Mercurial-%s, update your code.)R�R(R|R�(R#R�tversionR�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt
deprecwarn�scC@s|jS(sWThe environment variables that are safe to export, e.g. through
        hgweb.
        (Re(R#((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR7�sc	c@s�i}z^xR|j�D]D\\}}}|j||�|||f<|j||||�qWdVWdx'|j�D]\}}|j|�qtWd|kr�|jdd�nXdS(s�Context manager for temporary config overrides
        `overrides` must be a dict of the following structure:
        {(section, name) : value}NR5R=Rl(R5R=(RkR�R�R�R[(	R#t	overridesRytbackupsRlRwRxt__R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytconfigoverride�s	N(\R/R0R!R$tclassmethodRzRqRYR�t
contextlibtcontextmanagerR�R�RR�R<RnR[R�R�R�R�R�R�RR�R�R�R|R�R�R�RdRR�RRRR}R�RR�R
t
propertycacheR�R$R&R'R)R-R,R/R6R5R:RBRCRDRRtpropertyRwRsR}R�R�RJR�RtstaticmethodR�R�R�R�R�RR�R�R�R�R�R�R�R�R2R	R�R�R*R�RR7R(((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR5�s�S			
		2'			2$"#%		
											H>		G		
		&									<				!		
	R�cB@s#eZdZd�Zdd�ZRS(s�Represents a collection of paths and their configs.

    Data is initially derived from ui instances and the config files they have
    loaded.
    cC@sztj|�xf|jddt�D]O\}}|s;q#n|jd|�\}}t||d|d|�||<q#WdS(NR�RRt
suboptions(tdictR$RRAR�Ri(R#R5RwR!R�((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR$�s
"cC@s�|dkrt|sd}n!t|ttf�s<|f}nx1|D])}y||SWqCtk
rkqCqCXqCWdS|s~dSy||SWnUtk
r�ytddd|�SWq�tk
r�tjt	d�|��q�XnXdS(sReturn a ``path`` from a string, falling back to default.

        ``name`` can be a named path or locations. Locations are filesystem
        paths or URIs.

        Returns None if ``name`` is not a registered path, a URI, or a local
        path to a repo.
        Rsrepository %s does not existN((
R!R�ttupleR�RRiR�RR R(R#RwR�Rh((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�s*
	



N(R/R0R1R$R!R(((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��s	
c@s��fd�}|S(s�Decorator used to declare a path sub-option.

    Arguments are the sub-option name and the attribute it should set on
    ``path`` instances.

    The decorated function will receive as arguments a ``ui`` instance,
    ``path`` instance, and the string value of this option from the config.
    The function should return the value that will be set on the ``path``
    instance.

    This decorator can be used to perform additional verification of
    sub-options and to change the type of sub-options.
    c@s�|ft�<|S(N(t_pathsuboptions(Rx(tattrtoption(s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytregisters((RRR((RRs2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt
pathsuboptionstpushurltpushloccC@sotj|�}|js6|jtd�|j�dS|jre|jtd�|j�d|_nt|�S(Ns'(paths.%s:pushurl not a URL; ignoring)
s:("#fragment" in paths.%s:pushurl not supported; ignoring)
(	R
turltschemeR�RRwR!tfragmentR�(R5RiRxRs((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytpushurlpathoptions		tpushrevcC@s|S(N((R5RiRx((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pytpushrevpathoption*sRicB@s5eZdZddd�Zd�Zed��ZRS(s4Represents an individual path and its configuration.cC@s+|std��ntj|�}d}|jrH|j}d|_n||_||_||_||_d||_|r�|j	r�|j
|j�r�td|��n|p�i}xhtj�D]Z\}\}}	||kr�t
||d�q�n|	||||�}
t
|||
�q�WdS(s�Construct a path from its config options.

        ``ui`` is the ``ui`` instance the path is coming from.
        ``name`` is the symbolic name of the path.
        ``rawloc`` is the raw location, as defined in the config.
        ``pushloc`` is the raw locations pushes should be made to.

        If ``name`` is not defined, we require that the location be a) a local
        filesystem path with a .hg directory or b) a URL. If not,
        ``ValueError`` is raised.
        srawloc must be defineds%ss1location is not a URL or path to a local repo: %sN(R�R
RR!RtbranchRwRR!Rt_isvalidlocalpathRt	iteritemstsetattr(R#R5RwRRRsRt	suboptionRRxRx((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR$1s,						
$
cC@stjjtjj|d��S(s�Returns True if the given path is a potentially valid repository.
        This is its own function so that extensions can change the definition of
        'valid' in this case (like when pulling from a git repo into a hg
        one).s.hg(R�RitisdirR�(R#Ri((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRascC@sUi}xHtj�D]:\}\}}t||�}|dk	r|||<qqW|S(s{Return sub-options and their values for this path.

        This is intended to be used for presentation purposes.
        N(RRR9R!(R#tdtsuboptRt_funcRx((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRhsN(R/R0R1R!R$RR
R(((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyRi.s0	cC@s"tdkrtj|�antS(N(t_progresssingletonR!R	tprogbar(R5((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR�yscC@s
tdk	S(N(R%R!(((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyR��s(=t
__future__RRaRR;R�R�R�R�RQRRiR�R�ti18nRtnodeRRRRRRRRR	R
RRR
tutilsRRRR%R�tmaptbytechrtrangeR�RtsamplehgrcsRRtobjectR R4R�RvR5R
R�RRRRRiR!R%R�R�(((s2/usr/lib64/python2.7/site-packages/mercurial/ui.pyt<module>s\L
	+
				������6	I