Mercurial > hg
changeset 31621:b26975483841
rebase: don't require destination if commands.rebase.requiredest=False
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 24 Mar 2017 16:20:10 -0700 |
parents | 5b1461de2fbe |
children | 2243ba216f66 |
files | hgext/rebase.py tests/test-rebase-base.t |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)