
Hello, currently the darcs repositories are hardcoded into darcsweb's config. What about mandating a standard location for darcs repos, like /project/*/darcs/* (which can be a symlink), and have a cron-job pick up darcs repositories and update the /usr/lib/cgi-bin/darcsweb/config.py? This would reduce the administrative overhead to about zero, if a maintainer decides to keep a `stable' and a `current' branch of his project. On a related sidenote: Could someone please add the following to darcsweb's config.py? class blitzblog: reponame = 'blitzblog' repodesc = 'blitzblog blog engine' repodir = '/project/blitzblog/public_html/darcs/blitzblog/' repourl = 'http://www.common-lisp.org/project/blitzblog/darcs/blitzblog/' repoencoding = 'utf8' Regards, -- Julian Stecklina Being really good at C++ is like being really good at using rocks to sharpen sticks. - Thant Tessman

On 7/4/06, Julian Stecklina <der_julian@web.de> wrote:
currently the darcs repositories are hardcoded into darcsweb's config. What about mandating a standard location for darcs repos, like /project/*/darcs/* (which can be a symlink), and have a cron-job pick up darcs repositories and update the /usr/lib/cgi-bin/darcsweb/config.py?
I think this is an excellent idea and was waiting for someone to volunteer! ;-) If you would like to write the script that runs off of cron to update the config.py file I'll update the docs to make it known that /project/*/darcs is the place to symlink into.
On a related sidenote: Could someone please add the following to darcsweb's config.py?
Done. Thanks, Erik.

"Erik Enge" <erik.enge@gmail.com> writes:
On 7/4/06, Julian Stecklina <der_julian@web.de> wrote:
currently the darcs repositories are hardcoded into darcsweb's config. What about mandating a standard location for darcs repos, like /project/*/darcs/* (which can be a symlink), and have a cron-job pick up darcs repositories and update the /usr/lib/cgi-bin/darcsweb/config.py?
I think this is an excellent idea and was waiting for someone to volunteer! ;-)
If you would like to write the script that runs off of cron to update the config.py file I'll update the docs to make it known that /project/*/darcs is the place to symlink into.
As config.py must know the URL to the repository, I used /project/*/public_html/darcs as base for the search. The script is attached and seems to produce a useful config.py that describes 35 repositories. The repodesc is lost, though, because there is no automatic way to retrieve it, or is there? I have no darcsweb to test it and my sh-magic is limited, so be careful. :) Regards, -- Julian Stecklina Being really good at C++ is like being really good at using rocks to sharpen sticks. - Thant Tessman
participants (2)
-
Erik Enge
-
Julian Stecklina