Mercurial > public > mercurial-scm > hg-stable
diff mercurial/store.py @ 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 | 1e104aaa4c44 |
children | cd03854a2e06 |
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):