tests/test-resolve.t
changeset 38913 f35f6791595f
parent 38912 7e75777e4a51
child 39419 5d00e6061ba2
--- a/tests/test-resolve.t	Sun Aug 05 00:53:55 2018 -0700
+++ b/tests/test-resolve.t	Sat Aug 04 12:43:41 2018 +0530
@@ -557,6 +557,35 @@
   R emp2
   R emp3
 
+Test that commands.resolve.confirm respect --unmark option (only when no patterns args are given):
+===============================================================================================
+
+  $ hg resolve -u emp1
+
+  $ hg resolve -l
+  U emp1
+  R emp2
+  R emp3
+
+  $ hg resolve -u << EOF
+  > n
+  > EOF
+  mark all resolved files as unresolved (yn)? n
+  abort: user quit
+  [255]
+
+  $ hg resolve -m << EOF
+  > y
+  > EOF
+  mark all unresolved files as resolved (yn)? y
+  (no more unresolved files)
+  continue: hg rebase --continue
+
+  $ hg resolve -l
+  R emp1
+  R emp2
+  R emp3
+
   $ hg rebase --abort
   rebase aborted
   $ cd ..