changeset 31311 | f59b6cf663a9 |
parent 31218 | 4cc3797aa59c |
child 31322 | 4282feb79432 |
--- 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