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 ) a� enforce_draft_commits us a hook to ensure that all new changesets are in the draft phase. This allows enforcing policies for work-in-progress changes in overlay repositories, i.e. a shared hidden repositories with different views for work-in-progress code and public history. Usage: [hooks] pretxnclose-phase.enforce_draft_commits = python:hgext.hooklib.enforce_draft_commits.hook � )�absolute_import)�_)�error�pycompatNc K s� |dkr t �td�t�|� ��|�� | }|d rbt �td�t�|d �t�|d �|f ��n,|d dkr�t �td�|t�|d �f ��d S )Ns pretxnclose-phases Unsupported hook type %rZoldphases* Phase change from %r to %r for %s rejectedZphases drafts% New changeset %s in phase %r rejected)r ZAbortr r ZbytestrZ unfiltered)ZuiZrepoZhooktypeZnode�kwargs�ctx� r �I/usr/lib64/python3.9/site-packages/hgext/hooklib/enforce_draft_commits.py�hook s( ������r )N) �__doc__Z __future__r Zmercurial.i18nr Z mercurialr r r r r r r �<module> s