##// END OF EJS Templates
merge.mergestate._resolve: also return completed status...
Siddharth Agarwal -
r26616:2f1fce0d default
parent child Browse files
Show More
@@ -290,7 +290,7 b' class mergestate(object):'
290 def _resolve(self, dfile, wctx, labels=None):
290 def _resolve(self, dfile, wctx, labels=None):
291 """rerun merge process for file path `dfile`"""
291 """rerun merge process for file path `dfile`"""
292 if self[dfile] == 'r':
292 if self[dfile] == 'r':
293 return 0
293 return True, 0
294 stateentry = self._state[dfile]
294 stateentry = self._state[dfile]
295 state, hash, lfile, afile, anode, ofile, onode, flags = stateentry
295 state, hash, lfile, afile, anode, ofile, onode, flags = stateentry
296 octx = self._repo[self._other]
296 octx = self._repo[self._other]
@@ -321,11 +321,11 b' class mergestate(object):'
321 self._dirty = True
321 self._dirty = True
322 elif not r:
322 elif not r:
323 self.mark(dfile, 'r')
323 self.mark(dfile, 'r')
324 return r
324 return complete, r
325
325
326 def resolve(self, dfile, wctx, labels=None):
326 def resolve(self, dfile, wctx, labels=None):
327 """rerun merge process for file path `dfile`"""
327 """rerun merge process for file path `dfile`"""
328 return self._resolve(dfile, wctx, labels=labels)
328 return self._resolve(dfile, wctx, labels=labels)[1]
329
329
330 def _checkunknownfile(repo, wctx, mctx, f, f2=None):
330 def _checkunknownfile(repo, wctx, mctx, f, f2=None):
331 if f2 is None:
331 if f2 is None:
General Comments 0
You need to be logged in to leave comments. Login now