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/hgext/convert/filemap.pyc
ó
ÛXc@@s¦ddlmZddlZddlZddlmZddlmZddlm	Z	e	j
Z
d„Zd„Zd	e
fd
„ƒYZde	jfd„ƒYZdS(
i(tabsolute_importN(t_(terrori(tcommoncc@sZt|ƒ}x<|dkrJ|| ||dfV|jdd|ƒ}qWd|fVdS(sYield tuples with path split at '/', starting with the full path.
    No leading, trailing or double '/', please.
    >>> for x in rpairs('foo/bar/baz'): print x
    ('foo/bar/baz', '')
    ('foo/bar', 'baz')
    ('foo', 'bar/baz')
    ('.', 'foo/bar/baz')
    iÿÿÿÿit/it.N(tlentrfind(tpathti((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pytrpairss
	cC@s|dkrdStj|ƒS(s We use posixpath.normpath to support cross-platform path format.
    However, it doesn't handle None input. So we wrap it up. N(tNonet	posixpathtnormpath(R((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyt	normalize!st
filemappercB@sGeZdZdd„Zd„Zd„Zd„Zd„Zd„Z	RS(s€Map and filter filenames when importing.
    A name can be mapped to itself, a new name, or None (omit from new
    repository).cC@sa||_i|_i|_i|_d|_|r]|j|ƒr]tjt	dƒƒ‚q]ndS(Nserrors in filemap(
tuitincludetexcludetrenameRttargetprefixestparseRtAbortR(tselfRR((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyt__init__-s					c@sÌd}‡‡fd†}tjt|ƒ|tƒ‰ˆjd7_ˆjƒ}xw|rÇ|dkržtˆjƒƒ}|||ˆjdƒ7}|ˆj|<n|dkrþtˆjƒƒ}|||ˆjdƒ7}|||ˆjdƒ7}|ˆj|<nº|dkrWtˆjƒƒ}tˆjƒƒ}|||ˆjdƒ7}|ˆj|<na|dkr…|ˆj	tˆjƒƒƒ7}n3ˆj
jtdƒˆj
ˆj|fƒ|d	7}ˆjƒ}qQW|S(
Nic@sÍ|s3ˆjjtdƒˆjˆj|fƒdS||kroˆjjtdƒˆjˆj||fƒdS|jdƒs™|jdƒs™d|krɈjjtdƒˆjˆj||fƒdSdS(Ns%s:%d: path to %s is missing
is%s:%d: %r already in %s list
Rs//s%s:%d: superfluous / in %s %r
i(RtwarnRtinfiletlinenot
startswithtendswith(tnametmappingtlistname(tlexR(s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pytcheck9ss!@#$%^&*()-=+[]{}|;:,./<>?RRRtsources%s:%d: unknown directive %r
i(tshlextopentTruet	wordcharst	get_tokenRRRRRRRRRR(RRterrsR"tcmdRtsrctdest((R!Rs9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR7s6	"
cC@s_t|ƒ}xCt|ƒD]5\}}y||||fSWqtk
rMqXqWd|dfS(Nt(RR
tKeyError(RRRtpretsuf((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pytlookupds
cC@s«|jdkrNtƒ|_x0|jjƒD]\}}|jj|ƒq+Wn|jsgd|jkrktSt|ƒ}x-t|ƒD]\}}||jkr„tSq„Wt	S(sÑReturn true if the given target filename is covered as a destination
        of the filemap. This is useful for identifying what parts of the target
        repo belong to the source repo and what parts don't.RN(
RRtsetRt	iteritemstaddR&RR
tFalse(RtfilenametbeforetafterR/R0((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pytistargetfilemscC@sç|jr%|j||jƒd}n|}|jrP|j||jƒd}nd}|jrf|s~t|ƒt|ƒkr‚dS|j||jƒ\}}}|rã|dkr¶|S|rß|jdƒrÓ||S|d|S|S|S(NiR-RR(RR1RRRRR(RRtinctexctnewpreR/R0((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyt__call__…s$		(cC@st|jp|jp|jƒS(N(tboolRRR(R((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pytactive›sN(
t__name__t
__module__t__doc__RRRR1R9R=R?(((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR(s
	-				tfilemap_sourcecB@s¼eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cC@s•tt|ƒj|ƒ||_t||ƒ|_i|_i|_i|_d|_	t
|_i|_i|_
i|_|jjddƒ|_dS(Ntconverttignoreancestorcheck(tsuperRCRtbaseRtcommitst	parentmaptwantedancestorsRtconvertedorderR5t_rebuilttorigparentstchildrentseenchildrenRt
configboolRE(RRt
baseconvertertfilemap((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR­s									cC@s|jjƒdS(N(RGR7(R((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR7ÁscC@s|jjƒdS(N(RGR8(R((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR8Äsc	C@sÜ||_itt6}tƒ}g}xš|jD]}||}||k}|rl|||<||j|<n|||j|<||j|<||}|tkr©d}n|j|||fƒq0W||_|j	j
|ƒS(N(RLtSKIPREVR2torderRIRJRtappendRKRGt	setrevmap(	Rtrevmaptseentdummysett	convertedtrevtmappedtwantedtarg((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyRVÇs$

	



		cC@sh|jr
tSt|_|jjƒ|jjƒ|jjƒx¦|jD]›\}}}||jkr³y|j|ƒj	|j|<Wq³t
jk
r¯|jj
d|ƒqGq³Xn|dk	rG|jj|dƒd|j|<qGqGWx{|jD]p\}}}y|j|}Wntk
r&qðnX|r@|j||ƒn|j||ƒ|j||ŒqðWtS(Nsunknown revmap source: %s
ii(RLR&RItclearRJRORKRMt	getcommittparentsRtRepoLookupErrorRtdebugRRNtgetR.tmark_wantedtmark_not_wantedt_discard(RR[R]R^Ra((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pytrebuildæs2		



'
cC@s
|jjƒS(N(RGtgetheads(R((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyRiscC@sU|jj|ƒ}|j|<x1|jD]&}|jj|dƒd|j|<q'W|S(Nii(RGR`RHRaRNRd(RR[tctp((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR`s$cC@s*||jkr|j|S|jj|ƒS(N(RHRGR`(RR[((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyt
_cachedcommitscG@sªx£|D]›}|dkrqn|jj|dƒd|j|<|j||j|kr|jj|dƒ|jj|dƒ|j|=|jr¢|j|=q¢qqWdS(Nii(RRORdRNRJtpopRIRL(Rtrevstr((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyRgs
 
	cC@sjy|jj||ƒ}Wn&tk
rAtjtdƒƒ‚nXx!|D]}|j|ƒrItSqIWtS(Ns+source repository doesn't support --filemap(	RGtgetchangedfilestNotImplementedErrorRRRRR&R5(RR[R	tfilestf((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR] s

cC@s_|dkr3t|j|<ttfƒ|j|<dS|j||j|<|j||j|<dS(N(RRSRIR2RJ(RR[Rk((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyRf1s
cC@s‹||j|<tƒ}xT|D]L}||jkrI|j|j|ƒq|jjtdƒ||fƒqW|j|ƒ||j|<dS(Ns!warning: %s parent %s is missing
(RIR2RJtupdateRRRR4(RR[RatwrevRk((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyRe@s
	

c@sˆj|j}t|ƒdkr9ˆjr9ˆjƒng}tƒ}ˆj|j}t}xÛt|ƒD]Í\}‰ˆj	ˆ‰ˆt
kskˆ|kr¢qknˆjoËt‡‡‡fd†|Dƒƒ}	|	r|rt|ƒdkrˆjˆƒj|krt
}qn|jˆˆ||	fƒ|jˆƒqkW|rhg|D]}
|
dsI|
^qI}nd}|rªtd„|Dƒƒ}g|D]}
|
d^q‘}n|r¹d}n|ˆj|<t}dˆj|jkrg|D]}
ˆj|
ƒj^qé}
||
krt
}qnt|ƒdkr¥|r¥ˆj||ƒr¥d}
|rd||}
nˆj||
ƒˆjj|t|
fƒˆj|Œˆj	|S|ˆj|_ˆj||ƒˆjj|t
dfƒˆj|Œˆjj||ƒ\}}}i}t|ƒ}xp|D]h\}}ˆj|ƒ}|r"||ks[||kr"||f||<||krŠ|j|ƒqŠq"q"Wt|jƒƒ}i}xL|D]D}ˆj|ƒ}|r­ˆj||ƒ}|rñ|||<qñq­q­W|||fS(Nic3@sG|]=}ˆ|krˆˆj|krˆˆj|kr|VqdS(N(RIRJ(t.0tp2(tmp1tp1R(s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pys	<genexpr>rsics@s|]}|dVqdS(iN((RvRk((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pys	<genexpr>sitclosei(RHRaRRERhR2tbranchR5t	enumerateRIRStanyRlR&RUR4RtmaxRMtextraR]RfRKRgReRGt
getchangesRtdiscardtsortedtitems(RR[tfullRatmparentstknownparentsR{thasbranchparentR	t
isancestorRktwptclosedt	pbranchestchangestcopiestcleanp2Rrtncleanp2RsRotnewftncopiesRjtnewct	newsource((RxRyRs9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR€Ts|
	

" & 	
%,



cC@s|jj|ƒS(N(RR9(Rttargetfilename((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyttargetfilebelongstosource»scC@s|\}}|jj||ƒS(N(RGtgetfile(RRR[trealnametrealrev((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR–¾scC@s
|jjƒS(N(RGtgettags(R((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR™ÂscC@s
|jjƒS(N(RGthasnativeorder(R((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyRšÅscC@s|jj|ƒS(N(RGt	lookuprev(RR[((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyR›ÈscC@s
|jjƒS(N(RGtgetbookmarks(R((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyRœËscC@s|jj||ƒdS(N(RGRZ(RR[tsinkrev((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyRZÎs(R@RARR7R8RVRhRiR`RlRgR]RfReR€R•R–R™RšR›RœRZ(((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyRC¬s(													g						(t
__future__RRR$tmercurial.i18nRt	mercurialRR-RRSR
RtobjectRtconverter_sourceRC(((s9/usr/lib/python2.7/dist-packages/hgext/convert/filemap.pyt<module>s			„