Mercurial > hg-stable
changeset 30064:b24804f72116
bisect: access the filesystem through vfs when reseting
We have nice and shiny abstractions now.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 24 Aug 2016 04:31:49 +0200 |
parents | 81d38478fced |
children | ee21ed7fc7a2 |
files | mercurial/commands.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Fri Oct 07 17:06:55 2016 +0200 +++ b/mercurial/commands.py Wed Aug 24 04:31:49 2016 +0200 @@ -902,9 +902,8 @@ cmdutil.checkunfinished(repo) if reset: - p = repo.join("bisect.state") - if os.path.exists(p): - os.unlink(p) + if repo.vfs.exists("bisect.state"): + repo.vfs.unlink("bisect.state") return state = hbisect.load_state(repo)