tests/test-histedit-obsolete.t
changeset 17762 57f27cbfc5bb
parent 17761 c80a7a0c7d22
child 17764 c1b661ee29ff
--- a/tests/test-histedit-obsolete.t	Thu Sep 27 14:00:52 2012 +0200
+++ b/tests/test-histedit-obsolete.t	Fri Oct 12 21:41:08 2012 +0200
@@ -121,3 +121,22 @@
   > EOF
   $ hg histedit 6 --commands commands.txt
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+
+
+Check that histedit respect phases
+=========================================
+
+(not directly related to the test file but doesn't deserve it's own test case)
+
+  $ hg log -G
+  @  9:7c044e3e33a9 f
+  |
+  o  6:d36c0562f908 c
+  |
+  o  0:cb9a9f314b8b a
+  
+  $ hg ph -pv '.^'
+  phase changed for 2 changesets
+  $ hg histedit -r '.~2'
+  abort: cannot edit immutable changeset: cb9a9f314b8b
+  [255]