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/simplemerge.pyc
ó
ÛXc@@s¥ddlmZddlZddlZddlmZddlmZmZm	Z	m
Z
defd„ƒYZd„Z
d	„Zd
efd„ƒYZd„ZdS(
i(tabsolute_importNi(t_(terrortmdifftscmutiltutiltCantReprocessAndShowBasecB@seZRS((t__name__t
__module__(((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pyR scC@s€|d|dkst‚|d|dks4t‚t|d|dƒ}t|d|dƒ}||krx||fSdSdS(sGiven two ranges return the range where they intersect or None.

    >>> intersect((0, 10), (0, 6))
    (0, 6)
    >>> intersect((0, 10), (5, 15))
    (5, 10)
    >>> intersect((0, 10), (10, 15))
    >>> intersect((0, 9), (10, 15))
    >>> intersect((0, 9), (7, 15))
    (7, 9)
    iiN(tAssertionErrortmaxtmintNone(tratrbtsatsb((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pyt	intersect#s
cC@sj||||krtSxKtt||ƒt||ƒƒD]$\}}||||kr:tSq:WtSdS(s?Compare a[astart:aend] == b[bstart:bend], without slicing.
    N(tFalsetziptxrangetTrue(tatastarttaendtbtbstarttbendtiatib((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pyt
compare_range9s.t
Merge3Textc
B@sqeZdZdddd„Zdddddddded„	Zd„Zd„Zd„Z	d	„Z
d
„ZRS(s 3-way merge of texts.

    Given strings BASE, OTHER, THIS, tries to produce a combined text
    incorporating the changes from both BASE->OTHER and BASE->THIS.cC@s”||_||_||_|dkr9tj|ƒ}n|dkrWtj|ƒ}n|dkrutj|ƒ}n||_||_||_dS(N(	tbasetexttatexttbtextRRt
splitnewlinestbaseRR(tselfR R!R"R$RR((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pyt__init__Is					s<<<<<<<s=======s>>>>>>>c
c@sJt|_d}
t|jƒdkre|jdjdƒrCd}
qe|jdjdƒred}
qen|r‚|r‚|d|}n|rŸ|rŸ|d|}n|r¼|r¼|d|}n|jƒ}|	rà|j|ƒ}nxc|D][}|d}
|
dkr4x<t|d|dƒD]}|j|VqWqç|
d	ksL|
d
kr}xót|d|dƒD]}|j|VqdWqç|
dkrºx¶t|d|dƒD]}|j	|Vq¡Wqç|
dkr6|d
krx^t|d|dƒD]}|j|VqêWqB|dkr@x!t|d|dƒD]}|j	|Vq'WqBt
|_|dk	ra||
Vnx+t|d|dƒD]}|j|VqyW|dk	rÕ||
Vx.t|d|dƒD]}|j|Vq¼Wn|dk	rí||
Vnx+t|d|dƒD]}|j	|VqW|dk	rB||
VqBqçt|
ƒ‚qçWdS(s'Return merge in cvs-like form.
        s
is
s
t t	unchangediiRtsameRtconflicttlocaliitotheriiN(
Rt	conflictstlenRtendswitht
merge_regionstminimizetrangeR$RRRt
ValueError(R%tname_atname_bt	name_basetstart_markert
mid_markert
end_markertbase_markertlocalorotherR1tnewlineR0tttwhatti((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pytmerge_linesWsd		

		cc@sx|jƒD]}|d}|dkrI||j|d|d!fVq
|dksa|dkr||j|d|d!fVq
|dkr­||j|d|d!fVq
|dkr||j|d|d!|j|d	|d
!|j|d|d!fVq
t|ƒ‚q
Wd
S(s«Yield sequence of line groups.  Each one is a tuple:

        'unchanged', lines
             Lines unchanged from base

        'a', lines
             Lines taken from a

        'same', lines
             Lines taken from a (and equal to b)

        'b', lines
             Lines taken from b

        'conflict', base_lines, a_lines, b_lines
             Lines from base were changed to either a or b and conflict.
        iR(iiRR)RR*iiiiN(R0R$RRR3(R%R=R>((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pytmerge_groups˜s
   cc@sPd}}}x;|jƒD]-}|\}}}}}	}
||}|dksUt‚|||kskt‚||
|	kst‚||}|	|}
||}|dks±t‚|
dksÃt‚|dksÕt‚|sá|
rÝt|j|||j||ƒ}t|j||	|j||ƒ}t|j|||j||	ƒ}|r[d||fVns|ry|ryd||	fVnU|r—|r—d||fVn7|rÂ|rÂd||||||	fVntdƒ‚|}|	}n|}|dkr||kst‚||	kst‚||ks%t‚d||fV|}|}|
}qqWdS(	sîReturn sequences of matching and conflicting regions.

        This returns tuples, where the first value says what kind we
        have:

        'unchanged', start, end
             Take a region of base[start:end]

        'same', astart, aend
             b and a are different from base but give the same result

        'a', start, end
             Non-clashing insertion from a[start:end]

        'conflict', zstart, zend, astart, aend, bstart, bend
            Conflict between a and b, with z as common ancestor

        Method is as follows:

        The two sequences align only on regions which match the base
        and both descendants.  These are found by doing a two-way diff
        of each one against the base, and then finding the
        intersections between those regions.  These "sync regions"
        are by definition unchanged in both and easily dealt with.

        The regions in between can be in any of three cases:
        conflicted, or changed on only one side.
        iR)RRR*s#can't handle a=b=base but unmatchedR(N(tfind_sync_regionsR	RRR$R(R%tizRRtregiontzmatchtzendtamatchRtbmatchRtmatchlentlen_atlen_btlen_basetequal_atequal_bR)((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pyR0ºsP





	c	c@sxz|D]r}|ddkr(|Vqn|\}}}}}}}	||}
|	|}d}xH||
kr§||kr§|j|||j||kr§|d7}q`W|}
d}xP||
kr||kr|j||d|j|	|dkr|d7}q·W|}|
dkr.d|||
fVnd||||
||||
|	|fV|dkrd|||fVqqWdS(sTrim conflict regions of lines where A and B sides match.

        Lines where both A and B have made the same changes at the begining
        or the end of each merge region are eliminated from the conflict
        region and are instead considered the same.
        iR*iR)N(RR(R%R0RDtissuetz1tz2ta1ta2tb1tb2talentblentiitstartmatchest
endmatches((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pyR1s0


"*	cC@sed}}tj|j|jƒ}tj|j|jƒ}t|ƒ}t|ƒ}g}xº||kr||kr||\}}	}
||\}}}
t|||
f|||
fƒ}|ræ|d}|d}||}||
ksòt‚||
kst‚||kst‚||ks(t‚|	||}|||}||}||}|j||!|j	||!ksžt|j||!|j	||!fƒ‚|j||!|j
||!ksÄt‚|j||||||fƒn||
||
kr|d7}q[|d7}q[Wt|jƒ}t|j	ƒ}t|j
ƒ}|j||||||fƒ|S(sÛReturn a list of sync regions, where both descendants match the base.

        Generates a list of (base1, base2, a1, a2, b1, b2).  There is
        always a zero-length sync region at the end of all the files.
        ii(Rtget_matching_blocksR R!R"R.RR	R$RRtappend(R%RRtamatchestbmatchesRJRKtsltabaseRGRVtbbaseRHRWR?tintbasetintendtintlentasubtbsubRR((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pyRB:sH
#




##&
c	C@sÛtj|j|jƒ}tj|j|jƒ}g}xž|rÖ|rÖ|dd}||dd}|dd}||dd}t||f||fƒ}|r¶|j|ƒn||krÌ|d=q9|d=q9W|S(s8Return a list of ranges in base that are not conflicted.ii(RR[R R!R"RR\(	R%tamtbmtuncRRRSRTRUR?((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pytfind_unconflictedws
N(RRt__doc__RR&RR@RAR0R1RBRj(((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pyRDs 8	"	Y	'	=c@s’‡‡fd†}ˆjddƒ}|dkrEd}d}d}	n«|}|}d}	ˆjdgƒ}
t|
ƒdkrˆ|
d}nt|
ƒdkr§|
d}nt|
ƒdkrÆ|
d}	nt|
ƒd	krðtjtd
ƒƒ‚ny(||ƒ}||ƒ}||ƒ}
Wntjk
r/dSXtjj|ƒ}ˆjdƒst	j
tjj|ƒƒ}|tjj|ƒdd
t
ƒ}n	tj}t|||
ƒ}iˆjddƒd6t
d6}|dkrød|d<d|d<d|d<n-|	dk	r%d|d<|	|d<t|d<nx0|jd|d||D]}|j|ƒqAWˆjdƒst|jƒn|jrŽ|dkrŽdSdS(Nc@s•t|dƒ}|jƒ}|jƒtj|ƒr‘tdƒ|}ˆjdƒsmˆjtdƒ|ƒnˆjdƒs‘tj	|ƒ‚q‘n|S(NRs%s looks like a binary file.tquietswarning: %s
ttext(
topentreadtcloseRtbinaryRtgettwarnRtAbort(tfilenametfRmtmsg(toptstui(s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pytreadfile‘s
tmodetmergetuniontlabeliiiiscan only specify three labels.tprinttwt
atomictempR;R1R7R8R9s|||||||R:R6R4R5(RrRR.RRtRtostpathtrealpathRtopenertdirnametbasenameRtsyststdoutRRR@twriteRpR-(RyR+R$R,RxRzR{R4R5R6tlabelst	localtextR t	othertextR…touttm3textrakwargstline((RxRys9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pytsimplemerges^	


$	






"
(t
__future__RR‚Rˆti18nRtRRRRt	ExceptionRRRtobjectRR’(((s9/usr/lib/python2.7/dist-packages/mercurial/simplemerge.pyt<module>s"		ÿM