Patchwork [4,of,7] test-histedit-edit: test histedit with dirty repo

login
register
mail settings
Submitter timeless@mozdev.org
Date Dec. 28, 2015, 11:29 p.m.
Message ID <c1c00291d5c9b09b4ce8.1451345355@waste.org>
Download mbox | patch
Permalink /patch/12384/
State Accepted
Headers show

Comments

timeless@mozdev.org - Dec. 28, 2015, 11:29 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1449817716 0
#      Fri Dec 11 07:08:36 2015 +0000
# Node ID c1c00291d5c9b09b4ce8bcdc5e90ac5875bc7aa4
# Parent  816c85d7623101c8521f73520eeb6fdfb44741b3
test-histedit-edit: test histedit with dirty repo

Patch

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