HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/hgext/hooklib/__pycache__/enforce_draft_commits.cpython-310.pyc
o

�]Lb��@s:dZddlmZddlmZddlmZmZddd�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�pycompatNcKs�|dkrt�td�t�|���|��|}|dr0t�td�t�|d�t�|d�|f��|ddkrFt�td�|t�|d�f��dS)Nspretxnclose-phasesUnsupported hook type %r�oldphases*Phase change from %r to %r for %s rejected�phasesdrafts%New changeset %s in phase %r rejected)r�Abortrr�bytestr�
unfiltered)�ui�repo�hooktype�node�kwargs�ctx�r�E/usr/lib/python3/dist-packages/hgext/hooklib/enforce_draft_commits.py�hooks*�������r)N)	�__doc__�
__future__r�mercurial.i18nr�	mercurialrrrrrrr�<module>s