File: //usr/lib/python3/dist-packages/mercurial/__pycache__/rewriteutil.cpython-310.pyc
o
�]Lb�! � @ s� d dl mZ d dlZddlmZ ddlmZmZ ddlm Z mZm
Z
mZmZm
Z
mZ e�d�Zdd d
�Zdd
d�Zdd� Zdd� Zdd� Zdd� Zddd�ZdS )� )�absolute_importN� )�_)�hex�nullrev)�error�node�obsolete�obsutil�revset�scmutil�utils \b[0-9a-f]{6,64}\b� c sf | j j� t|�}||k r� fdd�|D �}d�|�}|S |�� }td�}|t�� |��|d f; }|S )z�returns a string summarizing revisions in a decent size
If there are few enough revisions, we list them all. Otherwise we display a
summary of the form:
1ea73414a91b and 5 others
c s g | ] }t �� |���qS � )r �short��.0�r��tonoder �7/usr/lib/python3/dist-packages/mercurial/rewriteutil.py�
<listcomp>+ s z_formatrevs.<locals>.<listcomp>s , s %s and %d othersr )� changelogr �len�join�firstr r )�repo�revs�maxrevs�numrevs�shorts�summaryr r r r �_formatrevs s
�r"