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/pathutil.pyc
σ
x7_c@@sΆddlmZddlZddlZddlZddlZddlmZddlm	Z	m
Z
mZd„Zde
fd„ƒYZdd	„Zd
„ZejZejZdS(i(tabsolute_importNi(t_(tencodingterrortutilcC@stj|jƒƒS(N(Rthfsignorecleantlower(ts((s6/usr/lib/python2.7/dist-packages/mercurial/pathutil.pyt_lowercleanstpathauditorcB@s;eZdZdeed„Zd„Zd„Zd„Z	RS(s^ensure that a filesystem path contains no banned components.
    the following properties of a path are checked:

    - ends with a directory separator
    - under top-level .hg
    - starts at the root of a windows drive
    - contains ".."

    More check are also done about the file system states:
    - traverses a symlink (e.g. a/symlink_here/b)
    - inside a nested repository (a callback can be used to approve
      some nested repositories, e.g., subrepositories)

    The file system checks are only done when 'realfs' is set to True (the
    default). They should be disable then we are auditing path for operation on
    stored history.

    If 'cached' is set to True, audited paths and sub-directories are cached.
    Be careful to not keep the cache of unmanaged directories for long because
    audited paths may be replaced with symlinks.
    cC@s}tƒ|_tƒ|_||_||_||_||_tjj	|ƒrmt
j|ƒrmt
j|_nd„|_dS(NcS@s|S(N((tx((s6/usr/lib/python2.7/dist-packages/mercurial/pathutil.pyt<lambda>3s(
tsettauditedt
auditeddirtroott_realfst_cachedtcallbacktostpathtlexistsRtfscasesensitivetnormcase(tselfRRtrealfstcached((s6/usr/lib/python2.7/dist-packages/mercurial/pathutil.pyt__init__)s				"cC@sάtj|ƒ}|j|ƒ}||jkr1dStj|ƒr\tjtdƒ|ƒ‚ntj|ƒ}t	j
j|ƒds¦t|dƒd
ks¦t	j
|krΒtjtdƒ|ƒ‚nxo|D]g}d|krΙ|jdd	ƒ\}}|jƒr0|jƒdkr0tjtdƒ|ƒ‚q0qΙqΙWdt|ƒkrΦg|D]}t|jƒƒ^qM}xhdD]]}||d	krr|j|ƒ}t	j
j|| Œ}	tjtdƒ||	fƒ‚qrqrWntj|ƒ}
t|ƒt|
ƒkst‚|jƒ|
jƒg}xŒtt|ƒƒD]x}t	jj||d	 ƒ}
t	jj|
|d	 ƒ}||jkrq0n|jr›|j|
|ƒn|j|ƒq0W|jrΨ|jj|ƒ|jj|ƒndS(sPCheck the relative path.
        path may contain a pattern (e.g. foodir/**.txt)Ns$path ends in directory separator: %sis.hgs.hg.ts#path contains illegal component: %st~itHGtHG8B6Cs"path '%s' is inside nested repo %r(s.hgs.hg.R(RR(s.hgs.hg.( Rt	localpathRR
tendswithsepRtAbortRt	splitpathRRt
splitdriveRtpardirtsplittisdigittupperRtindextjointlentAssertionErrortpoptrangetsepRRt_checkfstappendRtaddtupdate(RRtnormpathtpartstptfirsttlasttlpartstpostbaset	normpartstprefixestitprefixt
normprefix((s6/usr/lib/python2.7/dist-packages/mercurial/pathutil.pyt__call__5sR
%


		cC@stjj|j|ƒ}ytj|ƒ}Wn:tk
rg}|jtjtjtj	fkr‚qn³Xt
j|jƒr’t
dƒ||f}tj|ƒ‚nxt
j|jƒrtjjtjj|dƒƒr|jsο|j|ƒrt
dƒ}tj|||fƒ‚qndS(s3raise exception if a file system backed check failss"path %r traverses symbolic link %rs.hgs"path '%s' is inside nested repo %rN(RRR*RtlstattOSErrorterrnotENOENTtENOTDIRtEINVALtstattS_ISLNKtst_modeRRR"tS_ISDIRtisdirR(RR?Rtcurpathtstterrtmsg((s6/usr/lib/python2.7/dist-packages/mercurial/pathutil.pyR0ms!
!cC@s4y||ƒtSWnttjfk
r/tSXdS(N(tTrueRCRR"tFalse(RR((s6/usr/lib/python2.7/dist-packages/mercurial/pathutil.pytchecks

N(
t__name__t
__module__t__doc__tNoneRQRRRRAR0RS(((s6/usr/lib/python2.7/dist-packages/mercurial/pathutil.pyR	s
	8	cC@s tj|ƒr|}n
|tj}|}tjj|ƒsXtjj|||ƒ}ntjj|ƒ}|dkr…t	|ƒ}n||krΗ|j
|ƒrΗ|t|ƒ}||ƒtj|ƒS||krΧdSg}x΅t
r”ytj||ƒ}Wntk
rt}nX|rY|s&dS|jƒtjj|Œ}||ƒtj|ƒStj|ƒ\}}	|j|	ƒ||kr‹Pn|}qΰWd}
yE||krίt||||ƒtdƒtjj||ƒ}
nWntjk
rφnXtjtdƒ||fd|
ƒ‚dS(s7return the canonical path of myname, given cwd and rootRsconsider using '--cwd %s's%s not under root '%s'thintN(RR!RR/RtisabsR*R4RWR	t
startswithR+tpconvertRQtsamefileRCRRtreverseR&R1t	canonpathRtrelpathRR"(RtcwdtmynametauditortrootseptnametrelRtdirnametbasenameRX((s6/usr/lib/python2.7/dist-packages/mercurial/pathutil.pyR^ˆsV	


	






	cC@sFtjj|ƒ\}}t|ƒttjƒkr>|tjS|SdS(sΨnormalize the specified path as path prefix

    Returned value can be used safely for "p.startswith(prefix)",
    "p[len(prefix):]", and so on.

    For efficiency, this expects "path" argument to be already
    normalized by "os.path.normpath", "os.path.realpath", and so on.

    See also issue3033 for detail about need of this function.

    >>> normasprefix('/foo/bar').replace(os.sep, '/')
    '/foo/bar/'
    >>> normasprefix('/').replace(os.sep, '/')
    '/'
    N(RRR$R+R/(RtdR6((s6/usr/lib/python2.7/dist-packages/mercurial/pathutil.pytnormasprefixΒs(t
__future__RRDRt	posixpathRHti18nRRRRRRtobjectR	RWR^RiR*Rf(((s6/usr/lib/python2.7/dist-packages/mercurial/pathutil.pyt<module>s	v: