D3938: rebase: make sure we don't loose the return code in --confirm option
khanchi97 (Sushil khanchi)
phabricator at mercurial-scm.org
Thu Jul 12 17:14:53 UTC 2018
khanchi97 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
return _dorebase() to make sure it returns 'return code'.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3938
AFFECTED FILES
hgext/rebase.py
CHANGE DETAILS
diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -874,7 +874,7 @@
needsabort = False
if not ui.promptchoice(_(b'apply changes (yn)?'
b'$$ &Yes $$ &No')):
- _dorebase(ui, repo, opts, inmemory=False)
+ return _dorebase(ui, repo, opts, inmemory=False)
return 1
else:
if confirm:
To: khanchi97, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list