test-histedit-edit: test histedit with dirty repo
authortimeless <timeless@mozdev.org>
Fri, 11 Dec 2015 07:08:36 +0000
changeset 27544 a4f008612727
parent 27543 ff0e4c8e642d
child 27545 a67d2e059a51
test-histedit-edit: test histedit with dirty repo
tests/test-histedit-edit.t
--- a/tests/test-histedit-edit.t	Fri Dec 11 07:08:09 2015 +0000
+++ b/tests/test-histedit-edit.t	Fri Dec 11 07:08:36 2015 +0000
@@ -57,6 +57,13 @@
      date:        Thu Jan 01 00:00:00 1970 +0000
      summary:     a
   
+dirty a file
+  $ echo a > g
+  $ hg histedit 177f92b77385 --commands - 2>&1 << EOF
+  > EOF
+  abort: uncommitted changes
+  [255]
+  $ echo g > g
 
 edit the history
   $ hg histedit 177f92b77385 --commands - 2>&1 << EOF| fixbundle