diff rhodecode/lib/vcs/utils/helpers.py @ 3090:280ac97cb37f beta

don't recurse into '.hg' of removed repositories Walking through the content of a '.hg' that has been renamed to 'rm__.hg' on startup can take a lot of time.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 12 Dec 2012 18:11:33 +0100
parents 324ac367a4da
children 291be8fa4d4f
line wrap: on
line diff
--- a/rhodecode/lib/vcs/utils/helpers.py	Thu Dec 13 03:34:19 2012 +0100
+++ b/rhodecode/lib/vcs/utils/helpers.py	Wed Dec 12 18:11:33 2012 +0100
@@ -78,6 +78,9 @@
         if os.path.isdir(dirname):
             result.append(key)
             continue
+        dirname = os.path.join(path, 'rm__.' + key)
+        if os.path.isdir(dirname):
+            return [None]
         # We still need to check if it's not bare repository as
         # bare repos don't have working directories
         try: