# HG changeset patch # User FUJIWARA Katsunori # Date 2013-10-14 15:51:05 # Node ID ca875b271ac340d62855a36f3e31578ee33bfd37 # Parent 12a8bdd97b4fe2a578082bbffee721ed9c1a8c2f store: use "vfs.exists()" instead of "os.path.exists()" diff --git a/mercurial/store.py b/mercurial/store.py --- a/mercurial/store.py +++ b/mercurial/store.py @@ -344,12 +344,12 @@ class basicstore(object): '''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):