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

login
register
mail settings
Submitter phabricator
Date Feb. 3, 2020, 1:49 p.m.
Message ID <66cb605f0074dd561f316d99589eba9c@localhost.localdomain>
Download mbox | patch
Permalink /patch/44900/
State Not Applicable
Headers show

Comments

phabricator - Feb. 3, 2020, 1:49 p.m.
Closed by commit rHG6e4ff6a766c2: tests: add tests for rebasing wdir() revision (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8056?vs=19777&id=19852

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8056/new/

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

AFFECTED FILES
  tests/test-rebase-parameters.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
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]