/
lib64
/
python3.9
/
site-packages
/
hgext
/
hooklib
/
__pycache__
/
New Directory
Upload File
HOME
a �+�b^ � @ s: d Z ddlmZ ddlmZ ddlmZmZ ddd�ZdS ) aw reject_merge_commits is a hook to check new changesets for merge commits. Merge commits are allowed only between different branches, i.e. merging a feature branch into the main development branch. This can be used to enforce policies for linear commit histories. Usage: [hooks] pretxnchangegroup.reject_merge_commits = python:hgext.hooklib.reject_merge_commits.hook � )�absolute_import)�_)�error�pycompatNc s� |dkr t �td�t�|� ��� �� | }� jj|�� d�D ]L�� � ��� � }t |�dk r`q>t� �fdd�|D ��r>t �td�� ��q>d S )Ns pretxnchangegroups Unsupported hook type %r)�start� c 3 s"