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 : /usr/lib64/python3.9/site-packages/mercurial/__pycache__/ |
Upload File : |
a �+�bF� � @ sv d dl mZ d dlZddlmZ ddlmZ ddlmZm Z m Z mZmZm Z e jZe jZdZdd � Zd@dd�ZdAd d�Zdd� ZdBdd�Zdd� Zdd� Zdd� ZdCdd�Zdd� ZG dd� de�Zdd � ZdDd!d"�Zd#d$� ZdEd%d&�Z d'd(� Z!ej"d)d)d*�G d+d,� d,e��Z#ej"d)d)d*�G d-d.� d.e��Z$d/d0� Z%d1d2� Z&d3d4� Z'dFd5d6�Z(dGd8d9�Z)d:d;� Z*dHd<d=�Z+d>d?� Z,dS )I� )�absolute_importN� )�attr��nullrev)�error�mdiff�patch�pycompat�scmutil�smartsetl c c s4 |du rd}|du rt }|dkr$dS |dk r6t�d��|r@d}nd}|�|� t|�}g }t|d�}|dur�t�||| df� d} |�r0t�|�\} }|| } | |kr�t|d�}|dur�t�||| df� | | k}|r�||kr�| } | V |d } |r�| |k r�| | �D ]$}|t k�rt�||| | f� �qq�dS )a( Walk DAG using 'pfunc' from the given 'revs' nodes 'pfunc(rev)' should return the parent/child revisions of the given 'rev' if 'reverse' is True/False respectively. Scan ends at the stopdepth (exlusive) if specified. Revisions found earlier than the startdepth are omitted. Nr s negative stopdepth���r ) �maxlogdepthr ZProgrammingError�sort�iter�next�heapq�heappush�heappopr )�pfunc�revs� startdepth� stopdepth�reverseZheapsignZirevs�pendingheapZinputrevZlastrev�currevZcurdepthZfoundnewZpdepth�prev� r �5/usr/lib64/python3.9/site-packages/mercurial/dagop.py�_walkrevtree sD r Fc # s� i � g �� �fdd�}|r d}nd}| D ]}||� q(� r�t ��� }� �|�}||fV |D ]"}|�� d|� D ]}||� qrq^q6�r�J �dS )z�Like filectx.ancestors(), but can walk from multiple files/revisions, and includes the given fctxs themselves Yields (rev, {fctx, ...}) pairs in descending order. c s<