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

Xc@@sddlmZddlZddlmZddlmZmZddlm	Z
mZeeZde
dZd	Zd
ZdZdZdS(
i(tabsolute_importNi(t_(thextnullid(ttagstutiltc	
C@sptj|||d|dddtd}x>|jD]0\}}|s8x|D]}d|d<qQWq8q8W|S(sread the .hgtags file into a structure that is suitable for merging

    Depending on the keeplinenums flag, clear the line numbers associated
    with each tag. This is done because only the line numbers of the first
    parent are useful for merging.
    tfntrecodet
calcnodelinesiN(ttagsmodt_readtaghisttNonetTruetitems(	tuitrepotlinesRtkeeplinenumstfiletagsttagnamettaginfotel((s6/usr/lib/python2.7/dist-packages/mercurial/tagmerge.pytreadtagsformergeZs

cC@sd}x*|D]"\}}|}|dk	r
Pq
q
W|dkrcdg|D]}|d^qIggS||dd<|ggg}|}xp|D]h\}}|dk	r||dkr|j|ggn|ddj||dk	r|}qqW|S(s
    Group nearby nodes (i.e. those that must be written next to each other)

    The input is a list of [node, position] pairs, corresponding to a given tag
    The position is the line number where the node was found on the first parent
    .hgtags file, or None for those nodes that came from the base or the second
    parent .hgtags files.

    This function groups those [node, position] pairs, returning a list of
    groups of nodes that must be written next to each other because their
    positions are consecutive or have no position preference (because their
    position is None).

    The result is a list of [position, [consecutive node list]]
    iiiN(Rtappend(ttagnodestfirstlinenumthexnodetlinenumRtgroupednodestprevlinenum((s6/usr/lib/python2.7/dist-packages/mercurial/tagmerge.pytgrouptagnodesbylineis"$
cC@sx*|jD]\}}t|||<q
Wd}g}xL|jD]>\}}x%|D]}||d||d<q\W||7}qIW|jdtjddjg|D]\}}|r|^q}	|jdd}
|
j|	d|
jdS(	sl
    write the merged tags while trying to minimize the diff to the first parent

    This function uses the ordering info stored on the merged tags dict to
    generate an .hgtags file which is correct (in the sense that its contents
    correspond to the result of the tag merge) while also being as close as
    possible to the first parent's .hgtags file.
    cS@s*djg|D]}d||f^q
S(Ns
s%s %s(tjoin(ttlistttnameR((s6/usr/lib/python2.7/dist-packages/mercurial/tagmerge.pyttaglist2stringsitkeyis
s.hgtagstwbN(	RRtsorttoperatort
itemgetterR twfiletwritetclose(Rt
mergedtagsR"ttaglistR#t	finaltagsRtblocktranktmergedtagstringtfp((s6/usr/lib/python2.7/dist-packages/mercurial/tagmerge.pytwritemergedtagss
	
.cC@s|s
|S|s|S|dd}|dd}||krXt|t|krXdSt|t|kr||}}n
||}}t|}xVtt|D]B}||d||dkr|}Pn||d||d<qW|||S(s
    merge the nodes corresponding to a single tag

    Note that the inputs are lists of node-linenum pairs (i.e. not just lists
    of nodes)
    iiiN(tlenRtrange(tp1nodestp2nodest
p1currentnodet
p2currentnodethrnodestlrnodest	commonidxtn((s6/usr/lib/python2.7/dist-packages/mercurial/tagmerge.pytsingletagmerges$$
cC@s|j}t|||jjdddt}t|||jjdddt}t|||jjdddt}t|}xt||fD]s\}	}
t|
}||}xN|D]F}
||
|
|
<|
|
ddtkr|
|
j	tdgqqWqWg}tj|}xx|j
D]j\}}||krg|||<q?n||}t||}|dkr|j	|q?n|||<q?W|rt|}|jtd|d	jt|ftd
fSt|||jtdtdfS(
s
    Merge the tags of two revisions, taking into account the base tags
    Try to minimize the diff between the merged tags and the first parent tags
    Rsp1 tagsRsp2 tagss	base tagsiisIautomatic .hgtags merge failed
the following %d tags are in conflict: %s
s, is.hgtags merged successfully
N(RRtdatat
splitlinesR
tFalsetsett	enumeratet	hexnullidRRRtsortdictRR>R4twarnRR tsortedR3tnote(RtfcdtfcotfcaRtp1tagstp2tagstbasetagst
basetagsetR=tpntagstpntagsettpnlosttagsettttconflictedtagsR,R"R7R6tmergednodestnumconflicts((s6/usr/lib/python2.7/dist-packages/mercurial/tagmerge.pytmergesL				

"




(t
__future__RR'ti18nRtnodeRRRRR
RRDRARRR3R>RW(((s6/usr/lib/python2.7/dist-packages/mercurial/tagmerge.pyt<module>Js	"	%	-