File: //kunden/lib/python3/dist-packages/hgext/hooklib/__pycache__/reject_merge_commits.cpython-39.pyc
a
%0�_^ � @ 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"