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

Xc@@sddlmZddlZddlZddlZddlmZddlmZm	Z	m
Z
mZmZm
ZmZmZmZmZmZejZddlmZejZejZejdZdejfd	YZd
ejfdYZ dS(i(tabsolute_importN(t_(t	bookmarkstcontextterrortexchangethgtlocktmergetnodetphasestscmutiltutili(tcommons\b[0-9a-f]{12,40}\btmercurial_sinkcB@seZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZRS(cC@stjj||||jddt|_|jddt|_|jddd|_	d|_tj
j|rttj|dkryDtj|j||_|jjsttd|nWqtjk
r
}|jt|jdqXnyq|jtd|tj|j|d	t|_|jjsqttd|n|jj|Wn4tjk
r|jttd
|nXd|_d|_ t|_!i|_"dS(Ntconvertshg.usebranchnamesshg.clonebranchess
hg.tagsbranchtdefaultis&%s is not a local Mercurial repositorys'initializing destination %s repository
tcreates)could not create hg repository %s as sink(#R
tconverter_sinkt__init__t
configbooltTruetbranchnamestFalset
clonebranchestconfigt
tagsbranchtNonet
lastbranchtostpathtisdirtlentlistdirRt
repositorytuitrepotlocaltNoRepoRRt	RepoErrort	tracebacktargststatustcreatedtappendRtwlocktfilemapmodet
subrevmaps(tselfR#Rterr((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyR0s:	-


			cC@s8|jjd|jj|_|jj|_dS(Ns"run hg sink pre-conversion action
(R#tdebugR$R-R(R0((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pytbeforePscC@sF|jjd|jr)|jjn|jrB|jjndS(Ns#run hg sink post-conversion action
(R#R2RtreleaseR-(R0((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pytafterUs
		cC@s|jjdS(Ntshamap(R$tjoin(R0((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt
revmapfile\scC@s|jjdS(Nt	authormap(R$R7(R0((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt
authorfile_scC@s5|js
dS||jk}||_|s4d}ng|D]*}|d|dr\|dp_df^q;}|r|dd}nd}tjj|j|}|r|jytj|j||_	Wn/t
k
rtj|j|dt|_	nX|jni}x[|D]S}y|j	j
|dWqt
k
rj|j|dgj|dqXqW|r1|jxt|jD]\}}tjj|j|}	tj|ji|	}
|jjtd||ftj|j	|
g|D]}|
j
|^qqW|jndS(NRiiRspulling from %s into %s
(RRRRR7R5RR"R#R$t	ExceptionRR3tlookupt
setdefaultR,tsortedt	iteritemstpeertnoteRRtpull(R0tbrancht	pbranchest	setbranchtbtpbrancht
branchpathtmissingstheadstpbranchpathtprepoth((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyREbsB			7

"


)
 'cC@st}x|jD]}|jdd}t|dkrFqn|j|j|d}|s|dtjkr|d}qqn|jd||dfqW|j	S(Nt iiis%s %s
(
tstringiot
splitlinestsplitR tgett	lookuprevtnodemodtnullhextwritetgetvalue(R0tsourcetrevmaptdatatfptlinetstrevid((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt_rewritetagss	
cC@st}x|jD]t}|jdd}t|dkrFqn|d}|d}|tjkrs|jj|}|dkrt	|j
|jj|d}||j|<t
d}	t|dkr|jjj|d}
|jjj|
r|j
j|	|qqn|j|}|sjt|dkrp|j
jt
d||fqpqs|}n|jd	||fqW|jS(
NRNiiis
.hg/shamaps/no ".hgsubstate" updates will be made for "%s"
s.hgs!%s is missing from %s/.hg/shamap
s%s %s
(RORPRQR RTRUR/RRRtmapfileR#R$twjoinRtwvfstreljointexiststwarnRVRW(R0RXRZR[R\R]R^tsubpathRYtmsgtsubtnewid((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt_rewritesubstates4	

	
	c	c@s|j|g}tj|j|||tttt\}}}x|jD]r\}\}	}
}|j|ryqOn|	dkrtj	t
d|||fqO|	dkrqOqO|VqOWdS(	sRCalculates the files from p2 that we need to pull in when merging p1
        and p2, given that the merge is coming from the given source.

        This prevents us from losing files that only exist in the target p2 and
        that don't come from the source repo (like if you're merging multiple
        repositories together).
        tmtdmtcdtdcseunable to convert merge commit since target parents do not merge cleanly (file %s, parents %s and %s)tkN(RkRlRmRn(tancestortmergemodtcalculateupdatesR$RRR?ttargetfilebelongstosourceRtAbortR(R0RXtp1ctxtp2ctxtanctactionstdivergetrenametfiletactiontinfoRg((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt_calculatemergedfiless""c	"	@stfd}	g}
x*|D]"}||
kr:|
j|q:q:W|
}t|}jr|dkrjjjtj|dd}
|d}nt|dkr|jtj	nt|dkr|jtj	n|j
d}|j}tj
t|}xW|D]O}j|}j|}|dk	r5|j||t| }q5q5W|jj}jjjdd}|r||d<nxdD]}|j|}|dkrqn|d	krtj|}nj|}|dk	r|d	krGtj|}n|||<qqWjrz|jrz|j|d<n|jr|jr|j|d
<nx|rr|}|j
d}j|}d|tj	krj|nt}|r)|jj||jj|nrxt|x:j|D] }j||j|qQWnt j!j||f|||	|j"|j#|}jjj$ddt%j&|j'djj(d~}tjjj)|}|j|kr]j|}|j't%j*kr]t%j+j|t%j*|j,gq]nWdQXd}|}qWjr|dkrjj-}jjjtj|d} d|jk}!|!r|j.|
|j/| rjj0t1djj2dt3|Sn|S(Nc@srY|krY|krYjjd|y|SWqYtjk
rUdSXny|}Wntk
r{dSXj||\}}|dkrdS|dkrj|}n|dkrj|}nt	j
j||d|kd|kj|S(Nsreusing %s from p2
s.hgtagss.hgsubstatetltx(
R#R2RtManifestLookupErrorRtKeyErrortgetfileR_RjRt
memfilectxR$RR(R$tmemctxtftvRZtmode(tcopiestfilesRvtp2filesRYR0RX(s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt
getfilectxs&
iiiRs
hg.sourcenametconvert_sourceRXttransplant_sourcet
rebase_sourcesintermediate-sourceRCtconvert_revisionR
s
new-commits(octopus merge fixup)
tclosesfiltering out empty revision
tforce(RXRRsintermediate-source(4tdictR,R R.R$t	changelogtreadRTtbintnullidtpoptdesctretfindalltsha1reRSRRRtreplacetextratcopyR#RthexRRCtrevtsaverevtsettupdateR~taddRRtauthortdatet	setconfigR
t
phasenamestphasettransactiont	commitctxtdrafttretractboundaryR	tmanifesttcmptrevisionR*RtrollbackR("R0RRtparentstcommitRXRYtfulltcleanp2Rtpltptnparentstm1nodetparenttp2ttexttsha1stsha1toldrevtnewrevRt
sourcenametlabelR	tp1RutfilesetR{tctxttrtmantmnodetclosed((RRRvRRYR0RXs4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt	putcommits!
&
	
#

	



"#c	@sy |j|j}|j}Wn#tjk
rEd}tj}nXt}xw|jj	j
D]`\}}xQ|D]I}d|j|krx|jt|j|djj
tqxqxWqeWtt|}tg|D]}d|||f^q}	|	|krd
St}
t}xO|D]G}|jjdd}
t|
dkrgq1n|
j|
dq1Wxh|	D]`}|jjdd}
t|
dkrqn|
d|
kr|j|
djqqW|sdSdj|	fd}|jjtdd	ttjtj}i|jd
6}tj|j|dfddg|d||}|jj|}tj |tj |fS(Ns.hgtagss%s %s
RNiitc@stj||ttdS(N(RRRR(R$RR(RZ(s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyRssupdating tags
s%s 0RCsupdate tagssconvert-repo(NN(NN(!R$RR	RR'RRTRRt	branchmapR?RRZRPRR>tlisttstripRQR RR7R#R*RtintttimetmktimetgmtimeRRRR(R0ttagst	parentctxt	tagparenttoldlinesRCRJRMttagtnewlinestoldtagstnewtagsR\R]RRRRR	((RZs4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pytputtagslsR
	"
2-		

	cC@s
||_dS(N(R.(R0tactive((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pytsetfilemapmodescC@st|sdSd}}}z|jj}|jj}|jjd}|jjtd|jj	}x%|D]}t
j||||<qzW|j||j
Wdtj|||XdS(Ntbookmarksupdating bookmarks
(R RR$R-RRR#R*Rt
_bookmarksRTRtrecordchangeRtlockmodR4(R0tupdatedbookmarkR-RRt	destmarksR((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pytputbookmarkss

cC@s||jkp|jS(N(R$R(R0R((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pythascommitfrommapscC@sA||jkr4|jr4tjtd|n||jkS(Nserevision %s not found in destination repository (lookups with clonebranches=true are not implemented)(R$RRRtR(R0R((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pythascommitforsplicemaps
(t__name__t
__module__RR3R5R8R:RER_RjR~RRRRRR(((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyR/s	 					*		'	&		3			tmercurial_sourcecB@seZddZdZdZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZdZdZdZdZddZRS(cC@stjj|||||jddt|_t|_|jddt|_y7t	j
|j||_|jj
stjnWn4tjk
r|jttd|nXd|_d|_d|_d|_|jdd}|jdd}|dkr)|dk	ry|jj|}Wn-tjk
rhtjtd|nX|jjj|}id|6}x9|jjj|gD]}d||jjj|<qW|j|_ nt!j"|_ |rg|D]}|j|j^q|_#q|jj$|_#n|s;|dk	rStjtd	nt}	t}
x]t%j&|j|gD]C}|j|}|	j'|j|
j(d
|j)Dq~W|	j|_ |	|
|_#dS(NRshg.ignoreerrorss
hg.saverevs&%s is not a local Mercurial repositoryshg.startrevshg.revss %s is not a valid start revisionis4hg.revs cannot be combined with hg.startrev or --revcs@s|]}|jVqdS(N(R	(t.0R((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pys	<genexpr>s(NN(*R
tconverter_sourceRRRtignoreerrorsRtignoredRRR"R#R$R%RR'R(R&RRtlastrevtlastctxt
_changescachet	convertfpRR<RtRRtdescendantsR	t__contains__tkeepRtalwayst_headsRJRtrevrangeRRR(R0R#Rtrevst	startnodethgrevststartrevtchildrentrtnodesRR((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyRsV
				
,		
!cC@s2|j|kr+|j||_||_n|jS(N(RR$R(R0R((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt
_changectxscC@s8g|jD]'}|r
|j|jr
|^q
S(N(RRR	(R0RR((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt_parentsscC@s2g|jD]$}|j|r
tj|^q
S(N(RRRTR(R0RM((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pytgetheadsscC@sIy-|j||}|j|jfSWntjk
rDdSXdS(N(NN(RRZtflagsRtLookupErrorR(R0tnameRtfctx((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyRs
c
C@sgg}}|j}|j}|jj|j}xO|jD]A\}\\}	}
\}}|dkr~||qG||qGW||fS(N(R,RtdiffR?R(
R0tctx1tctx2tmaRtmaappendtrappendtdRtnode1tflag1tnode2tflag2((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt
_changedfiless
		+
cC@s{|j|}|j|}|s+|r>|j}}n|r|jd|krm|jd\}}n|j|d|\}}|s||}n|}n|j|||}	t}
t|dkr6|djj|jdt	}x9|j
D](\}}
|
dkr|
j|qqWng|D]!}||j
kr=||f^q=}|j||	|
fS(Niiitclean(RRRRRt
_getcopiesRR RRR?RRRtsort(R0RRRRRt	copyfilesR
RRRR
Rtvaluetchanges((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt
getchangess*

		%.
cC@s	i}x|D]}||jkr(q
nyw|j|j\}}||jkr[w
nt}x$|D]}	||	krht}PqhqhW|sw
n|||<Wq
tk
rq
tjk
r}
|jsn|jj	||j
jtd|
q
Xq
W|S(Ns
ignoring: %s
(
RtfilectxtrenamedRRt	TypeErrorRRRRR#ReR(R0RRRRRt
copysourcet	_copynodetfoundRte((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyR,s0


	"cC@s|j|}|j|}g|D]}|j^q%}g|jD]$}|rJ||krJ|j^qJ}|}tjd|jdtj|j	dd|j
d|d|d|d|jd	|jd
|j
d|jd|jS(
NRRs%Y-%m-%d %H:%M:%S %1%2RRRt
optparentsRCRtsortkeyRR(RRRRR
RtuserRtdatestrRtdescriptionRCRRRR(R0RRRRRR!tcrev((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt	getcommitGs"7		cC@sg|jjD](}|jj|ddkr|^q}tg|D]0\}}|j|rH|tj|f^qHS(Nitglobal(R$ttagslistttagtypeRRRTR(R0ttRRR	((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pytgettags[s(c	C@s|j|}|j|}|rS|dkrSd}|jjg}}n(|p\d}|j|||\}}g||fD].}g|D]}||jkr|^q^q\}}|dkr|||ff|_n||S(Ni(RRRRtkeysRRR(	R0RtiRRR
RRR((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pytgetchangedfilesbsGcC@s[|jdkr0t|jjdd|_n|jjd||f|jjdS(NR6tas%s %s
(RRtopenR$R7RVtflush(R0Rtdestrev((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt	convertedrs!cC@s|jjddS(Ns$run hg source pre-conversion action
(R#R2(R0((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyR3xscC@s|jjddS(Ns%run hg source post-conversion action
(R#R2(R0((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyR5{scC@stS(N(R(R0((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pythasnativeorder~scC@stS(N(R(R0((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pythasnativeclosescC@sBytj|jj|SWntjtjfk
r=dSXdS(N(RTRR$R<RR'RR(R0R((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyRSscC@stj|jS(N(Rt
listbookmarksR$(R0((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pytgetbookmarksst	splicemapcC@s|j||dS(s- Mercurial, revision string is a 40 byte hex N(tcheckhexformat(R0trevstrtmapname((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pytcheckrevformatsN(RRRRRRRRRRRR'R,R/R4R3R5R5R6RSR8R=(((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyRs&4																	(!t
__future__RRRRtmercurial.i18nRt	mercurialRRRRRRRRRqR	RTR
RRRORR
R`R&tcompileRRRRR(((s4/usr/lib/python2.7/dist-packages/hgext/convert/hg.pyt<module>sL