tests/test-histedit-obsolete.t
branchstable
changeset 19473 10a0ae668fe6
parent 19019 53060cc1b601
child 19924 c23c62209cc4
--- a/tests/test-histedit-obsolete.t	Wed Jul 24 13:20:44 2013 +0800
+++ b/tests/test-histedit-obsolete.t	Wed Jul 24 17:39:29 2013 -0400
@@ -441,4 +441,19 @@
   |
   o  0:cb9a9f314b8b (public) a
   
+  $ hg co 18
+  0 files updated, 0 files merged, 2 files removed, 0 files unresolved
+  $ echo wat >> wat
+  $ hg add wat
+  $ hg ci -m 'add wat'
+  created new head
+  $ hg merge 19
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  (branch merge, don't forget to commit)
+  $ hg ci -m 'merge'
+  $ echo not wat > wat
+  $ hg ci -m 'modify wat'
+  $ hg histedit 17
+  abort: cannot edit history that contains merges
+  [255]
   $ cd ..