Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/site-packages/hgext/hooklib/__pycache__/ |
Upload File : |
a �+�b� � @ s: d Z ddlmZ ddlmZ ddlmZmZ ddd�ZdS ) aB reject_new_heads is a hook to check that branches touched by new changesets have at most one open head. It can be used to enforce policies for merge-before-push or rebase-before-push. It does not handle pre-existing hydras. Usage: [hooks] pretxnclose.reject_new_heads = python:hgext.hooklib.reject_new_heads.hook � )�absolute_import)�_)�error�pycompatNc K s� |dkr t �td�t�|� ��|�� | }t� }|jj|� � d�D ]}|| }|� |�� � qD|D ]0}t|�d|��dkrdt �td�t�|� ��qdd S )Ns pretxncloses Unsupported hook type %r)�startz&head() and not closed() and branch(%s)� s/ Changes on branch %r resulted in multiple heads) r ZAbortr r ZbytestrZ unfiltered�setZ changelogZrevs�rev�add�branch�len) ZuiZrepoZhooktypeZnode�kwargs�ctxZbranchesr r � r �D/usr/lib64/python3.9/site-packages/hgext/hooklib/reject_new_heads.py�hook s ���r )N) �__doc__Z __future__r Zmercurial.i18nr Z mercurialr r r r r r r �<module> s