tests: add tests for rebasing wdir() revision
Differential Revision: https://phab.mercurial-scm.org/D8056
--- 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]