Show More
@@ -658,6 +658,7 b' def clearstatus(repo):' | |||||
658 | def restorestatus(repo): |
|
658 | def restorestatus(repo): | |
659 | 'Restore a previously stored status' |
|
659 | 'Restore a previously stored status' | |
660 | try: |
|
660 | try: | |
|
661 | keepbranches = None | |||
661 | target = None |
|
662 | target = None | |
662 | collapse = False |
|
663 | collapse = False | |
663 | external = nullrev |
|
664 | external = nullrev | |
@@ -687,6 +688,10 b' def restorestatus(repo):' | |||||
687 | state[repo[oldrev].rev()] = int(newrev) |
|
688 | state[repo[oldrev].rev()] = int(newrev) | |
688 | else: |
|
689 | else: | |
689 | state[repo[oldrev].rev()] = repo[newrev].rev() |
|
690 | state[repo[oldrev].rev()] = repo[newrev].rev() | |
|
691 | ||||
|
692 | if keepbranches is None: | |||
|
693 | raise util.Abort(_('.hg/rebasestate is incomplete')) | |||
|
694 | ||||
690 | skipped = set() |
|
695 | skipped = set() | |
691 | # recompute the set of skipped revs |
|
696 | # recompute the set of skipped revs | |
692 | if not collapse: |
|
697 | if not collapse: |
@@ -13,6 +13,16 b'' | |||||
13 | $ hg init a |
|
13 | $ hg init a | |
14 | $ cd a |
|
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 | $ echo c1 > common |
|
26 | $ echo c1 > common | |
17 | $ hg add common |
|
27 | $ hg add common | |
18 | $ hg ci -m C1 |
|
28 | $ hg ci -m C1 |
General Comments 0
You need to be logged in to leave comments.
Login now