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 : |
a �+�b�/ � @ s� d Z ddlmZ ddlZddlmZ ddlmZmZ ddl m Z mZmZm Z mZmZ i Ze�e�ZdZi Ze�e�Zedd dd � eddd ded�fddded�fddded�fddded�fddded�fddded�fgddd�dBdd��ZdCd d!�Zed"g ed#��d$d%� �Zed&ddded�fged'�dd�dDd(d)��ZdEd,d-�Zed.d/d0ded0�fd1d2ded2�fdd3ded3�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�scmutils ships-with-hg-core� hgk� path)�defaults debug-diff-tree� ps patchs generate patch� rs recursive� Ps pretty� ss stdin� Cs copys detect copies� Ss search� s! [OPTION]... NODE1 NODE2 [FILE]...T)Z inferrepoc s d� fdd� }|d r\� j �� }|s(�q|�tj��d�}|d }t|�dkrX|d }nd}|�|�}|rv|�|�}n|}|j� |�d }|d r�|d r�t � ||d � t�|| |�}t �� �} d| _t j||||| d�} | D ]}� �|� q�n|||||d � |d s�qqdS )zdiff trees from two commitsNc s� |d u rg }| | � � }| | � � }t�| | |�}| �|||�}t| j�}|jD ]*} � �dt|| �t|| �| | f � qR|jD ]"} � �d|t|| �| | f � q�|j D ]"} � �dt|| �|| | f � q�d S )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� __difftreeY s2 �� �� ��zdifftree.<locals>.__difftree�stdin� r � r Zprettyr T)r �opts)r )N)�fin�readline�rstripr � oslinesep�split�len�lookup� changelog�parents� catcommitr r r Zdifffeatureopts�git�diff�write)r# r r r r r* r&