# HG changeset patch # User Patrick Mezard # Date 2012-05-10 16:21:15 # Node ID e4451d7432fad223e31b3c5d99d8fc59c80125e6 # Parent 8c3c9031f5aaf14153821bfeb89bc5f0e9835de6 test-phases: test changing null revision phase The behaviour is correct but for bad reasons: the repo.set() call in phase command fails for '-1'. It should be rejected explicitely by phase boundary commands, sadly this is hard to do because phase changes are not applied atomically. diff --git a/tests/test-phases.t b/tests/test-phases.t --- a/tests/test-phases.t +++ b/tests/test-phases.t @@ -9,6 +9,15 @@ $ hg init initialrepo $ cd initialrepo + +Cannot change null revision phase + + $ hg phase --force --secret null + abort: unknown revision '-1'! + [255] + $ hg phase null + -1: public + $ mkcommit A New commit are draft by default