o ]Lb@s:dZddlmZddlmZddlmZmZdddZdS) aenforce_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)_)errorpycompatNcKs|dkrttdt|||}|dr0ttdt|dt|d|f|ddkrFttd|t|dfdS)Nspretxnclose-phasesUnsupported hook type %roldphases*Phase change from %r to %r for %s rejectedphasesdrafts%New changeset %s in phase %r rejected)rAbortrrbytestr unfiltered)uirepohooktypenodekwargsctxrE/usr/lib/python3/dist-packages/hgext/hooklib/enforce_draft_commits.pyhooks*    r)N) __doc__ __future__rmercurial.i18nr mercurialrrrrrrrs