##// END OF EJS Templates
filemerge: add support for change/delete conflicts to the ':other' merge tool...
Siddharth Agarwal -
r27037:a8908c13 default
parent child Browse files
Show More
@@ -242,8 +242,14 b' def _ilocal(repo, mynode, orig, fcd, fco'
242 @internaltool('other', nomerge)
242 @internaltool('other', nomerge)
243 def _iother(repo, mynode, orig, fcd, fco, fca, toolconf):
243 def _iother(repo, mynode, orig, fcd, fco, fca, toolconf):
244 """Uses the other version of files as the merged version."""
244 """Uses the other version of files as the merged version."""
245 repo.wwrite(fcd.path(), fco.data(), fco.flags())
245 if fco.isabsent():
246 return 0, False
246 # local changed, remote deleted -- 'deleted' picked
247 repo.wvfs.unlinkpath(fcd.path())
248 deleted = True
249 else:
250 repo.wwrite(fcd.path(), fco.data(), fco.flags())
251 deleted = False
252 return 0, deleted
247
253
248 @internaltool('fail', nomerge)
254 @internaltool('fail', nomerge)
249 def _ifail(repo, mynode, orig, fcd, fco, fca, toolconf):
255 def _ifail(repo, mynode, orig, fcd, fco, fca, toolconf):
General Comments 0
You need to be logged in to leave comments. Login now