# HG changeset patch # User Martin von Zweigbergk # Date 2020-01-31 18:41:50 # Node ID 6e4ff6a766c2c4b3574a787f7c33ff393a4e7cc7 # Parent b4057d0017601357a59a18f2996719302ae51765 tests: add tests for rebasing wdir() revision Differential Revision: https://phab.mercurial-scm.org/D8056 diff --git a/tests/test-rebase-parameters.t b/tests/test-rebase-parameters.t --- a/tests/test-rebase-parameters.t +++ b/tests/test-rebase-parameters.t @@ -92,6 +92,13 @@ These fail: 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]