| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /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^q6dS )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<