Mercurial > hg-stable
diff mercurial/hg.py @ 31320:f59b6cf663a9
vfs: use repo.vfs.unlinkpath
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sat, 11 Mar 2017 11:02:25 -0800 |
parents | 4cc3797aa59c |
children | 4282feb79432 |
line wrap: on
line diff
--- a/mercurial/hg.py Wed Jan 14 01:15:26 2015 +0100 +++ b/mercurial/hg.py Sat Mar 11 11:02:25 2017 -0800 @@ -716,7 +716,7 @@ def clean(repo, node, show_stats=True, quietempty=False): """forcibly switch the working directory to node, clobbering changes""" stats = updaterepo(repo, node, True) - util.unlinkpath(repo.join('graftstate'), ignoremissing=True) + repo.vfs.unlinkpath('graftstate', ignoremissing=True) if show_stats: _showstats(repo, stats, quietempty) return stats[3] > 0