changeset 31620:5b1461de2fbe

tests: add tests with commands.{update,rebase}.requiredest=False This shows how rebase is currently broken with commands.rebase.requiredest=False.
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 24 Mar 2017 16:20:04 -0700
parents 91ddb33deea5
children b26975483841
files tests/test-rebase-base.t tests/test-update-names.t
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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