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

Xc@@sdZddlmZddlZddlZddlZddlmZddlm	Z	ddl
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZdejfd	YZd
ee
j
fdYZdeejfd
YZdeejfdYZdej fdYZ!dej"fdYZ#dZ$dej%fdYZ&dZ'de(fdYZ)dde+dZ,dS(sRepository class for viewing uncompressed bundles.

This provides a read-only repository interface to bundles as if they
were part of the actual repository.
i(tabsolute_importNi(t_(tnullid(tbundle2tchangegroupt	changelogtcmdutilt	discoveryterrortexchangetfilelogt	localrepotmanifesttmdifftnodetpathutiltphasestrevlogtscmutiltutiltbundlerevlogcB@sbeZdZdZdZdZdZd	d	d	dZdZ	dZ
dZRS(
c	@stj|}tjj||||_t|}|d|_dt|_	fd}xt
|iD]}|d}|d}	|d}
|d}|d}|d}
t|
}j|}||}||jkr||j	j
|j|q{nxD|	|
fD]6}||jkr$tj||jtd	q$q$W||jkrt||jtd
n|j|}tj|d|d|||j|	|j|
|f}|jjd|||j|<|j	j
|||d7}q{WdS(
Nic@s
jS(N(t
deltachunk((tbundletchain(s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyt<lambda>;sRtp1tp2tcst	deltabasetdeltasunknown parentsunknown delta baseii(RtreadonlyvfsRt__init__Rtlent
repotiprevtNonetsett
bundlerevstiterttelltnodemaptaddRtLookupErrort	indexfileRtrevtoffset_typetindextinsert(tselftopenerR*Rt
linkmappertntgetchunkt	chunkdataRRRRRRtsizetstarttlinktptbaserevte((RRs8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyR,sJ	






!
cC@sT||jkr"tjj||S|jj|j||jj|j|S(N(R!Rt_chunkRtseekR6treadtlength(R/R+((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyR;ascC@s||jkrK||jkrK|j|d}||kr|j|Sn4||jkr||jkrtjj|||Stj|j|j||j|j|S(s1return or calculate a delta between two revisionsi(	R!R-R;RtrevdiffR
ttextdifftrevisionR(R/trev1trev2trevb((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyR?jscC@s=t|tr'|}|j|}n|}|j|}|tkrLdSd}g}|}x^||jkr|jr|jd|kr|jd}Pn|j||j	|d}qaW|dkr|j
|}nx4|r|j|j}t
j||g}qW|j||||||f|_|S(sTreturn an uncompressed revision of a given node or revision
        number.
        tiiiN(t
isinstancetintRR+RR"R!t_cachetappendR-tbaserevisionR;tpopR
tpatchest
_checkhash(R/t	nodeorrevR+RttextRtiterrevR((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRAws0

	cC@stjj||S(N(RRA(R/RN((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRJscC@s
tdS(N(tNotImplementedError(R/ROttransactionR7RRtd((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytaddrevisionscC@s
tdS(N(RQ(R/trevsR1RR((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytaddgroupscC@s
tdS(N(RQ(R/R+tminlink((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytstripscC@s
tdS(N(RQ(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyt	checksizesN(t__name__t
__module__RR;R?RARJR"RTRVRXRY(((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyR+s	5			
	#			tbundlechangelogcB@seZdZdZRS(cC@s<tjj||d}tj|||j||dS(NcS@s|S(N((tx((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRs(RRRR*(R/R0RR1((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRs	cC@s:|j}z d|_tjj||SWd||_XdS(N((tfilteredrevsRRA(R/RNt	oldfilter((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRJs
		(RZR[RRJ(((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyR\s	tbundlemanifestcB@s)eZdddZdZdZRS(REcC@stjj||d|tj|||j|||dkrni}|jjdkrnt|j}qnn||_||_	dS(Ntdirt03(
RRRR*R"Rtversiont_getfilestartst
_dirlogstartst_linkmapper(R/R0RR1tdirlogstartsRa((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRs	cC@se|}t|tr'|j|}n||jkrL|j|j}ntjj||}|S(N(RFRGRt
fulltextcachettostringRRA(R/RNRtresult((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRJscC@sa||jkrK|jj|j|t|j|j|j|jd|Stt|j|S(NRa(ReRR<R`R0Rftsupertdirlog(R/RS((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRlsN(RZR[R"RRJRl(((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyR`s	t
bundlefilelogcB@seZdZdZRS(cC@s6tjj|||tj|||j||dS(N(R
RRR*(R/R0tpathRR1((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRscC@stjj||S(N(R
RA(R/RN((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRJs(RZR[RRJ(((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRms	t
bundlepeercB@seZdZRS(cC@stS(N(tFalse(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytcanpushs(RZR[Rq(((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRostbundlephasecachecB@s,eZdZdZdZdZRS(cO@sGtt|j||tj|drCtj|j|_ndS(NR0(RkRrRRtsafehasattrRRR0(R/targstkwargs((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRscC@s
tdS(N(RQ(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytwritescC@s
tdS(N(RQ(R/tfp((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyt_writescC@s$||j|<|jt|_dS(N(t
phaserootst
invalidatetTruetdirty(R/tphasetnewrootsttr((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyt_updaterootss

(RZR[RRvRxR(((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRrs			c@sdi}xWtjiD]C}|d}j||<x tfdiD]}qRWqW|S(Ntfilenamec@s
jdS(N(RR"((R(s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRs(R%t
filelogheaderR&(RtbundlefilesposR4tfnametchunk((Rs8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRds
tbundlerepositorycB@seZdZejdZejdZdZejdZejdZ	dZ
dZdZd	Z
d
ZdZedZRS(
c@sdfd}d_ytjj||WnRtjk
rtj_tj	|jdtjj|jnXj
jddtd|rdt
j|d|_n
d|_d_t
j|d	}tj|||__tjtjr?d}xjjD]}|jd
kr<|dk	rltdn|}|jjdd
}tj}	||	krtd}
tj |
|njj!r||j"d|}qq<q<W|dkrtj tdn|j#dtj$||d_nRjj!r|jj"ddd}tj|||j%__ni_&j'j(d_)t*j+dt*j,gj)D]}|j-^qdS(NREc@sjjdddd\}}|_tj|dD}|j|x-tr{|d}|skPn|j|qOWWdQXjjjd	d
S(sWrite a temporary file to disk

            This is closure because we need to make sure this tracked by
            self.tempfile for cleanup purposes.tprefixs
hg-bundle-tsuffixs.hg10untwbiiNtmodetrbi(tvfstmkstempttempfiletostfdopenRvR{topen(R=RtheadertfdtempttemptfptempR(R/(s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyt_writetempbundles	
	iRtpublisht
bundlereposbundle:t+RRs#can't process multiple changegroupsRct01s#Unsupported changegroup version: %ss.cg%sunsNo changegroups founditUNs.hg10unRtHG10UN(.R"t_tempparentRtlocalrepositoryRRt	RepoErrorRtmkdtemptinstancetuit	setconfigRpRt
expandpatht_urlt	posixfileR	t
readbundlet
bundlefileRRFRt
unbundle20t	iterpartsttypeRQtparamstgetRtsupportedincomingversionsRtAbortt
compressedR=R<tgetunbundlerRRRR!tfirstnewrevRtretractboundarytdraftR(R/RRnt
bundlenameRtftcgstreamtpartRctlegalcgverstmsgtctx((R/s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRsV	!
		
	cC@st||jS(N(Rrt_phasedefaults(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyt_phasecacheNscC@s8|jjt|j|j}|jj|_|S(N(RtchangelogheaderR\tsvfsR&tmanstart(R/tc((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRRs
cC@s`|jj|j|jj|jjj}t|j|j|}|jj	|_
|S(N(RR<Rtmanifestheadert
unfilteredRR+R`RR&t	filestart(R/R1tm((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyt_constructmanifestZs
cC@s|j|jS(N(RR(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRcscC@s|j|jS(N(RR(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRhscC@s|jS(N(R(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyturlmscC@s|js1|jj|jt|j|_n||jkr|jj|j||jjj}t|j	||j|St
j
|j	|SdS(N(RRR<RRdRRR+RmRR
(R/RR1((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytfileps	cC@sU|jj|jdk	r2|jj|jn|jrQtj|jt	ndS(s'Close assigned bundle file immediately.N(
RtcloseRR"RtunlinkRtshutiltrmtreeR{(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyR|s

	cC@stS(N(Rp(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytcancopyscC@s
t|S(N(Ro(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytpeerscC@s
tjS(N(Rtgetcwd(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRscC@s|jj|}|jj|}td}|jj|krb|jj|tj|n|jj|kr|jj|tj|ntt	|j
||S(Ns9setting parent to node %s that only exists in the bundle
(RR+RR!RtwarntnodemodthexRkRt
setparents(R/RRtp1revtp2revR((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRs  (RZR[RRtunfilteredpropertycacheRRRRRRRRRRRRR(((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRs	I								c	C@sO|rtjtdn|jddd}|sftjtj}|dkrfd}qfn|rtj}||krd}qt	j
|}|j|r|t|}qnt
j|}|j}|jdkr2|jdd}t|dkr#||d}}q?|\}}n
||}}t|||S(Ns#cannot create new bundle repositoryRtmainreporootRERii(RRRtconfigRtfindrepoRRR"Rtnormasprefixt
startswithR RRt	localpathtschemetsplitR(	RRntcreatet
parentpathtcwdtutstrepopathR((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRs.	
tbundletransactionmanagercB@s#eZdZdZdZRS(cC@sdS(N(R"(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRRscC@s
tdS(N(RQ(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRscC@s
tdS(N(RQ(R/((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytreleases(RZR[RRRR(((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyRs		c@s2tj|d|d|}|\}}}	|sqy|rLtj|nWntk
r`nX|gjfSt|}
g|	D]}||
kr|^q}	ddj}|s|rt|j	dd}
d|
kod|
k}|oj
doj
d}|ri}||d<|	|d<tj||d	<t
|d
<jd|}tj||j|}nj
drjdd|d|	}nL|dkrj
drj|d}d}	nj||	d}|rd
}nd}tj||||}|r@dn|stt|j|j|}|j}qtn|r|j}n|jj||	}rgjD]}|j^q}jd}tjd|}t |_!tj"||nfd}|||fS(sGobtains a bundle of changes incoming from other

    "onlyheads" restricts the returned changes to those reachable from the
      specified heads.
    "bundlename", if given, stores the bundle to this file path permanently;
      otherwise it's stored to a temp file and gets deleted again when you call
      the returned "cleanupfn".
    "force" indicates whether to proceed on unrelated repos.

    Returns a tuple (local, csets, cleanupfn):

    "local" is a local repo from which to obtain the actual incoming
      changesets; it is a bundlerepo for the obtained bundle when the
      original "other" is remote.
    "csets" lists the incoming changeset node ids.
    "cleanupfn" must be called without arguments when you're done processing
      the changes; it closes both the original "other" and the one returned
      here.
    theadstforcetdevelslegacy.exchangeRtbundle1t	getbundletcommont
bundlecapstcgtincomingtchangegroupsubsettHG10BZRRc@s7rjnr)tjnjdS(N(RRR((RRtother(s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytcleanup"s

N(#RtfindcommonincomingRRtOSErrorRR#R"tlocalt
configlisttcapableR	t
caps20to10R{RRtwritechunkst_forwardchunksRRtwritebundleRtbaseuitrootRRRtfindmissingRRtlistkeyst
pulloperationRt	trmanagert_pullapplyphases(RtrepoRt	onlyheadsRRttmpRRtrheadst	commonsetR]Rtlegexctforcebundle1t
canbundle2Rutb2RRt
bundletypetcsetsRt	reponodestremotephasestpullopR((RRRs8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pytgetremotechangesst	
%



		
	
&(-t__doc__t
__future__RRRRti18nRRRRERRRRRRR	R
RRR
RRRRRRRR\R`Rmt	localpeerRot
phasecacheRrRdRRRtobjectRR"RpR(((s8/usr/lib/python2.7/dist-packages/mercurial/bundlerepo.pyt<module>s&p~