-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/hgext/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/hgext/hgk.pyc

ó
làÁ\c@s¶dZddlZddlmZmZmZmZmZmZddl	m
Z
mZmZddl
mZiZejeƒZdZeddd	ded
ƒfdddedƒfd
ddedƒfdddedƒfdddedƒfdddedƒfgddeƒddd„ƒZdd„Zedgedƒƒd„ƒZeddddedƒfgedƒdeƒddd „ƒZd!d"ed#„Zed$dd%ded&ƒfged'ƒƒd(„ƒZed)d*d+ded+ƒfd,d-ded-ƒfdd.ded.ƒfd/d0d"ed0ƒfgd1ƒd2„ƒZed3ged4ƒƒd5„ƒZed6d7d8ded9ƒed:ƒfged;ƒƒd<„ƒZdS(=sòbrowse the repository in a graphical way

The hgk extension allows browsing the history of a repository in a
graphical way. It requires Tcl/Tk version 8.4 or later. (Tcl/Tk is not
distributed with Mercurial.)

hgk consists of two parts: a Tcl script that does the displaying and
querying of information, and an extension to Mercurial named hgk.py,
which provides hooks for hgk to get information. hgk can be found in
the contrib directory, and the extension is shipped in the hgext
repository, and needs to be enabled.

The :hg:`view` command will launch the hgk Tcl script. For this command
to work, hgk must be in your search path. Alternately, you can specify
the path to hgk in your configuration file::

  [hgk]
  path=/location/of/hgk

hgk can make use of the extdiff extension to visualize revisions.
Assuming you had already configured extdiff vdiff command, just add::

  [hgk]
  vdiff=vdiff

Revisions context menu will now display additional entries to fire
vdiff on hovered and selected revisions.
iÿÿÿÿN(tcmdutiltcommandstutiltpatchtrevlogtscmutil(tnullidtnullrevtshort(t_tinternalsdebug-diff-treetpRsgenerate patchtrt	recursivetPtprettytststdintCtcopys
detect copiestStsearchts2hg git-diff-tree [OPTION]... NODE1 NODE2 [FILE]...t	inferrepocs†g‡fd†}xmtr|dr‚yEtƒjdƒ}|d}t|ƒdkrc|d}nd
}Wq‚tk
r~Pq‚Xn|j|ƒ}|r©|j|ƒ}n|}|jj|ƒd}|drZ|drït	ˆ||dƒnt
j|||ƒ}tj
|||d	|d
tjˆitd6ƒƒ}	x4|	D]}
ˆj|
ƒq@Wn||||d|ƒ|dsPqqWd
S(sdiff trees from two commitscs,|dk	st‚||jƒ}||jƒ}tj|||ƒ}|j|||ƒd \}}}	ttƒ}
x?|D]7}ˆjdt||ƒt||ƒ||fƒq}Wx5|D]-}ˆjd|
t||ƒ||fƒq¿Wx5|	D]-}ˆjdt||ƒ|
||fƒq÷WdS(Nis:100664 100664 %s %s M	%s	%s
s:000000 100664 %s %s N	%s	%s
s:100664 000000 %s %s D	%s	%s
(	tNonetAssertionErrortmanifestRtmatchtstatusRRtwrite(trepotnode1tnode2tfilestmmaptmmap2tmtmodifiedtaddedtremovedtemptytf(tui(s-/usr/lib/python2.7/dist-packages/hgext/hgk.pyt
__difftree9s"
	,
	"
	Rt iiRRRRtoptstgitR!N(tTruet	raw_inputtsplittlenRtEOFErrortlookupt	changelogtparentst	catcommitRRRtdifftdiffoptsR(R*RRR R!R-R+tlineR$tchunkstchunk((R*s-/usr/lib/python2.7/dist-packages/hgext/hgk.pytdifftree.s6	








cCsèd|}|dkr#||}n|jdt|jƒdƒƒx%|jƒD]}|jd|ƒqQW|jƒ}|jƒjddƒ}|jƒ}	|	rÕ|	dj	dƒrÕ|	dj
d	ƒd
jƒ}
nd}
|jd|jƒt
|dƒ|d
fƒ|
dkr@|jd|
t
|dƒ|d
fƒn|jd
|jƒƒ|jd|jƒƒ|jd|jƒƒ|dkr½|jd||jd|ƒjƒfƒn|j|dƒ|rä|jdƒndS(Ns
stree %s
is
parent %s
tRiÿÿÿÿs
committer:s: isauthor %s %s %s
scommitter %s %s %s
srevision %d
s
branch %s
s
phase %s

s%s%s
(RRRt	changesetR6tdatetdescriptiontreplacet
splitlinest
startswithR1trstriptusertinttrevtbranchtphasestrtstrip(R*RtntprefixtctxtnlprefixRR@RAtlinest	committer((s-/usr/lib/python2.7/dist-packages/hgext/hgk.pyR7ks0

! .+ sdebug-merge-baseshg debug-merge-base REV REVcCsN|j|ƒ}|j|ƒ}|jj||ƒ}|jt|ƒdƒdS(s"output common ancestor informations
N(R4R5tancestorRR(R*RRR RL((s-/usr/lib/python2.7/dist-packages/hgext/hgk.pytbase‹ssdebug-cat-files'hg debug-cat-file [OPTION]... TYPE FILEcKsd}|drJy"tƒjdƒ\}}d}Wq~tk
rFdSXn4|sX|r~|jtdƒƒtj|dƒnxŽ|r|dkrª|jtd	ƒƒd
S|j|ƒ}t||||ƒ|dr
ytƒjdƒ\}}Wqtk
rPqXqPqWdS(scat a specific revisionRRR,s    Ns(cat-file: type or revision not supplied
scat-filetcommits.aborting hg cat-file only understands commits
i(	R0R1R3twarnR	Rthelp_R4R7(R*RttypeRR-RMRL((s-/usr/lib/python2.7/dist-packages/hgext/hgk.pytcatfile“s,



	

ttreeicsfd†}d„}g}g}	g}
d}x~t|ƒD]p\}}
|
jdƒr‹ˆj|
dƒ}|	j|ƒ|
j|ƒq@|
dkr@|
jˆj|
ƒƒq@q@WxÒt|
ƒD]Ä\}}|jtƒƒ|g}||j|ƒx‹|r„|jdƒ}||	kr!qúnx]ˆjj|ƒD]I}|||krk||j|ƒ|j|ƒn||	kr4q4q4q4WqúWqÁWx_|ƒD]T\}}ˆjj	|ƒ}||
||ƒ}|r“d}|r@ˆjj|ƒ}|dt
kr|dt|dƒ7}n|dt
kr@|dt|dƒ7}q@nˆsf|jd	t|ƒ|fƒn^ˆd
kr¨|jd	t|ƒ|fƒt
|ˆ|d|ƒnˆjj|ƒ\}}tt|||fƒ\}}}tˆjj||fƒ\}}|jƒd}|jd|||fƒ||
||ƒ}|tkrs|dkrs|jd
||fƒfn||
||ƒ}|tkr·|dkr·|jd
||fƒn|jdƒ|rÚ||krÚPn|d7}q“q“WdS(Nc3sAtˆƒ}|}dgd}d}xtr<||krI|}d}n
||8}xzt|ƒD]l}|||kr“dg|||||)Pnˆdk	rˆ||||<||jƒq`d||<q`WxVt|dddƒD]>}||dkrç||ˆdk	r||pdfVqçqçW|dkr(Pq(q(WdS(Niidiiÿÿÿÿ(R2R/txrangeRR?(tcounttitlR<tx(tfullR(s-/usr/lib/python2.7/dist-packages/hgext/hgk.pyt	chlogwalk¾s,
		
,cSs^t|ƒdkrdSd}x;tt|ƒƒD]'}|||kr/|d|>O}q/q/W|S(Nii(R2RZ(tart	reachabletshatmaskR\((s-/usr/lib/python2.7/dist-packages/hgext/hgk.pytis_reachableÚsit^itHEADRR,s%s%s
RTs    s%s %s:%ss%s:%s s
(t	enumerateRDR4tappendtsettaddtpopR5R6tnodeRRRR7tmapRHR@R(R*targsRR_tmaxnrR6R`ReRbt	stop_sha1t	want_sha1R[R\targRRLtvisitRRNRdt	parentstrtpptp1tp2thth1th2ti1ti2R@((R_Rs-/usr/lib/python2.7/dist-packages/hgext/hgk.pytrevtree½st	

		 !!
sdebug-rev-parsetdefaulttignoredshg debug-rev-parse REVcs‡fd†}xk|D]c}|jddƒ}|jd||dƒƒt|ƒdkr|jd||dƒƒqqWdS(	sparse given revisionscs+|dkrd}ntjˆj|ƒƒS(NRgttip(RthexR4(RH(R(s-/usr/lib/python2.7/dist-packages/hgext/hgk.pytrevstr,s	t:is%s
iis^%s
N(R1RR2(R*RtrevsR-RƒRtrevrange((Rs-/usr/lib/python2.7/dist-packages/hgext/hgk.pytrevparse's
sdebug-rev-listtHtheadertts
topo-orderR6RLs	max-counts$hg debug-rev-list [OPTION]... REV...cOsW|drd}nd}g|D]}|^q }t|||||d|dƒdS(sprint revisionsR‰RTt	max_countR6N(RR~(R*RR…R-R_R^R((s-/usr/lib/python2.7/dist-packages/hgext/hgk.pytrevlist:s

	sdebug-configshg debug-configcs/‡fd†}|dˆjdddƒƒdS(sprint extension optionscsˆjd||fƒdS(Ns
k=%s
v=%s
(R(tnametvalue(R*(s-/usr/lib/python2.7/dist-packages/hgext/hgk.pytwriteoptLstvdiffthgkRN(tconfig(R*RR-R((R*s-/usr/lib/python2.7/dist-packages/hgext/hgk.pyR’IstviewR]tlimits!limit number of changes displayedtNUMshg view [-l LIMIT] [REVRANGE]cOsœtj|jƒdjg|jƒD]"\}}|r#d||f^q#ƒ}|jdddƒd|dj|ƒf}|jd|ƒtj|ƒdS(	s start interactive history viewerR,s--%s %sR‘tpaths/usr/share/mercurial/hgks %s %ssrunning %s
N(	tostchdirtroottjoint	iteritemsR’tdebugRtsystem(R*RtetcR-tktvtoptstrtcmd((s-/usr/lib/python2.7/dist-packages/hgext/hgk.pyR“Rs
>,(t__doc__R—t	mercurialRRRRRRtmercurial.nodeRRRtmercurial.i18nR	tcmdtabletcommandt
testedwithRR/R=R7RSRXtFalseR~R‡RŒR’R“(((s-/usr/lib/python2.7/dist-packages/hgext/hgk.pyt<module>#sN.4 !&j
!		

Copyright © 2017 || Recoded By Mr.Bumblebee