tests/test-evolve.t
changeset 477 fded4d945f87
parent 470 a2dfe82f27a0
parent 476 f17a0f801e0b
child 481 4e0f1aae8d24
--- a/tests/test-evolve.t	Tue Aug 21 04:36:25 2012 +0200
+++ b/tests/test-evolve.t	Tue Aug 21 12:47:50 2012 +0200
@@ -230,6 +230,21 @@
   $ hg bookmark -i feature-A
   $ sed -i'' -e s/Eins/Un/ main-file-1
 
+(amend of public changeset denied)
+
+  $ hg phase --public 0 -v
+  phase changed for 1 changesets
+  $ hg amend -c 2
+  abort: cannot amend non ancestor changeset
+  [255]
+
+
+(amend of on ancestors)
+
+  $ hg amend -c 2
+  abort: cannot amend non ancestor changeset
+  [255]
+
   $ hg amend --note 'french looks better'
   1 new unstables changesets
   $ hg log
@@ -251,7 +266,7 @@
   | |/
   | x  1:568a468b60fc@default(draft) a nifty feature
   |/
-  @  0:e55e0562ee93@default(draft) base
+  @  0:e55e0562ee93@default(public) base
   
   $ hg debugobsolete
   524e478d4811d405c8771e4c441de4483bdf8b33 f8111a076f0975cbecb336e2bd3411be22b673fb 0 {'date': '* *', 'user': 'test'} (glob)