> On Oct 14, 2017, at 10:46, Boris Feld <boris.f...@octobus.net> wrote: > > # HG changeset patch > # User Boris Feld <boris.f...@octobus.net> > # Date 1507477846 -7200 > # Sun Oct 08 17:50:46 2017 +0200 > # Node ID 06eeae1828afe149886e18e6b4fc8180a3803fdb > # Parent e1aa5834b2423fd04b32965075e5dee2204768c2 > # EXP-Topic b2.phases.hooks > # Available At https://bitbucket.org/octobus/mercurial-devel/ > # hg pull https://bitbucket.org/octobus/mercurial-devel/ -r > 06eeae1828af > phase: add a dedicated txnclose-phase hook > [snip] > diff --git a/tests/test-phases.t b/tests/test-phases.t > --- a/tests/test-phases.t > +++ b/tests/test-phases.t > @@ -2,6 +2,8 @@ > $ cat >> $HGRCPATH << EOF >> [extensions] >> phasereport=$TESTDIR/testlib/ext-phase-report.py > + > [hooks] > + > txnclose-phase.test = echo "test-hook-close-phase: \$HG_NODE: > \$HG_OLDPHASE -> \$HG_PHASE" >> EOF > > $ hglog() { hg log --template "{rev} {phaseidx} {desc}\n" $*; } > @@ -26,6 +28,7 @@ > > $ mkcommit A > test-debug-phase: new rev 0: x -> 1 > + test-hook-close-phase: 4a2df7238c3b48766b5e22fafbb8a2f506ec8256: -> 1
I don't think there's any other place where we expose numeric values for phase, and I'm not keen to start doing so now. Could you send a follow-up that changes these to the normal 'secret'/'draft'/'public' labels? pacem in terris / мир / शान्ति / سَلاَم / 平和 Kevin R. Bullock _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel