tests/test-prev-next.t
branchstable
changeset 3783 313484606461
parent 3782 27cf636b2f4d
child 3784 838fc71ddb9c
--- a/tests/test-prev-next.t	Sun Jun 03 02:37:13 2018 +0530
+++ b/tests/test-prev-next.t	Sun Jun 03 03:13:47 2018 +0530
@@ -419,3 +419,23 @@
   @@ -1,1 +1,1 @@
   -hi
   +bar
+
+test that we dont end up in merge conflicts
+
+  $ echo bar > bar
+  $ hg prev
+  abort: conflicting changes
+  (commit or update --clean to discard changes)
+  [255]
+
+  $ echo hi > bar
+  $ hg prev
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  [1] added foo
+  $ echo bar > bar
+  $ hg add bar
+
+  $ hg next
+  abort: conflicting changes
+  (commit or update --clean to discard changes)
+  [255]