Show More
@@ -658,6 +658,7 b' def clearstatus(repo):' | |||
|
658 | 658 | def restorestatus(repo): |
|
659 | 659 | 'Restore a previously stored status' |
|
660 | 660 | try: |
|
661 | keepbranches = None | |
|
661 | 662 | target = None |
|
662 | 663 | collapse = False |
|
663 | 664 | external = nullrev |
@@ -687,6 +688,10 b' def restorestatus(repo):' | |||
|
687 | 688 | state[repo[oldrev].rev()] = int(newrev) |
|
688 | 689 | else: |
|
689 | 690 | state[repo[oldrev].rev()] = repo[newrev].rev() |
|
691 | ||
|
692 | if keepbranches is None: | |
|
693 | raise util.Abort(_('.hg/rebasestate is incomplete')) | |
|
694 | ||
|
690 | 695 | skipped = set() |
|
691 | 696 | # recompute the set of skipped revs |
|
692 | 697 | if not collapse: |
@@ -13,6 +13,16 b'' | |||
|
13 | 13 | $ hg init a |
|
14 | 14 | $ cd a |
|
15 | 15 | |
|
16 | $ touch .hg/rebasestate | |
|
17 | $ hg sum | |
|
18 | parent: -1:000000000000 tip (empty repository) | |
|
19 | branch: default | |
|
20 | commit: (clean) | |
|
21 | update: (current) | |
|
22 | abort: .hg/rebasestate is incomplete | |
|
23 | [255] | |
|
24 | $ rm .hg/rebasestate | |
|
25 | ||
|
16 | 26 | $ echo c1 > common |
|
17 | 27 | $ hg add common |
|
18 | 28 | $ hg ci -m C1 |
General Comments 0
You need to be logged in to leave comments.
Login now