Wed Dec 21 14:29:46 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Indentation and comment changes to multidir_deep.
{
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.
+# If you set multidir_deep to True (note the capitalization) 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. It's unnecesary unless you have a multidir with several
+# nested repositories. It defaults to False, and it's optional.
hunk ./config.py.sample 105
- multidir_deep = False
+ #multidir_deep = False
hunk ./darcsweb.cgi 1976
- 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):])
+ 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:
+ p = root[1 + len(c.multidir):]
+ entries.append(p)
hunk ./darcsweb.cgi 1984
- entries = os.listdir(c.multidir)
+ entries = os.listdir(c.multidir)
}