tests: add tests with commands.{update,rebase}.requiredest=False
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 24 Mar 2017 16:20:04 -0700
changeset 31620 5b1461de2fbe
parent 31619 91ddb33deea5
child 31621 b26975483841
tests: add tests with commands.{update,rebase}.requiredest=False This shows how rebase is currently broken with commands.rebase.requiredest=False.
tests/test-rebase-base.t
tests/test-update-names.t
--- a/tests/test-rebase-base.t	Sun Mar 12 12:33:35 2017 -0700
+++ b/tests/test-rebase-base.t	Fri Mar 24 16:20:04 2017 -0700
@@ -417,3 +417,8 @@
   $ HGPLAIN=1 hg rebase
   rebasing 2:889b0bc6a730 "cc" (tip)
   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/889b0bc6a730-41ec4f81-backup.hg (glob)
+  $ hg rebase -d 0 -r . -q
+  $ hg --config commands.rebase.requiredest=False rebase
+  abort: you must specify a destination
+  (use: hg rebase -d REV)
+  [255]
--- a/tests/test-update-names.t	Sun Mar 12 12:33:35 2017 -0700
+++ b/tests/test-update-names.t	Fri Mar 24 16:20:04 2017 -0700
@@ -106,3 +106,5 @@
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ HGPLAIN=1 hg up
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg --config commands.update.requiredest=False up
+  0 files updated, 0 files merged, 0 files removed, 0 files unresolved