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/extensions.pyc

Xc@@sddlmZddlZddlZddlmZmZddlmZm	Z	m
Z
iZiZiZ
gZedddd	d
ddgZdd
ZdZdZdZdddZdZdZdZdZdZdZdZdZdddZdZ ddZ!dZ"e#dZ$dZ%d Z&d!Z'd"Z(e#d#Z)e*d$Z+d%Z,d&Z-d'Z.dS((i(tabsolute_importNi(t_tgettext(tcmdutilterrortutilthbisectt	bookmarkst
parentrevspectprogresstinterhgtinotifythgciac#@s`rfd}n	d}x8tD]0}t|}|r(||r(||fVq(q(WdS(Nc@sQxJddgD]<}jd||}|dk	r
|jdr
tSq
WdS(Ns%sshgext.%st
extensionst!(tconfigtNonet
startswithtTrue(tnametformattconf(tui(s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytenabled!scS@stS(N(R(R((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt<lambda>'s(t_ordert_extensions(RRRtmodule((Rs8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyR
s	

cC@sd}yt|}Wn^tk
rtxNtjD]<\}}|jd|sc|jd|r1|}Pq1q1WnX|st|n|S(s'return module with given extension namet.t/N(RRtKeyErrort	iteritemstendswith(Rtmodtktv((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytfind-s
&cC@s|jdd}tjtj|}tjj|rtjj|\}}tj	||g\}}}tj
||||Sytj||SWn+tk
r}|j
s||_
nnXdS(NRR(treplaceRtnormpatht
expandpathtostpathtisdirtsplittimptfind_moduletload_moduletload_sourcetIOErrortfilename(R)tmodule_nametdtftfdtfpathtdesctexc((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytloadpath;s	cC@sCt|}|jd}x!|dD]}t||}q&W|S(s#import and return the <name> moduleRi(t
__import__R+tgetattr(RR!t
componentstcomp((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt_importhKs
cC@s|rt|d|}nytd|}Wntk
r}|rc||d|d|nytd|}Wqtk
r}|r||d||nt|}qXnX|S(Nshgext.%sshgext3rd.%s(R9R>tImportError(RR)t
reportfuncR!terr((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt
_importextSscC@s4|jd|||f|jr0|jndS(Ns$could not import %s (%s): trying %s
(tdebugt	debugflagt	traceback(RRAtfailedtnext((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt_reportimporterrorgs		cC@s|jds|jdr+|d}n|}|tkrAdS|tkrUt|Sdt|<t||tt|}t|dd}|rtj	|dtj	ddkr|j
td||fdS|t|<tj
|x'tj|gD]}|dtqW|S(	Nshgext.shgext/itminimumhgversionitnsP(third party extension %s requires version %s or newer of Mercurial; disabling)
tloaded(Rt_builtinRRRBtbindRHR;RtversiontupletwarnRRtappendt_aftercallbackstgetR(RRR)t	shortnameR!tminvertfn((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytloados&

*

cC@s-tt|dd}|r)||ndS(Ntuisetup(R;RR(RRRW((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt_runuisetupscC@sdtt|dd}|r`y||Wq`tk
r\|jjdkrRn|q`XndS(Ntextsetupi(R;RRt	TypeErrort	func_codetco_argcount(RRRY((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt_runextsetups
cC@s|jd}tt}x|D]\}}|r[|ddkr[|dt|<q"q[nyt|||Wq"tk
rq"tk
r}|r|jtd|||fn|jtd||f|j	q"Xq"Wxt|D]}t
||qWxt|D]}t||qWxBtD]:}|t
krOq7nxt|D]}|dtqZWq7WtjdS(NR
iRis.*** failed to import extension %s from %s: %s
s&*** failed to import extension %s: %s
RK(tconfigitemstlenRt_disabledextensionsRVtKeyboardInterruptt	ExceptionRORRERXR]RQRtFalsetclear(RtresulttnewindexRR)tinstRSRU((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytloadalls8	

cC@s9|tkr|dtntj|gj|dS(sRun the specified function after a named extension is loaded.

    If the named extension is already loaded, the callback will be called
    immediately.

    If the named extension never loads, the callback will be called after
    all extensions have been loaded.

    The callback receives the named argument ``loaded``, which is a boolean
    indicating whether the dependent extension actually loaded.
    RKN(RRRQt
setdefaultRP(t	extensiontcallback((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytafterloadeds
c@s(tstfd}|S(sPartial function application

      Returns a new function that is the partial application of args and kwargs
      to func.  For example,

          f(1, 2, bar=3) === bind(f, 1)(2, bar=3)c@s||S(N((tatkw(targstfunc(s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytclosures(tcallabletAssertionError(RpRoRq((RoRps8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyRMscC@sVt|d|_t|d|_|jjt|di||_||_dS(s.Copy and add some useful attributes to wrappert
__module__t__doc__t__dict__N(R;RtRuRvtupdatet	_origfunct_unboundwrapper(twraptorigfntunboundwrapper((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt_updatewrappers
	c
C@st|sttj||\}}x0|jD]"\}}||kr7|}	Pq7q7W|d}
ttj|tj|
}t||
||dk	r|j
|7_
nt|}||d<|dk	r|dc|7<nt|||	<|S(s.Wrap the command named `command' in table

    Replace command in the command table with wrapper. The wrapped command will
    be inserted into the command table specified by the table argument.

    The wrapper will be called like

      wrapper(orig, *args, **kwargs)

    where orig is the original (wrapped) function, and *args, **kwargs
    are the arguments passed to it.

    Optionally append to the command synopsis and docstring, used for help.
    For example, if your extension wraps the ``bookmarks`` command to add the
    flags ``--remote`` and ``--all`` you might call this function like so:

      synopsis = ' [-a] [--remote]'
      docstring = """

      The ``remotenames`` extension adds the ``--remote`` and ``--all`` (``-a``)
      flags to the bookmarks command. Either flag will show the remote bookmarks
      known to the repository; ``--remote`` will also suppress the output of the
      local bookmarks.
      """

      extensions.wrapcommand(commands.table, 'bookmarks', exbookmarks,
                             synopsis, docstring)
    iiN(
RrRsRtfindcmdRRMRtchecksignatureR}RRutlistttuple(
ttabletcommandtwrappertsynopsist	docstringtaliasestentrytaliastetkeyR{Rztnewentry((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytwrapcommands"
!
cC@sft|stt||}t|s3tt||}t|||t||||S(sWrap the function named funcname in container

    Replace the funcname member in the given container with the specified
    wrapper. The container is typically a module, class, or instance.

    The wrapper will be called like

      wrapper(orig, *args, **kwargs)

    where orig is the original (wrapped) function, and *args, **kwargs
    are the arguments passed to it.

    Wrapping methods of the repository object is not recommended since
    it conflicts with extensions that extend the repository by
    subclassing. All extensions that need to extend methods of
    localrepository should use this subclassing trick: namely,
    reposetup() should look like

      def reposetup(ui, repo):
          class myrepo(repo.__class__):
              def whatever(self, *args, **kwargs):
                  [...extension stuff...]
                  super(myrepo, self).whatever(*args, **kwargs)
                  [...extension stuff...]

          repo.__class__ = myrepo

    In general, combining wrapfunction() with subclassing does not
    work. Since you cannot control what other extensions are loaded by
    your end users, you should play nicely with others by using the
    subclass trick.
    (RrRsR;RMR}tsetattr(t	containertfuncnameRR{Rz((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytwrapfunctions!cC@s|t||}|j}|dkr4|d}n|j|t|||x$t|D]}t|||q^W|S(s/undo wrapfunction

    If wrappers is None, undo the last wrap. Otherwise removes the wrapper
    from the chain of wrappers.

    Return the removed wrapper.
    Raise IndexError if wrapper is None and nothing to unwrap; ValueError if
    wrapper is not None but is not found in the wrapper chain.
    iN(tgetwrapperchaintpopRtremoveRtreversedR(RRRtchainR{tw((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytunwrapfunctionBs


cC@scg}t||}xG|r^t|s0t|jt|d|t|dd}qW|S(sget a chain of wrappers of a function

    Return a list of functions: [newest wrapper, ..., oldest wrapper, origfunc]

    The wrapper functions are the ones passed to wrapfunction, whose first
    argument is origfunc.
    RyRxN(R;RrRsRPR(RRReRU((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyRVs	cC@s?ddl}tjjtjj|j}ytj|}Wntk
rTiSXi}x|D]}|jdr|j	ddd}tjj
||}nQ|}tjj
||d}tjj|sqbn|rtjj|}n||ksb|tksb|dkr qbn|||<qbW|j
t|S(s~find paths of disabled extensions. returns a dict of {name: path}
    removes /__init__.py from packages if strip_init is TrueiNs.pyRis__init__.pyt__init__(thgextR(R)tdirnametabspatht__file__tlistdirtOSErrorR trsplittjointexistsRRwR`(t
strip_initRtextpathtfilestextsRRR)((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt_disabledpathsfs,!

$
cC@sg}|j}x7|d dks2|jrK|j}|sPqqW|d }|dksn|dkr|d}xv|r|jj|r|j|d}|r|j|nPn
|sdS|j||j}q{WndSdj|S(	sreturn the top-level python documentation for the given file

    Loosely inspired by pydoc.source_synopsis(), but rewritten to
    handle triple quotes and to return the whole text instead of just
    the synopsisit#is"""s'''itN(treadlinetstriptrstripR R+RPRR(tfileRetlinetstart((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt
_moduledocs* 

	
cC@scyt|}Wntk
r$dSXt|}|j|rUt|jdStdSdS(sBretrieve help synopsis of a disabled extension (without importing)Nis(no help text available)(topenR0RtcloseRt
splitlinesR(R)Rtdoc((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt
_disabledhelps

cC@sy1ddlm}td|jjDSWnttfk
rJnXt}|s^iSi}x9|jD]+\}}t|}|rq|||<qqqqW|S(sCfind disabled extensions from hgext. returns a dict of {name: desc}i(t	__index__cs@s3|])\}}|tkr|t|fVqdS(N(RR(t.0RR7((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pys	<genexpr>s	(	RRtdicttdocsRR?tAttributeErrorRR(RtpathsRRR)R((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytdisableds		cC@s{y:ddlm}|tkr#dSt|jj|SWnttfk
rSnXt}||krwt	||SdS(s;find a specific disabled extension from hgext. returns desci(RN(
RRRRRRRR?RRR(RRR((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytdisabledexts	c@stdt}|s'tj|nfd}d}|j|d}|rl||||}n|sx9|jD](\}}||||}|rPqqWn|rd|jkr|Stj|dS(sUimport disabled extensions until cmd is found.
    returns (cmdname, extname, module)Rc@syt|d|}Wntk
r+dSXy+tj|t|di\}}WnPtjtjfk
rwdStk
rjt	d|j
dSXx1|D]}|j|r|}PqqW|d}|||fS(Nshgext.%stcmdtables&warning: error finding commands in %s
i(R9RbRR~R;RtAmbiguousCommandtUnknownCommandRORRER(tcmdRR)R!RRtc(tstrictR(s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyR~s&
	"



t
DEPRECATEDN(RRRRRRRRu(RRRRR~textR)R((RRs8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytdisabledcmds cC@sui}xhtD]]\}}t|jp4td}|rS|jdd}n|jdj||<qW|S(s+return a dict of {name: desc} of extensionss(no help text available)Rii(R
RRuRR+RR(RSRtenameRR((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyRscC@s/gtjD]\}}|dkr
|^q
S(s4return short names of extensions that failed to loadN(RRR(RR!((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt	notloadedscC@stj|dr0t|jr0|j}n$tj|drN|j}nd}t|ttfrdjd|D}n|S(s8return version information from given module as a stringt
getversiont__version__RRcs@s|]}t|VqdS(N(tstr(Rto((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pys	<genexpr>s(	RtsafehasattrRrRRt
isinstanceRRR(Rtversion((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt
moduleversionscC@st|dd}|dkS(Nt
testedwithsships-with-hg-core(R;R(Rt
exttestedwith((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pytismoduleinternal s(/t
__future__RR,R(ti18nRRRRRRRR`RQRtsetRLRR
R$R9R>RBRHRVRXR]RhRlRMR}RRRRRcRRRRRRRRRRR(((s8/usr/lib/python2.7/dist-packages/mercurial/extensions.pyt<module>sJ							
	'			1	*		 			.