hgext/rebase.py
branchstable
changeset 20327 46c2331fc750
parent 20313 dcd65ce87260
child 20523 f2a0a0e76b4c
--- a/hgext/rebase.py	Thu Jan 30 17:09:13 2014 +0900
+++ b/hgext/rebase.py	Thu Jan 30 13:56:56 2014 -0600
@@ -658,6 +658,7 @@
 def restorestatus(repo):
     'Restore a previously stored status'
     try:
+        keepbranches = None
         target = None
         collapse = False
         external = nullrev
@@ -687,6 +688,10 @@
                     state[repo[oldrev].rev()] = int(newrev)
                 else:
                     state[repo[oldrev].rev()] = repo[newrev].rev()
+
+        if keepbranches is None:
+            raise util.Abort(_('.hg/rebasestate is incomplete'))
+
         skipped = set()
         # recompute the set of skipped revs
         if not collapse: