diff -r 62939e0148f1 -r 8908f985570c mercurial/cmdutil.py --- a/mercurial/cmdutil.py Wed Mar 08 18:11:41 2017 -0500 +++ b/mercurial/cmdutil.py Wed Jan 14 01:15:26 2015 +0100 @@ -728,7 +728,7 @@ dryrun=dryrun, cwd=cwd) if rename and not dryrun: if not after and srcexists and not samefile: - util.unlinkpath(repo.wjoin(abssrc)) + repo.wvfs.unlinkpath(abssrc) wctx.forget([abssrc]) # pat: ossep @@ -2474,7 +2474,7 @@ for f in list: if f in added: continue # we never unlink added files on remove - util.unlinkpath(repo.wjoin(f), ignoremissing=True) + repo.wvfs.unlinkpath(f, ignoremissing=True) repo[None].forget(list) if warn: @@ -3199,7 +3199,7 @@ def doremove(f): try: - util.unlinkpath(repo.wjoin(f)) + repo.wvfs.unlinkpath(f) except OSError: pass repo.dirstate.remove(f)