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/discovery.pyc
σ
ΫXc@@sΥddlmZddlmZddlmZmZddlmZm	Z	m
Z
mZmZm
Z
mZmZded„Zdefd„ƒYZdeded	„Zd
„Zed„Zd„Zd
„ZdS(i(tabsolute_importi(t_(tnullidtshort(t	bookmarkst	branchmapterrortobsoletetphasestsetdiscoveryt
treediscoverytutilcC@sΗ|jdƒs%tj||||ƒS|rzt}|jj}x$|D]}||ƒsDt}PqDqDW|rz|t|fSntj|j	||d|ƒ}|\}}	}
t
|ƒ|	|pΓt
|
ƒfS(s>Return a tuple (common, anyincoming, heads) used to identify the common
    subset of nodes between repo and remote.

    "common" is a list of (at least) the heads of the common subset.
    "anyincoming" is testable as a boolean indicating if any nodes are missing
      locally. If remote does not support getbundle, this actually is a list of
      roots of the nodes that would be incoming, to be supplied to
      changegroupsubset. No code except for pull should be relying on this fact
      any longer.
    "heads" is either the supplied heads, or else the remote's heads.

    If you pass heads and they are all known locally, the response lists just
    these heads in "common" and in "heads".

    Please use findcommonoutgoing to compute the set of outgoing nodes to give
    extensions a good hook into outgoing.
    t	getbundletabortwhenunrelated(tcapableR
tfindcommonincomingtTruet	changelogthasnodetFalseR	tfindcommonheadstuitlist(trepotremotetheadstforcetallknownt	knownnodethtrestcommontanyinctsrvheads((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyRs

toutgoingcB@sMeZdZdddd„Zd„Zejd„ƒZejd„ƒZ	RS(sRepresents the set of nodes present in a local repo but not in a
    (possibly) remote one.

    Members:

      missing is a list of all nodes present in local but not in remote.
      common is a list of all nodes shared between the two repos.
      excluded is the list of missing changeset that shouldn't be sent remotely.
      missingheads is the list of heads of missing.
      commonheads is the list of heads of common.

    The sets are computed on demand from the heads, unless provided upfront
    by discovery.c
C@s/d||fkst‚|j}|dkr<|jƒ}n|rγg}xC|D];}|jg|j|ƒD]}|tkrk|^qkƒqOW|j||ƒ\}	}
}t|	ƒ}|}g|D]}||krΒ|^qΒ}n|sυtg}n||_	||_
||_d|_d|_
g|_dS(N(tNonetAssertionErrorRRtextendtparentsRtnodesbetweentsettcommonheadstmissingheadst_revlogt_commont_missingtexcluded(
tselfRR)R*tmissingrootstclt	discbasestntptcsetstrootsRtincluded((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt__init__Os(	
9(					cC@s1|jj|j|jƒ}|\|_|_dS(N(R+tfindcommonmissingR)R*R,R-(R/tsets((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt_computecommonmissingjscC@s#|jdkr|jƒn|jS(N(R,R#R;(R/((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyRos
cC@s#|jdkr|jƒn|jS(N(R-R#R;(R/((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pytmissingus
N(
t__name__t
__module__t__doc__R#R8R;Rt
propertycacheRR<(((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyR"@s
	c@sBt|ddƒ}|dkr6t||d|ƒ}n|\|_}}|jjtjpa|j}	|	s‚|py|j	ƒ|_
n+|dkrΤ|jdƒj	ƒ|_
g|jdƒD]}
|
j
ƒ^qΆ|_nΩ|jj|j|ƒ}|\|_}g|_}
g|_}xV|D]N}||}
|
jƒtjksM|
jƒr]|j|ƒq|
j|ƒqWt|
ƒt|ƒkr|}ntj|||ƒ}||_
|r>|jƒ|j‰t‡fd†|jDƒƒ}tˆj|ƒƒ||_t|jƒ}g|j
D]}||kr|^q|_
n|S(sOReturn an outgoing instance to identify the nodes present in repo but
    not in other.

    If onlyheads is given, only nodes ancestral to nodes in onlyheads
    (inclusive) are included. If you already know the local repo's heads,
    passing them in onlyheads is faster than letting them be recomputed here.

    If commoninc is given, it must be the result of a prior call to
    findcommonincoming(repo, other, force) to avoid recomputing it here.

    If portable is given, compute more conservative common and missingheads,
    to make bundles created from the instance more portable.Rtservedssecret() or extinct()c3@s|]}ˆj|ƒVqdS(N(trev(t.0R3(R1(s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>°sN(R"R#RR)t_phasecachet
phaserootsRtsecrettobsstoreRR*tfilteredR(tnodeR.RR9R,R-tphasetextincttappendtlentnewheadsR;t	ancestors(Rtothert	onlyheadsRt	commoninctportabletogt_anyt_hdst
mayexcludetctxR:t
allmissingR<R.RIR*tmissingrevsR)R((R1s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pytfindcommonoutgoing{s>.



!		
	.c@sρˆj}i}t‡fd†|jDƒƒ}|jƒ}|t|ƒ}|j|ƒtƒ}x•|jƒjƒD]\}	}
|j|	ƒg}g}|j}
x7|
D]/}|
|ƒrΚ|j|ƒq¨|j|ƒq¨W|t	|ƒ|f||	<qsWt	‡fd†|jDƒƒ}tƒ}xI|D]A}|j
ƒ}	|j|	ƒ|	|kr'dggf||	<q'q'Wx||D]
}	||	=qwWtjd„|jƒDƒƒ}|j
ˆd„|Dƒƒx)|jƒD]\}	}|||	d(qΞW|S(s£compute a summary of branch and heads status before and after push

    return {'branch': ([remoteheads], [newheads], [unsyncedheads])} mapping

    - branch: the branch name
    - remoteheads: the list of remote heads known locally
                   None if the branch is new
    - newheads: the new remote heads (known locally) with outgoing pushed
    - unsyncedheads: the list of remote heads unknown locally.
    c3@s|]}ˆ|jƒVqdS(N(tbranch(RCR3(R(s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>Εsc3@s|]}ˆ|VqdS(N((RCR3(R(s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>Ψscs@s5|]+\}}|ddk	r||dfVqdS(iiN(R#(RCR\R((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>ζs	cs@s|]}|jƒVqdS(N(RB(RCRX((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>ιsiN(RR(R<Rtdifference_updatet	iteritemstaddRRLRR\R#tbranchcachetupdate(RRR"R1theadssumtbranchest	remotemaptnewbranchestremotebranchesR\RtknowntunsyncedRRt
missingctxttouchedbranchesRXtnewmapRN((Rs7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt
_headssummary·s@	
	
	
	

c@s‹|jj‰t‡fd†|Dƒƒ}|jd||jƒ}td„|Dƒƒ}|rntdgƒ}n	tƒ}i|||fd6S(s;Compute branchmapsummary for repo without branchmap supportc3@s!|]}ˆ|ƒr|VqdS(N((RCR(R(s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>υssheads(%ln + %ln)cs@s|]}|jƒVqdS(N(RI(RCtc((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>όsN(RRR(R<RR#(RtremoteheadsR"tinctoldheadstrRNRh((Rs7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt_oldheadssummaryξs	cC@s|jjƒ}|j}|j}|jdƒ}tƒ}g|jjddƒD]}|j|ƒ^qO}x€|D]œ}|j	|ƒ}	|	rΫ|	|krΫ||||	}
}t
j|||
ƒr
|j|
j
ƒƒq
qq||krq||krq|j||j
ƒƒqqqqW|S(NRtpushing(Rt
unfilteredRt
_bookmarkstlistkeysR(Rt
configlistt
expandnametgetRt	validdestR_RI(tpushopRRtlocalbookmarkstremotebookmarkstbookmarkedheadstbtnewbookmarkstbmtrnodetlctxtrctx((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt_nowarnheadss 			.
c@s³|jjƒ}|j}|j}|j}|j}t|jƒ}|tgkrUdS|j	dƒryt
|||ƒ}nt||||ƒ}g|jƒD]"\}}	|	ddkr›|^q›}
|
r
|r
djt|
ƒƒ}tjtdƒ|dtdƒƒ‚nt|ƒ}d}
|jrrt|jƒ}|jd|jƒ}td	„|Dƒƒ}|j|ƒnxt|jƒƒD]\}}	|	\}}}t|ƒ}|dkrΔtƒ}nt|ƒ}|j|ƒ|j|ƒd}tƒ‰|js|}n¨tƒ}xœ|D]”}||krV||jƒtjkrV|j|ƒqxVtj|j|gƒD]/}||kro||kroˆj|ƒPqoqoW|j|ƒqWt‡fd
†|Dƒƒ}|rΞd|krκd}	nst|ƒdks|j j!r$djd
„|Dƒƒ}	n9djd„|d Dƒƒdtdƒt|ƒd}	|	dkr‚|j j"tdƒƒqΞ|dkr«|j j"tdƒ|	ƒqΞ|j j"tdƒ||	fƒn|dkr)t|ƒdkrXt#|ƒ}|
dkr&tdƒ|}
tdƒ}q&qXn/t|ƒt|ƒkrXt|||ƒ}n|r…|
dkr |dkr™tdƒt$|dƒ|f}
nc||dj%ƒrβtdƒt$|dƒ||dj%ƒdf}
ntdƒt$|dƒ}
|rtdƒ}q tdƒ}n|dkrE|j j&tdƒƒn|j j&tdƒ|ƒx+|D] }|j j&dt$|ƒƒqfWq…q…W|
r―tj|
d|ƒ‚ndS(skCheck that a push won't add any outgoing head

    raise Abort error and display ui message as needed.
    NRis, s%push creates new remote branches: %s!thints8use 'hg push --new-branch' to create new remote branchess%ldcs@s|]}|jƒVqdS(N(RI(RCRm((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>Msc3@s!|]}|ˆkr|VqdS(N((RCR(tdiscardedheads(s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>zsit cs@s|]}t|ƒVqdS(N(R(RCR((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>€scs@s|]}t|ƒVqdS(N(R(RCR((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pys	<genexpr>‚ss
and %s otherss,remote has heads that are not known locally
s0remote has heads that are not known locally: %s
s?remote has heads on branch '%s' that are not known locally: %s
is0push creates new branch '%s' with multiple headss?merge or see 'hg help push' for details about pushing new headstdefaults/push creates new remote head %s on branch '%s'!s3push creates new remote head %s with bookmark '%s'!s push creates new remote head %s!sHpull and merge or see 'hg help push' for details about pushing new headssnew remote heads:
s!new remote heads on branch '%s':
s %s
(R‰N('RRtRR"Rnt	newbranchtbooltincomingRRRlRrR^R#tjointsortedRtAbortRR…RGR(R<RRaRJRtpublicR_Rt
allsuccessorsRMRtverbosetstatusRRRtnote(R{RRR"RnRŠRoRbR\RRetbranchnamestnowarnheadsterrormsgRYtcctxtallfuturecommonRNt
unsyncedheadstcandidate_newhstoldhstdhstnewhstnhtsucRhR†R((R‡s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt
checkheadss²				
	

				
%
	9			,	
%N(t
__future__Rti18nRRIRRtRRRRRR	R
RR#RRtobjectR"R[RlRrR…R‘(((s7/usr/lib/python2.7/dist-packages/mercurial/discovery.pyt<module>s:%;;	7