Tue Dec 20 16:30:22 UTC 2005 nils@ndecker.de
* Add deep recursion option to multidir configuration
{
hunk ./config.py.sample 96
+# If you set multidir_deep to True then all subdirectories are searched
+# for darcs repositories. Subdirectories starting with a dot (.) are not
+# searched. This may be slow, if huge directory trees must be searched.
+#
hunk ./config.py.sample 103
+ multidir_deep = False
hunk ./darcsweb.cgi 1973
- entries = os.listdir(c.multidir)
+
+ entries = []
+ if 'multidir_deep' in dir(c) and c.multidir_deep:
+ for (root, dirs, files) in os.walk(c.multidir):
+ # do not visit hidden directories
+ dirs[:] = [d for d in dirs if not d.startswith('.')]
+ if '_darcs' in dirs:
+ entries.append(root[1+len(c.multidir):])
+ else:
+ entries = os.listdir(c.multidir)
+
}