changeset 14:ac430b95f734

skip */.hg/data when enumerating repos
author Robin Farine <robin.farine@terminus.org>
date Wed, 25 Oct 2006 10:49:52 +0200
parents a02bfecb4905
children d170ec7fbd39
files forest.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/forest.py	Tue Oct 24 17:32:32 2006 -0700
+++ b/forest.py	Wed Oct 25 10:49:52 2006 +0200
@@ -56,6 +56,8 @@
         entries.sort()
         entries.reverse()
         for e in entries:
+            if e == 'data' and os.path.split(root)[1] == '.hg':
+                continue
             path = os.path.join(root, e)
             if not os.path.isdir(os.path.join(top, path)):
                 continue