comparison mercurial/merge.py @ 13718:5b3383ea67d2 stable

merge: avoid unlinking destination of merge when case changes (issue2715)
author Matt Mackall <mpm@selenic.com>
date Tue, 22 Mar 2011 12:00:38 -0500
parents 1792b8a9422b
children 15d1db2abfcb
comparison
equal deleted inserted replaced
13717:bc41d08a5ccc 13718:5b3383ea67d2
336 if r is None: 336 if r is None:
337 updated += 1 337 updated += 1
338 else: 338 else:
339 merged += 1 339 merged += 1
340 util.set_flags(repo.wjoin(fd), 'l' in flags, 'x' in flags) 340 util.set_flags(repo.wjoin(fd), 'l' in flags, 'x' in flags)
341 if f != fd and move and os.path.lexists(repo.wjoin(f)): 341 if (move and repo.dirstate.normalize(fd) != f
342 and os.path.lexists(repo.wjoin(f))):
342 repo.ui.debug("removing %s\n" % f) 343 repo.ui.debug("removing %s\n" % f)
343 os.unlink(repo.wjoin(f)) 344 os.unlink(repo.wjoin(f))
344 elif m == "g": # get 345 elif m == "g": # get
345 flags = a[2] 346 flags = a[2]
346 repo.ui.note(_("getting %s\n") % f) 347 repo.ui.note(_("getting %s\n") % f)