onecityuni / cia-vc

Automatically exported from code.google.com/p/cia-vc
1 stars 1 forks source link

ciabot-svn feature request(s)/improvement #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In case you have a directory, lets say /var/svnroot, which contains many
subversion repositories, you can't use the pathRegexes to define the module
tag properly because it checks for a match against the relative path to the
file, starting in the repository itself.
The module tag in case of /var/svnroot/foo should be "foo".

So I wrote a patch to respect self.module if set through pathRegexes or
otherwise set it by: removing /path/to/svnroot in self.repository.

There is a new config option, called "svnroot", to define the svnroot.
In case its not properly set or returns an empty string then it'll set it
to None.

I'd be glad if that could be applied into the next release.

Another idea is:
Split the config class from the main script and put it into a new file
(e.g. config.py)
This file can be moved to /etc/ciabot-svn/config.py.
In the main script it might be imported through:
sys.path = ["/etc/ciabot-svn"] + sys.path
from config import *

That's it for now.. :)

Original issue reported on code.google.com by Spook...@gmail.com on 5 May 2010 at 11:42

Attachments: