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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon Feb 3 13:49:08 UTC 2020


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

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]



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


More information about the Mercurial-devel mailing list