diff tests/test-histedit-edit.t @ 27544:a4f008612727

test-histedit-edit: test histedit with dirty repo
author timeless <timeless@mozdev.org>
date Fri, 11 Dec 2015 07:08:36 +0000
parents bf0900d3819c
children a67d2e059a51
line wrap: on
line diff
--- 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