uncommit: add a test for uncommit with uncommitondirtywdir config in merge
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 24 Sep 2017 19:37:55 +0530
changeset 34304 ae510d9691ef
parent 34303 575097b4dce0
child 34305 0e48813cc106
uncommit: add a test for uncommit with uncommitondirtywdir config in merge Differential Revision: https://phab.mercurial-scm.org/D809
tests/test-uncommit.t
--- a/tests/test-uncommit.t	Thu Sep 14 13:14:32 2017 -0700
+++ b/tests/test-uncommit.t	Sun Sep 24 19:37:55 2017 +0530
@@ -354,6 +354,10 @@
   abort: outstanding uncommitted merge
   [255]
 
+  $ hg uncommit --config experimental.uncommitondirtywdir=True
+  abort: cannot uncommit while merging
+  [255]
+
   $ hg status
   M a
   $ hg commit -m 'merge a and b'