mercurial/store.py
changeset 6890 fddef0602859
parent 6840 80e51429cb9a
child 6892 dab95717058d
--- a/mercurial/store.py	Wed Aug 13 20:18:40 2008 -0500
+++ b/mercurial/store.py	Wed Aug 13 20:18:41 2008 -0500
@@ -69,6 +69,8 @@
             path = os.path.join(self.path, relpath)
         else:
             path = self.path
+        if not os.path.isdir(path):
+            return
         striplen = len(self.path) + len(os.sep)
         filetypes = ('.d', '.i')
         for f, size in _dirwalk(path, recurse):