HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/mercurial/ui.pyc

x7_c@@sddlmZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZddl
mZddlmZmZmZmZmZmZejZidd6d	d
6dd6d
d6ZdefdYZdefdYZiZdZedddZedddZdefdYZ e!a"dZ#dS(i(tabsolute_importNi(t_(thex(tconfigterrort	formattertprogresstscmutiltutils# example user config (see 'hg help config' for more info)
[ui]
# name and email, e.g.
# username = Jane Doe <jdoe@example.com>
username =

[extensions]
# uncomment these lines to enable some popular extensions
# (see 'hg help extensions' for more info)
#
# pager =
# color =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-push = 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-push = 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)

[extensions]
# uncomment these lines to enable some popular extensions
# (see 'hg help extensions' for more info)
#
# blackbox =
# color =
# pager =tglobaltuicB@seZd>dZdZdZdZdZd>ed>d>dZ	d>d>dZ
dZdZd	d
Z
dZedZd>ed
Zd>edZd>edZeedZd>edZdedZd>edZedZedZeedZedZd>dZdZdZd>dZej dZ!eeedZ"dZ#d Z$d!Z%d"Z&d#Z'd$Z(d%Z)d&Z*d'Z+d	d(Z,d)d*Z-e.d+Z/dd,Z0d>d>d-Z1d.Z2d/Z3d0Z4d1Z5d>d>d>d2Z6d>d>d>d>d3Z7d>ed4Z8d5Z9ej d6Z:d7Z;d	d	d>d8Z<d9Z=d:Z>d;d>d<Z?d=Z@RS(?cC@sg|_g|_d|_t|_|_|_|_t	|_
tj|_tj|_
tj|_t|_t|_t	|_t|_|rZ|j|_|j|_|j|_|j
j|_
|jj|_|jj|_|jj|_|jj|_|j|_|j|_|j|_|j|j|_nitj|_tj|_tj|_tj|_x't j!D]}|j"|dt	qWt#j$|_dS(Nttrust(%t_bufferst
_bufferstatestNonet_bufferapplylabelstFalsetquiettverboset	debugflagt
tracebackflagtTruet_reportuntrustedRt_ocfgt_tcfgt_ucfgtsett_trustuserst_trustgroupst	callhookstinsecureconnectionstfouttferrtfintcopytenviront	fixconfigthttppasswordmgrdbtsyststdouttstderrtstdintosRtrcpatht
readconfigturlreqthttppasswordmgrwithdefaultrealm(tselftsrctf((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt__init___sB						
cC@s
|j|S(N(t	__class__(R2((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR%scC@s,|jr|jjntj|_dS(s;Clear internal state that shouldn't persist across commandsN(t_progbart
resetstateR0R1R((R2((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR8s	cC@stj|||S(N(R(R2ttopictopts((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRscC@stj|}tj|r"tS|j|j}}d|ksMd|krQtStj|j}tj|j	}||ks||ks|tjkrtS|j
r|jtd|||fnt
S(Nt*s6not trusting file %s from untrusted user %s, group %s
(RtfstattisownerRRRtusernametst_uidt	groupnametst_gidRtwarnRR(R2tfpR4tstttusersttgroupsR	tgroup((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt_trusteds*	c	C@skyt|}Wntk
r0|s*dSnXtj}|pX|pX|j||}y*|j||d|d||jWn?tjk
r}	|rn|jt	dt
|	nX|jr0x,dD]$}
|
|d
kr|d
|
=qqWx+|jdD]\}
}|d|
=qWn|jdrmx+|jdD]\}
}|d|
=qOWn|jdrx+|jdD]\}
}|d|
=qWn|jdrx+|jdD]\}
}|d|
=qWn|r|j
j||j
j|jn|jj||jj|j|dkrWtjjd}n|jd|dS(Ntsectionstremapsignored: %s
tdebugtfallbackencodingRtslashtlogtemplatetstatuscopieststylet	tracebackRR
tdefaultstaliastrevsetaliast
templatealiast~troot(	RKRLRRMRNRORPRQR(topentIOErrorRRHtreadtcloseRtConfigErrorRBRtstrtplaintitemsRtupdateRRRR-tpatht
expanduserR'(R2tfilenameRWRRIRJRCtcfgttrustedtinsttktv((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR/sP
!
c	C@sB|dkr8|ptj}x|j|j|jfD]}x|jdD]\}}d|krkqMn|swqMnd|kr|jtd|||j	d|f|j
dd}ntj|}tj
|rtjj|rtjjtjj||}n|jd||qMWq7Wn|dkr|jdd|_|jpq|jdd|_|jo|jdd	|_|jr|jrt|_|_n|jp|jdd
t|_|jddt|_n|dkr>|jj|jdd
|jj|jddndS(Ntpathst:s%%s((deprecated '%%' in path %s=%s from %s)
t%R
RKRRtreport_untrustedRQRetuserstgroups(NRi(NR
(NRe(RR-tgetcwdRRRR_RBRtconfigsourcetreplaceRt
expandpatht	hasschemeRatisabstnormpathtjoinRt
configboolRRRRRRRRR`t
configlistR(R2RWtsectiontctntp((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR's8#$cC@s:|jj|||jj|||jj||fS(N(RtbackupRR(R2Rytitem((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytbackupconfigscC@s@|jj|d|jj|d|jj|ddS(Niii(RtrestoreRR(R2tdata((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt
restoreconfig	stcC@sMx6|j|j|jfD]}|j||||qW|jd|dS(NRy(RRRRR'(R2RytnametvaluetsourceRd((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt	setconfigscC@s|r|jp|jS(N(RR(R2t	untrusted((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt_datascC@s|j|j||pdS(Ntnone(RR(R2RyRR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRpsc	C@st|tr|}n	|g}xH|D]:}|j|j||d}|dk	r(|}Pq(q(W|}|jr|r|jrx[|D]P}|jj||}|dk	r||kr|jd|||fqqWn|S(Ns3ignoring untrusted configuration option %s.%s = %s
(	t
isinstancetlistRtgetRRRRRK(	R2RyRtdefaultRt
alternatesR{Rtuvalue((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRs 		

	cC@sz|j|}|j|||}|jr|r|jr|jj||}|dk	r||kr|jd|||fqni}d|}	xC|j|D]2\}
}|
j|	r|||
t	|	<qqW|jrp|rp|jrpxt|jD]c\}
}|jj|d||
f}|dk	r||kr|jd|||
|fqqWn||fS(sGet 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.
        s3ignoring untrusted configuration option %s.%s = %s
s%s:s%s:%ss6ignoring untrusted configuration option %s:%s.%s = %s
N(
RRRRRRRKR_t
startswithtlen(R2RyRRRRtmainRtsubtprefixRgRh((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytconfigsuboptions/s&
	
	cC@s|j||||}|dkr(dStjj|sGd|kr|j|||}d|krtjj|jdd}tjj|tjj	|}qn|S(sEget a path config item, expanded relative to repo root or config files://RjiN(
RRR-RaRtRptdirnametrsplitRvRb(R2RyRRRRhR3tbase((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt
configpathPs'cC@s|j||d|}|dkr(|St|tr;|Stj|}|dkr{tjtd|||fn|S(sPparse a configuration element as a boolean

        >>> u = ui(); s = 'foo'
        >>> u.setconfig(s, 'true', 'yes')
        >>> u.configbool(s, 'true')
        True
        >>> u.setconfig(s, 'false', 'no')
        >>> u.configbool(s, 'false')
        False
        >>> u.configbool(s, 'unknown')
        False
        >>> u.configbool(s, 'unknown', True)
        True
        >>> u.setconfig(s, 'invalid', 'somevalue')
        >>> u.configbool(s, 'invalid')
        Traceback (most recent call last):
            ...
        ConfigError: foo.invalid is not a boolean ('somevalue')
        s%s.%s is not a boolean ('%s')N(	RRRtboolRt	parseboolRR\R(R2RyRRRRhtb((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRw\scC@sp|j||d|}|dkr(|Syt|SWn3tk
rktjtd|||fnXdS(s
parse a configuration element as an integer

        >>> u = ui(); s = 'foo'
        >>> u.setconfig(s, 'int1', '42')
        >>> u.configint(s, 'int1')
        42
        >>> u.setconfig(s, 'int2', '-42')
        >>> u.configint(s, 'int2')
        -42
        >>> u.configint(s, 'unknown', 7)
        7
        >>> u.setconfig(s, 'invalid', 'somevalue')
        >>> u.configint(s, 'invalid')
        Traceback (most recent call last):
            ...
        ConfigError: foo.invalid is not an integer ('somevalue')
        s%s.%s is not an integer ('%s')N(RRtintt
ValueErrorRR\R(R2RyRRRRh((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt	configint|s
icC@s|j||}|dkr:t|ts1|S|}nytj|SWn6tjk
rtjt	d|||fnXdS(sparse 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 = 'foo'
        >>> u.setconfig(s, 'val1', '42')
        >>> u.configbytes(s, 'val1')
        42
        >>> u.setconfig(s, 'val2', '42.5 kb')
        >>> u.configbytes(s, 'val2')
        43520
        >>> u.configbytes(s, 'unknown', '7 MB')
        7340032
        >>> u.setconfig(s, 'invalid', 'somevalue')
        >>> u.configbytes(s, 'invalid')
        Traceback (most recent call last):
            ...
        ConfigError: foo.invalid is not a byte quantity ('somevalue')
        s#%s.%s is not a byte quantity ('%s')N(
RRRR]Rt	sizetointRt
ParseErrorR\R(R2RyRRRR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytconfigbytess	c@sfdfdfd|j||d|}|dkrf|p`g}nt|tr|jd}|dkr|pg}qn|S(sparse a configuration element as a list of comma/space separated
        strings

        >>> u = ui(); s = 'foo'
        >>> u.setconfig(s, 'list1', 'this,is "a small" ,test')
        >>> u.configlist(s, 'list1')
        ['this', 'is', 'a small', 'test']
        c@s$t}xF|t|krN||js;||dkrNt}|d7}q	W|t|krnd||fS|r|jdn||dkr|dr||dfS||dkr|dddkr|dd |||d<||dfS|dc||7<||dfS(Nt,iRt"is\(RRtisspaceRRtappend(tpartststoffsett
whitespace(t_parse_plaint_parse_quote(s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRs5
$c@sN|t|kr||dkr|jd|d7}x@|t|kr{||jsn||dkr{|d7}q<W||fSx|t|kr&||dkr&||dkr|dt|kr||ddkr|d7}|dcd7<n|dc||7<|d7}qW|t|kr|d}|s\d|d<n)d|d|d<|d }|j|d||fS|d7}x0|t|kr||d	kr|d7}qW|t|kr4|dt|kr$||dkr$|dcd7<|d7}qA|jdn
d||fS||fS(
NRRiRs\iit (RR(RRRtextendR(RRRt
real_parts(t_configlistR(s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRs@"

%
%&





%&

c@s\|jd}|sgSdgd}}}x%|rW||||\}}}q3W|S(Ns ,Ri(trstrip(RtparserRR(R(s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRs	Rs ,
N(RRRt
basestringtlstrip(R2RyRRRtresult((RRRs0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRxs
+	cC@s|j|j||S(N(Rthasitem(R2RyRR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt	hasconfigscC@s||j|kS(s&tell whether section exists in config.(R(R2RyR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pythas_sectionscC@s|j|j|}|rci}x-|D]%\}}d|kr+|||<q+q+W|j}n|jr|r|jrx[|jj|D]D\}}|jj|||kr|jd|||fqqWn|S(NRjs3ignoring untrusted configuration option %s.%s = %s
(RR_RRRRRRK(R2RyRt	ignoresubR_tnewitemsRgRh((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytconfigitemss	cc@s[|j|}xE|jD]7}x.|j||D]\}}|||fVq5WqWdS(N(RRIR(R2RRdRyRR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt
walkconfig'scC@s`dtjkr"dtjkr"tStjjddjjd}|r\|r\||kStS(s'is 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
        - True otherwise
        tHGPLAINt
HGPLAINEXCEPTRR(R-R&RRtstriptsplitR(R2tfeaturet
exceptions((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR^-s$
cC@sztjjd}|dkrZ|jdddg}|dk	rZtjj|}qZn|dkr{tjjd}n|dkr|jddr|jt	ddd}n|dkr|j
ry7d	tjt
jf}|jt	d
|Wqtk
rqXn|sHtjt	ddt	d
nd|krvtjt	dt|n|S(sAReturn 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 ui.askusername is True, ask the user, else use
        ($LOGNAME or $USER or $LNAME or $USERNAME) + "@full.hostname".
        tHGUSERR
R>R	tEMAILtaskusernamesenter a commit username:Rs%s@%ss&no username found, using '%s' instead
sno username suppliedthints+use 'hg config --edit' to set your usernames
susername %s contains a newline
N(R-R&RRRRat
expandvarsRwtpromptRtinteractiveRtgetusertsockettgetfqdnRBtKeyErrorRtAborttrepr(R2R	((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR>Cs,
cC@s|jstj|}n|S(s>Return a short representation of a user name or email address.(RRt	shortuser(R2R	((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRcs	cC@sy#|jj|}|r"|jSWntjk
r9nX|r}y#|jj|}|rb|jSWq}tjk
ryq}Xn|S(s:Return repository location relative to cwd or from [paths](RitgetpathtrawlocRt	RepoError(R2tlocRR|((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRriscC@s
t|S(N(Ri(R2((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRi|scC@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(RRRR(R2Rtsubproctlabeled((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt
pushbufferscC@sL|jj|jr-|jdd|_n	d|_dj|jjS(s2pop the last buffer and return the buffered outputiiRN(RtpopRRRvR(R2((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt	popbuffers

		cO@sl|jr=|jdtr=|jdjd|Dn+|jx|D]}|jj|qNWdS(swrite args to output

        By default, this method simply writes to the buffer or stdout,
        but extensions or GUI tools may override this method,
        write_err(), popbuffer(), and label() to style output from
        various parts of hg.

        An optional keyword argument, "label", can be passed in.
        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.
        Rics@s|]}|VqdS(N((t.0ta((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pys	<genexpr>sN(RRRRt
_progclearR"twrite(R2targsR:R((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRs
!

cO@s|jy|jr7|jddr7|j||St|jdts\|jjnx|D]}|jj|qcWt|jdts|jjnWn:tk
r}|j	t	j
t	jt	jfkrqnXdS(Niitclosed(
RRRtgetattrR"RtflushR#RYterrnotEPIPEtEIOtEBADF(R2RR:RRf((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt	write_errs

!cC@sZy|jjWnttfk
r*nXy|jjWnttfk
rUnXdS(N(R"RRYRR#(R2((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRscC@s&|jddtrtStj|S(NR
tnontty(RwRRtisatty(R2tfh((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt_isattysc	C@stddg}iddgd6}||jkrJtd|nt||}||krytd|n|jrdSd}|jddd}||kr|}n|}|jdd|d}||kr|}n|dk	rN||krN|dk	r.|jtd	|fqN|jtd
||fn|dk	r||kr|jtd|||fn|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 exemple:
        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 interfacesR
t	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	frozensettkeysRR^RRRBR(	R2RtalldefaultstfeatureinterfacestavailableinterfacestdefaultinterfacetitchoseninterfaceR4((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRs>

		cC@s5|jddd}|dkr1|j|jS|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()'.
        R
RN(RwRRR$(R2R((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRscC@sEdtjkr;yttjdSWq;tk
r7q;XntjS(s-how wide is the terminal in columns?
        tCOLUMNS(R-R&RRRt	termwidth(R2((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR.s
cC@sE|jrtS|jddd}|dkrA|j|jS|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()'.
        R
t	formattedN(R^RRwRRR"(R2R((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR8scC@s|j|jr@yddl}|jWq@tk
r<q@Xn|j|dttj}tj	}|jt_|j
t_	td}|t_|t_	tj
dkr|r|ddkr|d }n|S(NiRRs
is
(RR$treadlinetread_history_filet	ExceptionRRR)R,R*R"t	raw_inputR-tlinesep(R2RRtoldintoldouttline((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt	_readlineTs"
				%
tycC@s|js,|j|d|p!dd|SyW|j|j|d}|sY|}n|jddr~|j|dn|SWntk
rtjnXdS(shPrompt user with msg, read response.
        If ui is not interactive, the default is returned.
        RRs
s	ui.promptR
t
promptechoN(RRRtlabelRwtEOFErrorRtResponseExpected(R2tmsgRtr((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRvs	
cC@stjd|}|jd}g|jdjdD]}|jd^q:}|g|D]8}||jddj|jdddf^q_fS(s1Extract 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("awake? $$ &Yes $$ &No")
        ('awake? ', [('y', 'Yes'), ('n', 'No')])
        >>> ui.extractchoices("line\nbreak? $$ &Yes $$ &No")
        ('line\nbreak? ', [('y', 'Yes'), ('n', 'No')])
        >>> ui.extractchoices("want lots of $$money$$?$$Ye&s$$N&o")
        ('want lots of $$money$$?', [('s', 'Yes'), ('o', 'No')])
        s(?s)(.+?)\$\$([^\$]*&[^ \$].*)iis$$Rt&R(tretmatchRGRRtindextlowerRq(RtmR	R|tchoicesR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytextractchoicess4cC@s|j|\}}g|D]\}}|^q}xXtr|j|||}|j|krx|j|jS|jtdq7WdS(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(RRRRRRR(R2RRR	RR
tttresps((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytpromptchoices	cC@s|js|Sy^|j|j|p.tdd|jddr`|jjjdStjdSWnt	k
rt
jnXdS(Ns
password: s	ui.promptR
Rs
R(RRRRRwR$RRtgetpassRRR(R2RR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRs%
cO@s:|js6|jddd|d<|j||ndS(sqwrite status message to output (if ui.quiet is False)

        This adds an output label of "ui.status".
        RRs
 ui.statusN(RRR(R2R	R:((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytstatuss	cO@s.|jddd|d<|j||dS(sewrite warning message to output (stderr)

        This adds an output label of "ui.warning".
        RRs ui.warningN(RR(R2R	R:((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRBscO@s:|jr6|jddd|d<|j||ndS(sfwrite note to output (if ui.verbose is True)

        This adds an output label of "ui.note".
        RRs ui.noteN(RRR(R2R	R:((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytnotes	cO@s:|jr6|jddd|d<|j||ndS(srwrite debug message to output (if ui.debugflag is True)

        This adds an output label of "ui.debug".
        RRs	 ui.debugN(RRR(R2R	R:((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRKs	c	C@sidd6dd6}|dk	r0|j|n|}tjdd|ddd|ddt\}}z:tj|d}	|	j||	ji|d	6}
d
|kr|
jit	|d
d6nx6dD].}||kr|
ji||d6PqqW|r&|
ji|d6n|rC|
ji|d6n|j
}|jd||fd|
dtj
dtdt|}	|	j}
|	jWdtj|X|
S(NteditorRs.txttsuffixshg-t-RtwRttransplant_sourcet
HGREVISIONsintermediate-sourceRt
rebase_sourcet
HGEDITFORMt
HG_PENDINGs%s "%s"R&tonerrt	errprefixsedit failed(sintermediate-sourceRR(RR`ttempfiletmkstempRR-tfdopenRR[Rt	geteditortsystemRRRRXRZtunlink(R2RR	textrateditformtpendingtextra_defaultstfdRR4R&RRR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytedits@



!
cC@sV|j}td|jDr+|}ntj|d|d|d|d|d|S(sexecute shell command with appropriate output stream. command
        output will be redirected if fout is not stdout.
        cs@s|]}|dVqdS(iN((RR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pys	<genexpr>sR&tcwdR"R#tout(R"tanyRRR((R2tcmdR&R0R"R#R1((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR(s
		cC@s|js|r|dkr*tj}nt|ddd}|dk	rtj|d}tj|d}tj|d|d}|jddj	|d dj	|dj	|qtj
|d|d|d}|jdj	|n|jp
|S(	sprint 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):
RiN(RRR)texc_infoRRQt	format_tbtformat_exception_onlyRRvtformat_exception(R2texctforceR4tcausetbtexctbtexconlytoutput((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRQs	!cC@sgtjdkrd}nd}tjjdpf|jddpftjjdpftjjd|S(	sreturn editor to usetplan9tEssensible-editortHGEDITORR
RtVISUALtEDITOR(R)tplatformR-R&RR(R2R((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR'-s	cC@sE|js7|js7|jddts7tj|r;dSt|S(s,setup the progbar singleton to the ui objectRtdisableN(RRRwRRtshouldprintRt
getprogbar(R2((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR7;s
cC@sEdt|krdS|jdk	rA|jjrA|jjndS(s:clear progress bar output if any. use it before any outputR7N(tvarsR7Rtprintedtclear(R2((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRDsc	C@s|jdk	r7|jj||d|d|d|n|dksV|jddrZdS|rmd|}n|rd|}n|rd||}|jd	||||||fn|jd
||||fdS(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~tunitttotalRRKNRgY@s%s:%s %s/%s%s (%4.2f%%)
s%s:%s %s%s
(R7RRRwRK(R2R9tposR~RKRLtpct((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRKs


	cO@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((R2tserviceR	R:((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytloglscC@s|S(s%style msg based on supplied label

        Like ui.write(), this just returns msg unchanged, but extensions
        and GUI tools can override it to allow styling output without
        writing it.

        ui.write(s, 'label') is equivalent to
        ui.write(ui.label(s, 'label')).
        ((R2R	R((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRxs
icC@s|jdds8|dk	r8|jd|r8dSnd|}|d7}|jrtj|||j|j|jdd|djtj	|fnlt
j}t
j|d	}|j
d
|f||dd!|jdd
|||dd!d}}dS(sissue a developer warning message

        Use 'stacklevel' to report the offender some layers further up in the
        stack.
        tdevelsall-warningsNsdevel-warn: it	develwarns	%s at:
%sRis%s at: %s:%s (%s)
i(RwRRRtdebugstacktraceR#R"RPRvtgetstackframestinspecttcurrentframetgetouterframesR(R2R	t
stacklevelRtcurframetcalframe((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRRs 

	#	cC@sS|jddp!|jdds(dS|d|7}|j|dddddS(	sissue a deprecation warning

        - msg: message explaining what is deprecated and how to upgrade,
        - version: last version where the API will be supported,
        RQsall-warningssdeprec-warnNsF
(compatibility will be dropped after Mercurial-%s, update your code.)RXiR(RwRR(R2R	tversion((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt
deprecwarnsN(At__name__t
__module__RR5R%R8RRHRR/R'RRRRRpRRRRwRRRxRRRRR^R>RRrRt
propertycacheRiRRRRRRRRRRRRtstaticmethodRRRRRBRRKR/R(RQR'R7RRRPRRRR\(((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR
^sv1				0%			! !X	 		
					G		
	"
					)
			!		RicB@s#eZdZdZddZRS(sRepresents a collection of paths and their configs.

    Data is initially derived from ui instances and the config files they have
    loaded.
    cC@sztj|xf|jddtD]O\}}|s;q#n|jd|\}}t||d|d|||<q#WdS(NRiRRt
suboptions(tdictR5RRRRa(R2R
RRR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR5s
"cC@s|dkrt|sd}n!t|ttfs<|f}nx1|D])}y||SWqCtk
rkqCqCXqCWdS|s~dSy||SWnUtk
rytddd|SWqtk
rtjt	d|qXnXdS(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((
RRttupleRRRaRRRR(R2RRRg((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRs*
	



N(R]R^t__doc__R5RR(((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRis	
c@sfd}|S(sDecorator 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(tfunc(tattrtoption(s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytregisters((RhRgRi((RgRhs0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt
pathsuboptionstpushurltpushloccC@sotj|}|js6|jtd|jdS|jre|jtd|jd|_nt|S(Ns'(paths.%s:pushurl not a URL; ignoring)
s:("#fragment" in paths.%s:pushurl not supported; ignoring)
(	RturltschemeRBRRRtfragmentR](R
RaRtu((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytpushurlpathoptions		tpushrevcC@s|S(N((R
RaR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pytpushrevpathoptionsRacB@s5eZdZdddZdZedZRS(s4Represents an individual path and its configuration.cC@s-|stdntj|}d}|jrH|j}d|_n||_||_||_||_t||_	|r|j
r|j|j	rtd|n|pi}xhtj
D]Z\}\}}	||krt||dqn|	||||}
t|||
qWdS(sConstruct 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 defineds1location is not a URL or path to a local repo: %sN(RRRmRRotbranchRRR]RRnt_isvalidlocalpathRet	iteritemstsetattr(R2R
RRRaRpRtt	suboptionRgRfR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyR5s,						$
cC@stjjtjj|dS(sReturns 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-RatisdirRv(R2Ra((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRu<scC@sUi}xHtjD]:\}\}}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(ReRvRR(R2tdtsuboptRgt_funcR((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRaCsN(R]R^RdRR5RutpropertyRa(((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRa	s0	cC@s"tdkrtj|antS(N(t_progresssingletonRRtprogbar(R
((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyRGTs($t
__future__RRRRUR-RRR)R$RQti18nRtnodeRRRRRRRRR0tsamplehgrcstobjectR
RbRiReRjRqRsRaRR~RG(((s0/usr/lib/python2.7/dist-packages/mercurial/ui.pyt<module>s>.		

O6	I