changeset 44238:6e4ff6a766c2

tests: add tests for rebasing wdir() revision Differential Revision: https://phab.mercurial-scm.org/D8056
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 31 Jan 2020 10:41:50 -0800
parents b4057d001760
children 830eae18b2f3
files tests/test-rebase-parameters.t
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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]