changeset 38674:a50482254b0a

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
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Thu, 12 Jul 2018 22:23:51 +0530
parents 20a30bb8f276
children 35b3f686157a
files hgext/rebase.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: