# HG changeset patch # User Pierre-Yves David # Date 1472005909 -7200 # Node ID b24804f7211679f5323093f769464b8b67dd353b # Parent 81d38478fced82736066de58cdf36c3a1567b995 bisect: access the filesystem through vfs when reseting We have nice and shiny abstractions now. diff -r 81d38478fced -r b24804f72116 mercurial/commands.py --- 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)