mercurial/commands.py
changeset 30064 b24804f72116
parent 30062 940c05b25b07
child 30065 ee21ed7fc7a2
--- 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)