rebase: reorder parent check and state storage
This could cause a rebase to be 'in progress' even though it aborted.
--- a/hgext/rebase.py Wed Jul 24 23:51:40 2013 -0500
+++ b/hgext/rebase.py Wed Jul 24 23:51:44 2013 -0500
@@ -258,10 +258,10 @@
if state[rev] == -1:
ui.progress(_("rebasing"), pos, ("%d:%s" % (rev, repo[rev])),
_('changesets'), total)
+ p1, p2 = defineparents(repo, rev, target, state,
+ targetancestors)
storestatus(repo, originalwd, target, state, collapsef, keepf,
keepbranchesf, external, activebookmark)
- p1, p2 = defineparents(repo, rev, target, state,
- targetancestors)
if len(repo.parents()) == 2:
repo.ui.debug('resuming interrupted rebase\n')
else: