Mercurial > p > roundup > code
diff scripts/notify-roundup/notify-roundup.py @ 4200:19e8a54ced9f gsoc-2009
Implemented WIP bzr revision author fetching
| author | Pygi <pygi@users.sourceforge.net> |
|---|---|
| date | Mon, 13 Jul 2009 12:51:54 +0000 |
| parents | e5917e2386d4 |
| children | 48584548328d |
line wrap: on
line diff
--- a/scripts/notify-roundup/notify-roundup.py Sat Jul 11 21:20:41 2009 +0000 +++ b/scripts/notify-roundup/notify-roundup.py Mon Jul 13 12:51:54 2009 +0000 @@ -260,6 +260,7 @@ class BZRRepository: '''Holds roots and other information about the bzr repository. + THIS IS WIP AND HASN'T BEEN TESTED AT ALL! ''' def __init__(self,repos_dir,rev,pool): @@ -267,7 +268,24 @@ self.rev = rev self.pool = pool - authors_calls = commands.getoutput('bzr log -r-1 --line ' + self.repos_dir) + authors_calls = commands.getoutput('bzr log -r-1 --line ' + self.repos_dir + ' | grep committer') + authors_split = authors_calls.split(':') + authoro = authors_split[1].lstrip().split('<') + author_split2 = authoro[0].rstrip('>').split() + self.author = author_split[0].lower() + + + +class GitRepository: + '''Holds roots and other information about the git repository. + THIS IS WIP AND HASN'T BEEN TESTED AT ALL! + ''' + + self.repos_dir = repos_dir + self.rev = rev + self.pool = pool + + class HGRepository: '''Holds roots and other information about the hg repository. '''
