rebase: make sure we don't loose the return code in --confirm option
return _dorebase() to make sure it returns 'return code'.
Differential Revision: https://phab.mercurial-scm.org/D3938
--- a/hgext/rebase.py Wed Jul 11 15:12:01 2018 -0700
+++ b/hgext/rebase.py Thu Jul 12 22:23:51 2018 +0530
@@ -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: