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