[PATCH 2 of 2] test-histedit-edit: test histedit with dirty repo

timeless timeless at mozdev.org
Fri Dec 11 01:22:27 CST 2015


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1449817716 0
#      Fri Dec 11 07:08:36 2015 +0000
# Node ID 497d2c98f8da3f057ddf523cab3f0f532860f764
# Parent  88fc68941a015579f2f7b3132f8d21e13b4cbf56
test-histedit-edit: test histedit with dirty repo

diff --git a/tests/test-histedit-edit.t b/tests/test-histedit-edit.t
--- a/tests/test-histedit-edit.t
+++ b/tests/test-histedit-edit.t
@@ -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


More information about the Mercurial-devel mailing list