HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/self/root/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyo
�
1�3\c@@sVddlmZddlZddlZddlmZddlmZmZm	Z	ddl
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZddlmZmZd�Zde!dd	d	e!dd
�Z"de#fd��YZ$d
�Z%de#fd��YZ&de&fd��YZ'de&fd��YZ(d�Z)d�Z*e!d�Z+de!d�Z,d�Z-d�Z.d�Z/i	d:d6d;d6d<d 6d=d"6d>d%6d?d'6d@d)6dAd,6dBd.6Z0d/�Z1d0�Z2d1�Z3d2�Z4d3�Z5d4�Z6ddd5�Z7d6�Z8d7�Z9d8�Z:d9�Z;dS(Ci(tabsolute_importNi(t_(tnullidtwdiridtwdirrev(tdagopterrort	formattertgraphmodtmatchtmdifftpatchtpathutiltpycompattrevsett
revsetlangtscmutiltsmartsett
templatekwt	templatertutil(tdateutilt
stringutilcC@s|jd�}|ruyt|�}Wn&tk
rMtjtd���nX|dkr{tjtd���q{nd}|S(s0get the log limit according to option -l/--limittlimits limit must be a positive integerislimit must be positiveN(tgettintt
ValueErrorRtAbortRtNone(toptsR((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytgetlimit+s
tc
@s$|
r'tj|j|j�|
�}
nd}
|
dkr�|j|
�}|
d7}
xO|j�D]>}|j|
�s_�jtd�|j|�|f�q_q_Wn|r�|j	dddt
�}d}�j�s��j�}q�n||j
||||d|d	|	d
|
d|��|dk	s3�j�r�|p<�}|ritjtj��d|�g�nx�tjtj���D]}|j|�q�Wn�|r�tjtj��d|��ntjd
��d|���j�r2��fd�}x]tjtj|���D]}�j|�qWn*x'�D]\}}�j|d|�q9W|r ||}||}x�tj||�D]�\}}|}y$|dk	r�|j|d}nWntk
r�d}nXtj||�}|j
�|||d|d|d|d	|	�q�WndS(sshow diff or diffstat.Rt/s(warning: %s not inside relative root %s
tcontextitnoprefixiPRtprefixtrelroott
hunksfilterfntwidthc[@s|S(N((tchunkstkwargs((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt<lambda>_Rc3@s/x(�D] \}}�j|d|�VqWdS(Ntlabel(R*(tchunkR*(R'tui(s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytgenbsR*itchangeststattfpN( Rt	canonpathtroottgetcwdtuipathtfilest
startswithtwarnRtcopytFalsetplaint	termwidthtdiffRtcanwritewithoutlabelsRtdiffstatRt	iterlinest
filechunkitertchunkbuffertwritet
diffstatuit	difflabeltcanbatchlabeledwritesRtitersubrepostsubstatetKeyErrortmatchmodt
subdirmatcher(R,trepotdiffoptstnode1tnode2R	R.R/R0R#R2tlistsubreposR%R$t	uirelroott	matchrootR&toutR+R-R*tctx1tctx2tsubpathtsubt	tempnode2tsubmatch((R'R,s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytdiffordiffstat9s^!
! 	$!	"



tchangesetdiffercB@s,eZdZd�Zd�Zed�ZRS(sBGenerate diff of changeset with pre-configured filtering functionscC@stj|j��S(N(RtmatchallRK(tselftctx((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt_makefilematcherscC@sdS(N(R(R\R]((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt_makehunksfilter�sc
C@sh|j�}|j�}|j�j�}t|||||d|j|�d|d|j|��dS(NR	R/R%(RKtnodetp1RYR^R_(R\R,R]RLR/RKR`tprev((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytshowdiff�s(t__name__t
__module__t__doc__R^R_R9Rc(((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyRZ|s		cC@s�dd|j�g}|j�r2|jd�n|j�rv|jd�x(|j�D]}|jd|�qXWndj|�S(Ns
log.changesetschangeset.%sschangeset.obsoleteschangeset.unstablesinstability.%st (tphasestrtobsoletetappendt
isunstablet
instabilitiestjoin(R]tlabelstinstability((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytchangesetlabels�s
tchangesetprintercB@sbeZdZd	d	ed�Zd�Zd�Zd	d�Zd�Z	d�Z
d�Zd�ZRS(
s9show changeset information when templating not requested.cC@s�||_||_||_|p't�|_tj||�|_|oT|jd�|_	|ol|jd�|_
i|_i|_d|_d|_tj�|_dS(NR/R(R,RKtbufferedRZt_differRtdiffalloptst	_diffoptsRt_includestatt_includedifftheaderthunkRt
lastheadertfooterRt
getlogcolumnst_columns(R\R,RKtdifferRLRr((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt__init__�s							cC@s�|j�}||jkr`|j|}||jkrS||_|jj|�n|j|=n||jkr�|jj|j|�|j|=ndS(N(trevRxRzR,RBRy(R\R]R�th((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytflush�s
	
cC@s#|jr|jj|j�ndS(N(R{R,RB(R\((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytclose�s	cK@sttj|�}|jr]|jjdt�|j|||�|jj�|j|j	�<n|j|||�dS(Ntlabeled(
R
tbyteskwargsRrR,t
pushbuffertTruet_showt	popbufferRyR�(R\R]tcopiestprops((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytshow�s	cC@s0|j�}|jjr?|jjdtj|�dd�dS|j}|jj|dtj|�dt|��|j�}|dkr�|jj|d|dd�nxv|j	j
j�D]b\}}|d	kr�q�nxA|j
|j	|�D]*}	|jj|j|	dd
|j
�q�Wq�W|jjrZ|jj|d|j�dd�nxTtj|j	|�D]=}
d
|
j�}|jj|dtj|
�d|�qpW|jjr,|j�}|dkr�t}t}
n|j	jj|�}
|jj|dtj|j|
|�dd�n|jj|d|j�dd�|jj|dtj|j��dd�|j�r�|j�}|jj|ddj|�dd�n|j�r�|j |�n|j!|�|jjri|j"�j#|�d }x�t$dddg|�D]<\}}|r&|jj||dj|�dd�q&q&WnH|j%�r�|jj&r�|jj|ddj|j%��dd�n|r
|jj&r
g|D]}d|^q�}|jj|d dj|�dd!�n|j'�}|r{|jjr{xPt(|j)��D]9\}}|jj|d"|t*j+|�fdd#�q;Wn|j,�j-�}|r|jj&r�|jjt.d$�dd%�|jj|dd%�|jjd&�q|jj|d'|j/�d(dd)�n|jjd*�|j0|�dS(+s(show a single changeset or file revisions%s
R*slog.nodeNt	changesettdefaulttbranchs
log.branchtbranchesslog.%stphases	log.phaseslog.parent changeset.%stparenttmanifestsui.debug log.manifesttuserslog.usertdateslog.dateRos, slog.instabilityiR5sfiles+sfiles-Rgsui.debug log.filessui.note log.filess%s (%s)R�sui.note log.copiestextrasui.debug log.extras
description:
sui.note log.descriptions

tsummaryislog.summarys
(1R`R,tquietRBRtformatchangeidR}RpR�RKtnamest	iteritemstlogfmtt	colornamet	debugflagRhtmeaningfulparentstmanifestnodeRRRtmanifestlogR�t
formatrevnodeR�RtdatestrR�RkRlRmRit_showobsfatet_exthookRatstatustzipR5tverboseR�tsortedtitemsRt	escapestrtdescriptiontstripRt
splitlinest
_showpatch(R\R]R�R�t
changenodetcolumnsR�tnsnametnstnametpctxR*tmnodetmrevRlR5tkeytvaluetcR�R�((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR��s�	 
!' 	
$& 

% &
 
!
cC@s�tj|jj|j�}tj|jjddtjd|�}|ji|d6�j�}|r�x2|D]'}|jj	|j
d|dd�qkWndS(Ns{join(obsfate, "
")}tdefaultst	resourcesR]RiR*slog.obsfate(RttemplateresourcesRKR,t
maketemplaterRtkeywordst
renderdefaultR�RBR}(R\R]ttrestttobsfatetobsfateline((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR�"s		
cC@sdS(s7empty method used by extension as a hook point
        N((R\R]((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR�/RcC@s�|jr.|jj|j||jdt�n|jrS|jrS|jjd�n|jr�|jj|j||jdt�n|js�|jr�|jjd�ndS(NR/s
(	RvRsRcR,RuR�RwRBR9(R\R]((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR�3s	%	%N(
RdReRfRR9RR�R�R�R�R�R�R�(((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyRq�s				a	
	tchangesetformattercB@s2eZdZdded�Zd�Zd�ZRS(s1Format changeset information by generic formattercC@sDtj||||||�tj||dt�|_||_dS(Ntgit(RqRRtdifffeatureoptsR�Rut_fm(R\R,RKtfmR~RLRr((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR@scC@s|jj�dS(N(R�tend(R\((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR�FscC@s�|j}|j�|jd|�|jdtj|�d|jtj|���|jj	rddS|jd|j
�d|j�d|j�d|j
|j��d	|j�d
|j|j�dd�d
|j|j�dd�d|jg|j�D]}|j|j��^q�dd��|jjr�|jd|j|j�pPt�d|j|j���|j�j|�}|jd|j|ddd�d|j|ddd�d|j|ddd��nb|jjr;|jd|j|j�dd��|r;|jd|j|dddd��q;n|jr�|jj�|j j!|j||j"dt#�|jd|jj$��n|j%r�|jj�|j j!|j||j"dt&�|jd |jj$��ndS(!s(show a single changeset or file revisionR]R�R`NR�R�R�R�tdesct	bookmarksR�tbookmarkttagsttagtparentsR�R�tmodifieditfiletaddeditremovediR5R�R�R�tsourceR/R>R<('R�t	startitemR!tdataRtintrevthexfunctbinnodeR,R�R�RhR�t
formatdateR�R�t
formatlistR�R�R�R`R�R�Rt
formatdictR�RaR�R�R5RvR�RsRcRuR�R�RwR9(R\R]R�R�R�R�R5((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR�IsH	
	5$"%	
"	
"N(RdReRfRR9RR�R�(((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR�=s
	tchangesettemplatercB@s2eZdZdded�Zd�Zd�ZRS(sformat changeset information.

    Note: there are a variety of convenience functions to build a
    changesettemplater for common cases. See functions such as:
    maketemplater, changesetdisplayer, buildcommittemplate, or other
    functions that use changesest_templater.
    c	C@s�tj||||||�tj||�|_}tj||dtjd|dtj�|_	t
j�|_|j
|_idd6dd6|j
|j
6dd6dd6dd	6|_|jrXtdf|jjd
f|jjdf|jjdfg}x�|D]O\}	}
x@|jD]5}||
}|	r||j	kr||j|<qqWqWnYg|jj�D]}
|
|j
krh|
^qh}tj||j	|�}|jj|�|jdr�|jj|j	j|jdi��ndS(
NR�R�tcacheRRxR{t	docheadert	docfootert	separatort_verboset_quiett_debug(RqRRR�t_tresourcest
loadtemplaterRR�tdefaulttemplR�t	itertoolstcountt_countertreft_treft_partstmapfileR�R,R�R�R�tkeysttemplatepartsmaptupdateRBtrender(R\R,RKttmplspecR~RLRrR�t	tmplmodestmodetpostfixR�tcurtpt	partnamestm((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR�s6	

		
1
cC@s]|jdrJ|js"d|_n|j|jj|jdi�7_ntt|�j�S(NR�R(R�R{R�R�tsuperR�R�(R\((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR��s

	(cC@sq|j�}||d<t|j�|d<}i|d6|d<|jdr�|dkr�|jj|jj|jdi��n|jdr�|jj|jd|�}|jr�||j	|j
�<q�|j|kr�||_|jj|�q�n|j|j}|jj|jj||��|j
|�|jdrm|jsm|jj|jd|�|_qmnd	S(
s(show a single changeset or file revisionR]tindexR�trevcacheR�iRxR{N(R8tnextR�R�R,RBR�R�RrRxR�RzR�R�R{(R\R]R�R�R�R�R�((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR��s&
)
		

	N(RdReRfRR9RR�R�(((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR�vs
%	cC@s<tjrn|r%tjd||�Stjd|d�SdS(NR�R(R
tispy3RttemplatespecR(ttmplR�((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR�s
	cC@s�|rZ|rZ|jdd�}|r<ttj|�d�Stj|jdd��}n|r�|r�|}tjj	|�ds�tj
d|�p�tj
|�}|r�|}q�ntd|�S|s�tdd�Stj|d|�S(sqFind the template matching the given template spec or style

    See formatter.lookuptemplate() for details.
    R,tlogtemplatetstyleismap-cmdline.R�N(
tconfigRRt
unquotestringRRt
expandpathtostpathtsplitttemplatepathRtlookuptemplate(R,RRR�tmapname((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt_lookuptemplate�s 


cC@s%t|d�}t|||d|�S(sKCreate a changesettemplater from a literal template 'tmpl'
    byte-string.RrN(RRR�(R,RKRRrtspec((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR��scC@s�|||f}|jd�dkrI|jd|�}t||||�St||jd�|jd��}|jr�|jr�|jr�t|||�St||||�S(sXshow one changeset using template or regular display.

    Display format will be the first non-empty hit of:
    1. option 'template'
    2. option 'style'
    3. [ui] setting 'logtemplate'
    4. [ui] setting 'style'
    If all of these values are either the unset or the empty string,
    regular display via changesetprinter() is done.
    ttemplatetjsontlogR(	RRR�RR�RR�RqR�(R,RKRR~RrtpostargsR�R((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytchangesetdisplayer�s$c@s�|d	}tj|||�\}}|j�pJ|j�oJ|jd�}|s�|jd�pn|jd�}g}|r�|jd�r�g|D]}	||	^q�}nx�|j�D]��|r�|r�t�fd�|D��rKt}q�qKnU|rK�|krKt	j
j|j���r/t}q�qKt
jtd����n|j��}
|
s�|r�t
jtd����nt}q�q�W|r�x<|j�D]%}|dks�||jkr�Pq�q�Wt}q�n|||fS(
s^Build matcher and expanded patterns from log options

    If --follow, revs are the revisions to follow from.

    Returns (match, pats, slowpath) where
    - match: a matcher built from the given pats and -I/-X opts
    - pats: patterns used (globs are expanded on Windows)
    - slowpath: True if patterns aren't as simple as scanning filelogs
    R�tfollowtfollow_firstR�c3@s|]}�|kVqdS(N((t.0R�(tf(s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pys	<genexpr>)ss/cannot follow file not in parent revision: "%s"s$cannot follow nonexistent file: "%s"t.N(RRtmatchandpatstanypatstalwaysRR5tanyR�RR	texiststwjoinRRRR�tstoreR9(RKtrevstpatsRtwctxR	tslowpathRt	startctxstrtfilelogR	((Rs:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt_makematchers>
( 	

c@s�g�x>|D]6}�|��j�fd��j|�D��q
Wi���fd�}���fd�}tj|�dt�|fS(Nc3@s|]}�|j�VqdS(N(tintrofilectx(RR(R](s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pys	<genexpr>Osc@s"tj��j|j�g��S(N(Rt
matchfilesRR�(R](tfcacheRK(s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytfilematcherWsc3@sRxKtj�d��D]4\}}g|D]}|j�^q)�|<|VqWdS(Ntfollowfirst(RtfilectxancestorsR	(R�tcsR�(R+tfctxsR-(s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytrevgenZs"#titerasc(textendtwalkRtgeneratorsetR9(RKR!R	R-R&R,R1((R]R+R0R-RKs:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt_fileancestorsKs

*cC@sdS(sDhook for extensions to override the filematcher for non-follow casesN(R(RKR"R((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt_makenofollowfilematcher`ssnot merge()t	no_mergessmerge()tonly_mergess_matchfiles(%ps)t_matchfilessdate(%s)R�s
branch(%s)s%lrR�sfilelog(%s)t_patslogskeyword(%s)tkeywords
ancestors(%s)snot %lrtprunesuser(%s)R�cC@s<t|�}|jd�p'|jd�}|jdg�|jdg�|d<g|dD]}|j|�^q[|d<|rddg}x|D]}|jd|�q�Wx+|jdg�D]}|jd	|�q�Wx+|jd
g�D]}|jd|�q�W||d<n|s0t|�|d
<ng}	x�t|j��D]�\}
}|saqIn|
tkrsqInt|
\}}
|r�d|kr�|	j|�qI|
s�|	jtj	||��qI|r�g|D]}tj	||�^q�}n|	jtj	|
|��qIW|	r2ddj
|	�d}	nd}	|	S(s?Return a revset string built from log options and file patternsRRR�tonly_branchsr:s	d:relpathsp:tincludesi:texcludesx:R:R;t%t(s and t)N(tdictRtlookupbranchRjtlistR�R�t_opt2logrevsetRt
formatspecRmR(RKR	R"R$RRtbt	matchargsR�texprtoptvaltrevoptlistoptv((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt_makerevsetpsB&*	

(cC@s�|jd�p|jd�}|jd�rFtj||d�}n[|rp|jj�tkrptj�}n1|r�|jd�}ntj	|�}|j
�|S(s>Return the initial set of revisions to be filtered or followedRRR�R(RRtrevrangetdirstateRaRRtbasesetR!tspansettreverse(RKRRR!((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt_initialrevs�s
c@s�|jd�p|jd�}|jd�}t|�}t||�}|s^tj�d	fSt||||�\�}}d	}|r�|s��j�r�tj	||d|�}nt
||�|�\}}|j�n|d	kr�t|||�}n|d	kr�fd�}nt
|�|||�}	|jd�r�|jd�r�|j�pg|j�s�|jdt�q�n|	r�tjd	|	�}
|
||�}n|d	k	r�|jd|�}nt�}||_||fS(
svReturn (revs, differ) where revs is a smartset

    differ is a changesetdiffer with pre-configured file matcher.
    RRR-c@s�S(N((R](R	(s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR,�stgraphR�RViN(RRRWRRTRR(RRtrevancestorsR6RVR7RQtisdescendingtistopotsortR�RR	tsliceRZR^(RKR"RRR-RR!R$R,RKtmatcherR~((R	s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytgetrevs�s:
		c	C@sg}x�|jdg�D]�}y|jdd�\}}Wn*tk
rgtjtd�|��nXy"tt|jd��\}}Wn*tk
r�tjtd�|��nXtd�|}t	j
|d||�}|j|t
j||�f�qW|S(	sbParse --line-range log option and return a list of tuples (filename,
    (fromline, toline)).
    t
line_ranget,is"malformatted line-range pattern %st:sinvalid line range for %ss3line range pattern '%s' must match exactly one fileN(RtrsplitRRRRtmapRR
RtparsefollowlinespatternRRjRtprocesslinerange(	RKRtlinerangebyfnametpatt	linerangetfromlinettolinetmsgtfname((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt_parselinerangeopt�s
"
c@s@�d}i�x�t�|�D]�\}\}}||krZtjtd�|��n|j|�}xltj|||�D]U\}}|j�}	|	|kr�qn�j	|	i�j	|j
�g�j|�qWq Wd����fd�}
��fd�}t�dt
�}t�}
||
_|
|
_||
fS(sReturn (revs, differ).

    "revs" are revisions obtained by processing "line-range" log options and
    walking block ancestors of each specified file/line-range.

    "differ" is a changesetdiffer with pre-configured file matcher and hunks
    filter.
    s/cannot follow file not in parent revision: "%s"cS@s|S(N((tfctxthunks((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytnofilterhunksfn
sc@s8�j|j����dkr%�S�fd�}|S(Nc3@s��j|j��}|dk	r�xt|D]S\�}�dkrQ�|fVq(nt�fd�|D��r(�|fVq(q(Wnx|D]}|Vq�WdS(Nc3@s%|]}tj�d|�VqdS(iN(R
thunkinrange(Rtlr(thr(s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pys	<genexpr>s(RR	RR(RoRpt
linerangestlinesRy(tfctxlineranges(Rts:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytfilterfns

(RR�R(R]Rx(tlinerangesbyrevRq(Rws:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pythunksfilter
s
c@s.t�j|j�g��}tj�|�S(N(RFRR�RR*(R]R5(RyRK(s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyR,"sRVN(RRnRRRtfilectxRtblockancestorstintrorevt
setdefaultR	RjR�R�RZR^R_(RKtuserrevsRR#RmRjRkRoRiR�RzR,R!R~((RyRqRKs:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytgetlinerangerevs�s,	
"
"!				c@s�|jdd�}|stjStj|�}t|t�rI|j}ntj	|�}tj
||dtjd|���fd�}|S(NR,tgraphnodetemplateR�R�c@s!i|d6|d6}�j|�S(NR]RK(R�(RKR]R�(ttempl(s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt
formatnode:s(RRtgetgraphnodeRRt
isinstanceR�R�RR�R�R�(R,t	displayerRR�R�((R�s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt_graphnodeformatter-s	c	C@sk|p	i}t||�}tj�}|d}	|jd�r\|	jtj|	d��n�itjd6tjd6tj	d6}
xR|
j
�D]D\}}|jdd||	|�|	|<|	|s�d|	|<q�q�W|j
dd	�|d	<xo|D]g\}
}}}|||�}d}|r||j�r|g}xH|j�D]7}|||j��}|r>|j||f�q>q>Wn|||||
|�}t|�}|d
}|j|d|d|tj|��|jj|
�jd
�}|ds�|d=n|j|�xKtj|g|�D]4\}}}}tj||||||�g}q!Wq�W|j�dS(NtstylesRXt|R�tgrandparenttmissingtexperimentals
graphstyle.%stgraphshorteniR�t
graphwidths
i����(R�Rt
asciistateR:R�RDtfromkeystPARENTtGRANDPARENTt
MISSINGPARENTR�RRt
configboolR�R5RjR�R�R
t	strkwargsRytpopR
R�R�tchaintasciiR�(R,RKtdagR�tedgefnt
getrenamedR�R�tstateR�t	edgetypesR�R�R�ttypeR]R�tcharR�tfntrenametedgest	firstedgeR&Rvtcoldata((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytdisplaygraph?sL








(cC@s2tj||�}t||||tj|�dS(N(Rt	dagwalkerR�t
asciiedges(R,RKR!R�R�trevdag((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytdisplaygraphrevspsc
C@s�x�|D]�}||}d}|dk	rz|rzg}xB|j�D]1}|||�}	|	rB|j||	f�qBqBWn|j|d|�|j|�qW|j�dS(NR�(RR5RjR�R�R�(
R,RKR!R�R�R�R]R�R�R�((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytdisplayrevsts

cC@sVxOdgD]D}||kr
||r
tjtd�|jdd���q
q
WdS(Ntnewest_firsts+-G/--graph option is incompatible with --%sRt-(RRRtreplace(R"RRL((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pytcheckunsupportedgraphflags�scC@s?t|�}|j�|dk	r/|| }ntj||�S(N(RRVRRtnodes(RKR�RR((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt	graphrevs�s


(snot merge()N(smerge()N(Ns_matchfiles(%ps)(sdate(%s)N(s
branch(%s)s%lr(sfilelog(%s)s%lr(skeyword(%s)s%lr(s
ancestors(%s)snot %lr(suser(%s)s%lr(<t
__future__RR�Rti18nRR`RRRRRRRRR	RIR
RRR
RRRRRRRtutilsRRRRR9RYtobjectRZRpRqR�R�RRR�RR(R6R7RGRQRWR_RnR�R�R�R�R�R�R�(((s:/usr/lib64/python2.7/site-packages/mercurial/logcmdutil.pyt<module>sTj	A	
�9X			<		
	5		)		=	1