Commit Graph

12 Commits

Author SHA1 Message Date
Jonathan Corbet 954b559f13 Revert "Make ReadConfigLine an iterator"
This reverts commit 19b718ef41 which breaks
the virtual employer mechanism.
2011-07-11 13:54:56 -06:00
Germán Póo-Caamaño 19b718ef41 Make ReadConfigLine an iterator
Using an iterator makes the code a bit more 'pythonic'.

Signed-off-by: Germán Póo-Caamaño <gpoo@gnome.org>
2011-06-24 00:12:39 -07:00
Germán Póo-Caamaño b2fd0c6939 Move filetypes onto configuration file
The filetypes can be extended using a configuration files, where
is possible to associate file type and its corresponden regular
expression.

The code includes a script to test the regex without running
gitdm.

Signed-off-by: Germán Póo-Caamaño <gpoo@gnome.org>
2011-06-24 00:12:01 -07:00
Jonathan Corbet 75bc1479df Add the VirtualEmployer mechanism
A certain obnoxious developer wants his contributions to be split between
two employers.  So add the "VirtualEmployer" mechanism to make that
possible.  A virtual employer is defined with:

	VirtualEmployer ve-name
		nn% real-name
		...
	end

(This construct must appear in the main configuration file).  Developers
can be associated with the virtual employer in the usual way; at report
time, any changes credited to that employer will be split among the real
employers according to the percentages provided.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2011-05-10 14:32:47 -06:00
Jonathan Corbet 6cd2721aec Update copyright notices
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2011-05-10 10:26:55 -06:00
Cédric Bosdonnat 47f284e68d Allow to add funky email addresses as the first field of an alias 2011-02-17 10:24:05 -07:00
Jonathan Corbet ea23ca50c0 Use os.path.join() to prepend the directory name
...that way we get the right result regardless of whether slashes have been
provided.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2010-07-22 14:43:43 -06:00
Tiago Vignatti a91d5f59e5 Add option to get the configuration files from a given base directory
Instead boringly be replicating the directory base name where gitdm is
installed and write it on each option inside the configuration file, just send
it through the command line.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
2010-06-30 20:13:21 +03:00
Jonathan Corbet 3b39893928 From: Iestyn Pryce <dylunio@gmail.com>
Preserve spaces in the second parameter of the overall config file.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2009-11-23 11:17:13 -07:00
Jonathan Corbet aacbb5f464 Use find() instead of index()
That keeps it from crashing on seemingly malformed addresses.  Change
suggested by Dave Foster.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2008-10-16 11:48:09 -06:00
Jonathan Corbet f05ab88175 Fix up the copyright notices. 2008-07-18 15:34:28 -06:00
Jonathan Corbet e1a6d06d65 Initial commit
First commit of gitdm to the new repo.  Call it version 0.10 or something
silly like that.
2008-06-27 08:58:35 -06:00