Patchwork D8056: tests: add tests for rebasing wdir() revision

login
register
mail settings
Submitter phabricator
Date Jan. 31, 2020, 6:59 p.m.
Message ID <differential-rev-PHID-DREV-zdokwq4utz2hfmw6rkng-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44827/
State Superseded
Headers show

Comments

phabricator - Jan. 31, 2020, 6:59 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8056

AFFECTED FILES
  tests/test-rebase-parameters.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

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 @@ 
   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]