rebase: don't require destination if commands.rebase.requiredest=False
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 24 Mar 2017 16:20:10 -0700
changeset 31621 b26975483841
parent 31620 5b1461de2fbe
child 31622 2243ba216f66
rebase: don't require destination if commands.rebase.requiredest=False
hgext/rebase.py
tests/test-rebase-base.t
--- a/hgext/rebase.py	Fri Mar 24 16:20:04 2017 -0700
+++ b/hgext/rebase.py	Fri Mar 24 16:20:10 2017 -0700
@@ -686,7 +686,7 @@
         # Validate input and define rebasing points
         destf = opts.get('dest', None)
 
-        if ui.config('commands', 'rebase.requiredest'):
+        if ui.configbool('commands', 'rebase.requiredest'):
             if not destf:
                 raise error.Abort(_('you must specify a destination'),
                                   hint=_('use: hg rebase -d REV'))
--- a/tests/test-rebase-base.t	Fri Mar 24 16:20:04 2017 -0700
+++ b/tests/test-rebase-base.t	Fri Mar 24 16:20:10 2017 -0700
@@ -419,6 +419,5 @@
   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]
+  rebasing 2:279de9495438 "cc" (tip)
+  saved backup bundle to $TESTTMP/repo/.hg/strip-backup/279de9495438-ab0a5128-backup.hg (glob)