diff tests/test-phases.t @ 16622:e4451d7432fa

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.
author Patrick Mezard <patrick@mezard.eu>
date Thu, 10 May 2012 18:21:15 +0200
parents 39d1f83eb05d
children 58edd786e96f
line wrap: on
line diff
--- a/tests/test-phases.t	Fri May 11 14:48:24 2012 +0200
+++ b/tests/test-phases.t	Thu May 10 18:21:15 2012 +0200
@@ -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