ruạṛ
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
cải xoăn