[cig-commits] commit: skip */.hg/data when enumerating repos

Mercurial hg at geodynamics.org
Mon Nov 24 11:26:49 PST 2008


changeset:   14:ac430b95f734
user:        Robin Farine <robin.farine at terminus.org>
date:        Wed Oct 25 10:49:52 2006 +0200
files:       forest.py
description:
skip */.hg/data when enumerating repos


diff -r a02bfecb4905 -r ac430b95f734 forest.py
--- 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 @@ def enumerate_repos(top=''):
         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



More information about the CIG-COMMITS mailing list