mercurial/store.py
changeset 17784 73e1ab39792c
parent 17783 df55ce6854c3
child 17845 408ded42c5ec
--- a/mercurial/store.py	Fri Oct 12 10:52:32 2012 +0200
+++ b/mercurial/store.py	Fri Oct 12 10:52:33 2012 +0200
@@ -527,13 +527,14 @@
         '''Checks if the store contains path'''
         path = "/".join(("data", path))
         # check for files (exact match)
-        if path + '.i' in self.fncache:
+        e = path + '.i'
+        if e in self.fncache and self._exists(e):
             return True
         # now check for directories (prefix match)
         if not path.endswith('/'):
             path += '/'
         for e in self.fncache:
-            if e.startswith(path):
+            if e.startswith(path) and self._exists(e):
                 return True
         return False