Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 31318:8908f985570c
vfs: use repo.wvfs.unlinkpath
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 14 Jan 2015 01:15:26 +0100 |
parents | 1b08aca7870a |
children | 1b0db28dadf1 |
line wrap: on
line diff
--- 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)