Show More
@@ -36,7 +36,7 b' from mercurial import (' | |||||
36 | extensions, |
|
36 | extensions, | |
37 | hg, |
|
37 | hg, | |
38 | lock, |
|
38 | lock, | |
39 | merge, |
|
39 | merge as mergemod, | |
40 | obsolete, |
|
40 | obsolete, | |
41 | patch, |
|
41 | patch, | |
42 | phases, |
|
42 | phases, | |
@@ -823,7 +823,7 b' def rebasenode(repo, rev, p1, base, stat' | |||||
823 | # Update to target and merge it with local |
|
823 | # Update to target and merge it with local | |
824 | if repo['.'].rev() != p1: |
|
824 | if repo['.'].rev() != p1: | |
825 | repo.ui.debug(" update to %d:%s\n" % (p1, repo[p1])) |
|
825 | repo.ui.debug(" update to %d:%s\n" % (p1, repo[p1])) | |
826 | merge.update(repo, p1, False, True) |
|
826 | mergemod.update(repo, p1, False, True) | |
827 | else: |
|
827 | else: | |
828 | repo.ui.debug(" already in target\n") |
|
828 | repo.ui.debug(" already in target\n") | |
829 | repo.dirstate.write(repo.currenttransaction()) |
|
829 | repo.dirstate.write(repo.currenttransaction()) | |
@@ -832,8 +832,8 b' def rebasenode(repo, rev, p1, base, stat' | |||||
832 | repo.ui.debug(" detach base %d:%s\n" % (base, repo[base])) |
|
832 | repo.ui.debug(" detach base %d:%s\n" % (base, repo[base])) | |
833 | # When collapsing in-place, the parent is the common ancestor, we |
|
833 | # When collapsing in-place, the parent is the common ancestor, we | |
834 | # have to allow merging with it. |
|
834 | # have to allow merging with it. | |
835 | stats = merge.update(repo, rev, True, True, base, collapse, |
|
835 | stats = mergemod.update(repo, rev, True, True, base, collapse, | |
836 | labels=['dest', 'source']) |
|
836 | labels=['dest', 'source']) | |
837 | if collapse: |
|
837 | if collapse: | |
838 | copies.duplicatecopies(repo, rev, target) |
|
838 | copies.duplicatecopies(repo, rev, target) | |
839 | else: |
|
839 | else: | |
@@ -1150,7 +1150,7 b' def abort(repo, originalwd, target, stat' | |||||
1150 |
|
1150 | |||
1151 | # Update away from the rebase if necessary |
|
1151 | # Update away from the rebase if necessary | |
1152 | if shouldupdate or needupdate(repo, state): |
|
1152 | if shouldupdate or needupdate(repo, state): | |
1153 | merge.update(repo, originalwd, False, True) |
|
1153 | mergemod.update(repo, originalwd, False, True) | |
1154 |
|
1154 | |||
1155 | # Strip from the first rebased revision |
|
1155 | # Strip from the first rebased revision | |
1156 | if rebased: |
|
1156 | if rebased: |
General Comments 0
You need to be logged in to leave comments.
Login now