changeset 19903:ca875b271ac3

store: use "vfs.exists()" instead of "os.path.exists()"
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Tue, 15 Oct 2013 00:51:05 +0900
parents 12a8bdd97b4f
children 5b327880a660
files mercurial/store.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):