
    6h                    :    S r SSKJr  SSKJr  SSKJrJr  SS jrg)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
    )annotations)_)errorpycompatNc                   US:w  a6  [         R                  " [        S5      [        R                  " U5      -  5      eUR                  5       U   nUS   (       aS  [         R                  " [        S5      [        R                  " US   5      [        R                  " US   5      U4-  5      eUS   S:w  a;  [         R                  " [        S5      U[        R                  " US   5      4-  5      eg )Ns   pretxnclose-phases   Unsupported hook type %roldphases*   Phase change from %r to %r for %s rejectedphases   drafts%   New changeset %s in phase %r rejected)r   Abortr   r   bytestr
unfiltered)uirepohooktypenodekwargsctxs         E/usr/lib/python3/dist-packages/hgext/hooklib/enforce_draft_commits.pyhookr      s    ''kk)*X-=-=h-GG
 	
 //
D
!Cjkk;<  
!34  1
 	
 
H	$kk67H$$VG_567
 	
 
%    )N)	__doc__
__future__r   mercurial.i18nr   	mercurialr   r   r    r   r   <module>r      s   	 # 
r   