Mercurial > public > mercurial-scm > hg-stable
diff mercurial/merge.py @ 13235:6bf39d88c857
rename util.unlink to unlinkpath
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sun, 02 Jan 2011 19:34:41 +0100 |
parents | 115a9760c382 |
children | d8d478f9ee0f |
line wrap: on
line diff
--- a/mercurial/merge.py Wed Jan 05 15:56:03 2011 +0100 +++ b/mercurial/merge.py Sun Jan 02 19:34:41 2011 +0100 @@ -312,7 +312,7 @@ if f == '.hgsubstate': # subrepo states need updating subrepo.submerge(repo, wctx, mctx, wctx) try: - util.unlink(repo.wjoin(f)) + util.unlinkpath(repo.wjoin(f)) except OSError, inst: if inst.errno != errno.ENOENT: repo.ui.warn(_("update failed to remove %s: %s!\n") % @@ -350,7 +350,7 @@ repo.ui.note(_("moving %s to %s\n") % (f, fd)) t = wctx.filectx(f).data() repo.wwrite(fd, t, flags) - util.unlink(repo.wjoin(f)) + util.unlinkpath(repo.wjoin(f)) if f2: repo.ui.note(_("getting %s to %s\n") % (f2, fd)) t = mctx.filectx(f2).data()