Show More
@@ -1398,9 +1398,8 b' def applyupdates(' | |||||
1398 | _prefetchfiles(repo, mctx, mresult) |
|
1398 | _prefetchfiles(repo, mctx, mresult) | |
1399 |
|
1399 | |||
1400 | updated, merged, removed = 0, 0, 0 |
|
1400 | updated, merged, removed = 0, 0, 0 | |
1401 | ms = mergestatemod.mergestate.clean( |
|
1401 | ms = mergestatemod.mergestate.clean(repo) | |
1402 |
|
|
1402 | ms.start(wctx.p1().node(), mctx.node(), labels) | |
1403 | ) |
|
|||
1404 |
|
1403 | |||
1405 | for f, op in pycompat.iteritems(mresult.commitinfo): |
|
1404 | for f, op in pycompat.iteritems(mresult.commitinfo): | |
1406 | # the other side of filenode was choosen while merging, store this in |
|
1405 | # the other side of filenode was choosen while merging, store this in |
@@ -177,12 +177,11 b' class mergestate(object):' | |||||
177 | statepathv2 = b'merge/state2' |
|
177 | statepathv2 = b'merge/state2' | |
178 |
|
178 | |||
179 | @staticmethod |
|
179 | @staticmethod | |
180 | def clean(repo, node=None, other=None, labels=None): |
|
180 | def clean(repo): | |
181 | """Initialize a brand new merge state, removing any existing state on |
|
181 | """Initialize a brand new merge state, removing any existing state on | |
182 | disk.""" |
|
182 | disk.""" | |
183 | ms = mergestate(repo) |
|
183 | ms = mergestate(repo) | |
184 | ms.reset() |
|
184 | ms.reset() | |
185 | ms.start(node, other, labels) |
|
|||
186 | return ms |
|
185 | return ms | |
187 |
|
186 | |||
188 | @staticmethod |
|
187 | @staticmethod |
General Comments 0
You need to be logged in to leave comments.
Login now