tests: add tests for rebasing wdir() revision
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 31 Jan 2020 10:41:50 -0800
changeset 44238 6e4ff6a766c2
parent 44237 b4057d001760
child 44239 830eae18b2f3
tests: add tests for rebasing wdir() revision Differential Revision: https://phab.mercurial-scm.org/D8056
tests/test-rebase-parameters.t
--- a/tests/test-rebase-parameters.t	Wed Jan 22 13:29:26 2020 -0800
+++ b/tests/test-rebase-parameters.t	Fri Jan 31 10:41:50 2020 -0800
@@ -92,6 +92,13 @@
   empty "rev" revision set - nothing to rebase
   [1]
 
+  $ hg rebase --rev 'wdir()' --dest 6
+  abort: working directory revision cannot be specified
+  [255]
+
+  $ hg rebase --source 'wdir()' --dest 6 2>&1 | grep assert
+      assert rebaseset
+
   $ hg rebase --source '1 & !1' --dest 8
   empty "source" revision set - nothing to rebase
   [1]