##// END OF EJS Templates
merge: remove old merge function
Matt Mackall -
r3212:cac7be0b default
parent child Browse files
Show More
@@ -59,10 +59,6 b' def filemerge(repo, fw, fo, fd, my, othe'
59 os.unlink(c)
59 os.unlink(c)
60 return r
60 return r
61
61
62 def merge3(repo, fn, my, other, p1, p2):
63 """perform a 3-way merge in the working directory"""
64 return filemerge(repo, fn, fn, fn, my, other, p1, p2, False)
65
66 def checkunknown(repo, m2, status):
62 def checkunknown(repo, m2, status):
67 """
63 """
68 check for collisions between unknown files and files in m2
64 check for collisions between unknown files and files in m2
@@ -277,7 +273,7 b' def applyupdates(repo, action, xp1, xp2)'
277 elif m == "m": # merge
273 elif m == "m": # merge
278 flag, my, other = a[2:]
274 flag, my, other = a[2:]
279 repo.ui.status(_("merging %s\n") % f)
275 repo.ui.status(_("merging %s\n") % f)
280 if merge3(repo, f, my, other, xp1, xp2):
276 if filemerge(repo, f, f, f, my, other, xp1, xp2, False):
281 unresolved += 1
277 unresolved += 1
282 util.set_exec(repo.wjoin(f), flag)
278 util.set_exec(repo.wjoin(f), flag)
283 merged += 1
279 merged += 1
General Comments 0
You need to be logged in to leave comments. Login now