Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/hgext/narrow/__pycache__/ |
Upload File : |
o �]Lby- � @ s d dl mZ d dlZd dlZd dlmZ d dlmZmZm Z m Z mZmZm Z mZmZmZmZ d dlmZ dZdZdZd Zd ZdZdZd ZdZdZe�e�Ze�e�Z d dd�Z!dd� Z"dd� Z#e�$eeef�dd� �Z%e�$e�dd� �Z&e�$e�dd� �Z'dd� Z(dd� Z)dS )!� )�absolute_importN)�_)�bundle2�changegroup�error�exchange� localrepo� narrowspec�repair�requirements�scmutil�util�wireprototypes)� stringutils narrowacls narrow:changespecs narrow:responsespecs narrow:specs includes excludes KILLs DONEs >20s20s20sls >20s20s20s20slc s� � j �dd�s J �|�d�}� fdd�|D �}|sttd���t|�} ttt|�dg ���} ttt|�dg ���}t | � | || |||�d d �� d S ) N� experimental� narrowservebrokenellipses� changegroupc s g | ]}|t �� �v r|�qS � )r �supportedoutgoingversions)�.0�v��repor �</usr/lib/python3/dist-packages/hgext/narrow/narrowbundle2.py� <listcomp>8 s �z3getbundlechangegrouppart_narrow.<locals>.<listcomp>s no common changegroup version�includepats�excludepats�depth) �ui� configbool�get� ValueErrorr �max�sorted�filter�bool�generateellipsesbundle2)�bundlerr �source� bundlecaps�b2caps�heads�common�kwargs� cgversions�version�include�excluder r r �getbundlechangegrouppart_narrow+ s( � �r2 c C s� t j|j||d�}|d urt|�}|dk rt�td�| ��t|p$|�� �}t|p,|j g�}t j|||t� ||d�\} } }|j� dt| � � | rytj|||d|d u|| d�}|�|| dd �} | jd | d�}|�d|� t�|�r{|�d d� d S d S d S )N)r0 r1 � s depth must be positive, got %d)r s Found %d relevant revs T��matcher�ellipses�shallow� ellipsisroots� fullnodesF� narrow_widenr ��data� version� treemanifest� 1)r �match�root�intr �Abortr �setr+ �nullidr �_computeellipsisr �debug�lenr � getbundler�generate�newpart�addparamr �istreemanifest)r'