bisect: access the filesystem through vfs when reseting
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 24 Aug 2016 04:31:49 +0200
changeset 30064 b24804f72116
parent 30063 81d38478fced
child 30065 ee21ed7fc7a2
bisect: access the filesystem through vfs when reseting We have nice and shiny abstractions now.
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)