store: use "vfs.exists()" instead of "os.path.exists()"
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Tue, 15 Oct 2013 00:51:05 +0900
changeset 19903 ca875b271ac3
parent 19902 12a8bdd97b4f
child 19904 5b327880a660
store: use "vfs.exists()" instead of "os.path.exists()"
mercurial/store.py
--- a/mercurial/store.py	Tue Oct 15 00:51:05 2013 +0900
+++ b/mercurial/store.py	Tue Oct 15 00:51:05 2013 +0900
@@ -344,12 +344,12 @@
         '''Checks if the store contains path'''
         path = "/".join(("data", path))
         # file?
-        if os.path.exists(self.join(path + ".i")):
+        if self.vfs.exists(path + ".i"):
             return True
         # dir?
         if not path.endswith("/"):
             path = path + "/"
-        return os.path.exists(self.join(path))
+        return self.vfs.exists(path)
 
 class encodedstore(basicstore):
     def __init__(self, path, vfstype):