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)