Tue Aug 23 23:16:47 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Add "darcspath" to the config file.
This patch adds an optional "darcspath" parameter to the configuration,
allowing people with darcs in non-standard locations to specify it by simply
editing the config file.
Thanks to ale@bomberstudios.com who sent a patch to do this (although I did it
in a slightly different way).
{
hunk ./config.py.sample 19
+ # optionally, you can specify the path to the darcs executable; if you
+ # leave this commented, the one on $PATH will be used (this is
+ # normally what you want)
+ #darcspath = "/home/me/bin/darcs"
+
hunk ./darcsweb.cgi 344
- cmd = "darcs " + params
+ cmd = config.darcspath + "darcs " + params
hunk ./darcsweb.cgi 1332
+
+ # optional parameters
+ if "darcspath" in dir(base):
+ config.darcspath = base.darcspath + '/'
+ else:
+ config.darcspath = ""
}