Show More
@@ -1102,13 +1102,14 b' def rebasenode(repo, rev, p1, base, stat' | |||||
1102 | if wctx.isinmemory(): |
|
1102 | if wctx.isinmemory(): | |
1103 | wctx.setbase(repo[p1]) |
|
1103 | wctx.setbase(repo[p1]) | |
1104 | else: |
|
1104 | else: | |
1105 | # This is necessary to invalidate workingctx's caches. |
|
|||
1106 | wctx = repo[None] |
|
|||
1107 | if repo['.'].rev() != p1: |
|
1105 | if repo['.'].rev() != p1: | |
1108 | repo.ui.debug(" update to %d:%s\n" % (p1, repo[p1])) |
|
1106 | repo.ui.debug(" update to %d:%s\n" % (p1, repo[p1])) | |
1109 | mergemod.update(repo, p1, False, True) |
|
1107 | mergemod.update(repo, p1, False, True) | |
1110 | else: |
|
1108 | else: | |
1111 | repo.ui.debug(" already in destination\n") |
|
1109 | repo.ui.debug(" already in destination\n") | |
|
1110 | # This is, alas, necessary to invalidate workingctx's manifest cache, | |||
|
1111 | # as well as other data we litter on it in other places. | |||
|
1112 | wctx = repo[None] | |||
1112 | repo.dirstate.write(repo.currenttransaction()) |
|
1113 | repo.dirstate.write(repo.currenttransaction()) | |
1113 | repo.ui.debug(" merge against %d:%s\n" % (rev, repo[rev])) |
|
1114 | repo.ui.debug(" merge against %d:%s\n" % (rev, repo[rev])) | |
1114 | if base is not None: |
|
1115 | if base is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now