hgext/rebase.py
changeset 37032 98663bed146e
parent 37031 74f91bec6991
child 37033 5f99142f59cc
--- a/hgext/rebase.py	Wed Mar 21 10:46:00 2018 -0700
+++ b/hgext/rebase.py	Wed Mar 21 11:01:19 2018 -0700
@@ -484,8 +484,6 @@
             p1, p2, base = defineparents(repo, rev, self.destmap,
                                          self.state, self.skipped,
                                          self.obsoletenotrebased)
-            if not tr:
-                self.storestatus()
             if len(repo[None].parents()) == 2:
                 repo.ui.debug('resuming interrupted rebase\n')
             else:
@@ -546,6 +544,12 @@
         else:
             ui.status(_('already rebased %s as %s\n') %
                       (desc, repo[self.state[rev]]))
+        if not tr:
+            # When not using single transaction, store state after each
+            # commit is completely done. On InterventionRequired, we thus
+            # won't store the status. Instead, we'll hit the "len(parents) == 2"
+            # case and realize that the commit was in progress.
+            self.storestatus()
 
     def _finishrebase(self):
         repo, ui, opts = self.repo, self.ui, self.opts