403 Forbidden


Disable Functions:
Path : /usr/lib64/python2.7/site-packages/hgext/
File Upload :
Command :
Current File : //usr/lib64/python2.7/site-packages/hgext/hgk.pyo

�
Hq�Qc@s�dZddlZddlmZmZmZmZmZddlm	Z	m
Z
mZddlm
Z
dZddd�Zdd�Zd	�Zddd
�Zdded
�Zd�Zd�Zd�Zd�Zieddde
d�e
d�fge
d�fd6eddde
d�fddde
d�fddde
d�fd d!de
d!�fd"d#de
d$�fd%d&de
d&�fge
d'�fd(6ed d!de
d!�fge
d)�fd*6ege
d+�fd,6ege
d-�fd.6edd/de
d0�fge
d1�fd26ed3d4de
d4�fd5d6de
d6�fdd7de
d7�fd8d9de
d9�fge
d:�fd;6Zejd<7_dS(=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(tcommandstutiltpatchtrevlogtscmutil(tnullidtnullrevtshort(t_tinternalc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||j�}||j�}tj|||�}|j|||�d \}}}	tt�}
x?|D]7}�jdt||�t||�||f�qkWx5|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
(tmanifestRtmatchtstatusRRtwrite(trepotnode1tnode2tfilestmmaptmmap2tmtmodifiedtaddedtremovedtemptytf(tui(s//usr/lib64/python2.7/site-packages/hgext/hgk.pyt
__difftree.s"
	,
	"
	tstdint iiRtprettytRtoptstgitRN(tTruet	raw_inputtsplittlentNonetEOFErrortlookupt	changelogtparentst	catcommitRRRtdifftdiffoptsR
(RRRRRR RtlineRtchunkstchunk((Rs//usr/lib64/python2.7/site-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
(R&R
Rt	changesetR*tdatetdescriptiontreplacet
splitlinest
startswithR$trstriptusertinttrevtbranchtphasestrtstrip(RRtntprefixtctxtnlprefixtpR4R5tlinest	committer((s//usr/lib64/python2.7/site-packages/hgext/hgk.pyR+`s0

! .+ cCsN|j|�}|j|�}|jj||�}|jt|�d�dS(s"output common ancestor informations
N(R(R)tancestorR
R(RRRRR@((s//usr/lib64/python2.7/site-packages/hgext/hgk.pytbase�scKsd}|drJy"t�jd�\}}d}Wq~tk
rFdSXn4|sX|r~|jtd��tj|d�nx�|r|dkr�|jtd	��d
S|j|�}t||||�|dr
yt�jd�\}}Wqtk
rPqXq�Pq�WdS(scat a specific revisionRRRs    Ns(cat-file: type or revision not supplied
scat-filetcommits.aborting hg cat-file only understands commits
i(	R#R$R'twarnRRthelp_R(R+(RRttypetrR RAR@((s//usr/lib64/python2.7/site-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����(R%R"txrangeR&R3(tcounttitlR0tx(tfullR(s//usr/lib64/python2.7/site-packages/hgext/hgk.pyt	chlogwalk�s,
		
,cSs^t|�dkrdSd}x;tt|��D]'}|||kr/|d|>O}q/q/W|S(Nii(R%RP(tart	reachabletshatmaskRR((s//usr/lib64/python2.7/site-packages/hgext/hgk.pytis_reachable�sit^itHEADRRs%s%s
RIs    s%s %s:%ss%s:%s s
(t	enumerateR8R(tappendtsettaddtpopR)R*tnodeRRR
R+tmapR<R4R(RtargsRRUtmaxnrR*RVR[RXt	stop_sha1t	want_sha1RQRRtargtsR@tvisitRDRBRZt	parentstrtpptp1tp2thth1th2ti1ti2R4((RURs//usr/lib64/python2.7/site-packages/hgext/hgk.pytrevtree�st	

		 !!
cs��fd�}xk|D]c}|jdd�}|jd||d��t|�dkr|jd||d��qqWdS(	sparse given revisionscs+|dkrd}ntj�j|��S(NR]ttip(RthexR((R<(R(s//usr/lib64/python2.7/site-packages/hgext/hgk.pytrevstrs	t:is%s
iis^%s
N(R$R
R%(RRtrevsR RxRMtrevrange((Rs//usr/lib64/python2.7/site-packages/hgext/hgk.pytrevparses
cOsW|drd}nd}g|D]}|^q }t|||||d|d�dS(sprint revisionstheaderRIt	max_countR*N(R&Ru(RRRzR RURTtcopy((s//usr/lib64/python2.7/site-packages/hgext/hgk.pytrevlist's

	cs/�fd�}|d�jddd��dS(sprint extension optionscs�jd||f�dS(Ns
k=%s
v=%s
(R
(tnametvalue(R(s//usr/lib64/python2.7/site-packages/hgext/hgk.pytwriteopt2stvdiffthgkRN(tconfig(RRR R�((Rs//usr/lib64/python2.7/site-packages/hgext/hgk.pyR�0scOs�tj|j�djg|j�D]"\}}|r#d||f^q#�}|jddd�d|dj|�f}|jd|�tj|�dS(s start interactive history viewerRs--%s %sR�tpaths %s %ssrunning %s
N(	tostchdirtroottjoint	iteritemsR�tdebugRtsystem(RRtetcR tktvtoptstrtcmd((s//usr/lib64/python2.7/site-packages/hgext/hgk.pytview8s
>,RStlimitRs!limit number of changes displayedtNUMshg view [-l LIMIT] [REVRANGE]s^viewRDRsgenerate patchRMt	recursivetPRRjRtCRs
detect copiestStsearchs2hg git-diff-tree [OPTION]... NODE1 NODE2 [FILE]...sdebug-diff-trees'hg debug-cat-file [OPTION]... TYPE FILEsdebug-cat-fileshg debug-configsdebug-configshg debug-merge-base REV REVsdebug-merge-basetdefaulttignoredshg debug-rev-parse REVsdebug-rev-parsetHR}tts
topo-orderR*R@s	max-counts$hg debug-rev-list [OPTION]... REV...sdebug-rev-lists debug-diff-tree debug-cat-file(t__doc__R�t	mercurialRRRRRtmercurial.nodeRRRtmercurial.i18nRt
testedwithR&R1R+RHRNtFalseRuR|R�R�R�tcmdtablet	inferrepo(((s//usr/lib64/python2.7/site-packages/hgext/hgk.pyt<module>#sT(4 	&j						

404 Not Found
[ LogOut ]