Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/overrides.py @ 31318:8908f985570c
vfs: use repo.wvfs.unlinkpath
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 14 Jan 2015 01:15:26 +0100 |
parents | b44ab288358e |
children | 5c1d3f1b8f44 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Wed Mar 08 18:11:41 2017 -0500 +++ b/hgext/largefiles/overrides.py Wed Jan 14 01:15:26 2015 +0100 @@ -223,7 +223,7 @@ if not opts.get('dry_run'): if not after: - util.unlinkpath(repo.wjoin(f), ignoremissing=True) + repo.wvfs.unlinkpath(f, ignoremissing=True) if opts.get('dry_run'): return result @@ -233,7 +233,7 @@ # function handle this. if not isaddremove: for f in remove: - util.unlinkpath(repo.wjoin(f), ignoremissing=True) + repo.wvfs.unlinkpath(f, ignoremissing=True) repo[None].forget(remove) for f in remove: @@ -694,7 +694,7 @@ # The file is gone, but this deletes any empty parent # directories as a side-effect. - util.unlinkpath(repo.wjoin(srclfile), True) + repo.wvfs.unlinkpath(srclfile, ignoremissing=True) lfdirstate.remove(srclfile) else: util.copyfile(repo.wjoin(srclfile), @@ -1096,7 +1096,7 @@ lfdirstate.write() standins = [lfutil.standin(f) for f in forget] for f in standins: - util.unlinkpath(repo.wjoin(f), ignoremissing=True) + repo.wvfs.unlinkpath(f, ignoremissing=True) rejected = repo[None].forget(standins) bad.extend(f for f in rejected if f in m.files())