Mercurial > p > roundup > code
diff scripts/notify-roundup/notify-roundup.py @ 4192:e39cb012622d gsoc-2009
it works
| author | Pygi <pygi@users.sourceforge.net> |
|---|---|
| date | Tue, 07 Jul 2009 16:51:32 +0000 |
| parents | 3ef63914f473 |
| children | d7e97f0e42f8 |
line wrap: on
line diff
--- a/scripts/notify-roundup/notify-roundup.py Tue Jul 07 16:43:19 2009 +0000 +++ b/scripts/notify-roundup/notify-roundup.py Tue Jul 07 16:51:32 2009 +0000 @@ -10,7 +10,7 @@ # See end of file for change history import sys, os, time, cStringIO, re, logging, smtplib, ConfigParser, socket -import commands +import commands, datetime # configure logging logger = logging.getLogger('notify-roundup') @@ -201,7 +201,7 @@ vcs_rev_id = db.vcs_rev.create(repository=vcs_repo_id, revision=repos.rev) # add the message to the spool - #date = roundup.date.Date(repos.date) + date = roundup.date.Date(repos.date) msgid = db.msg.create(content=repos.message, summary=repos.summary, author=userid, date=date, revision=vcs_rev_id) klass = db.getclass(repos.klass) @@ -303,7 +303,8 @@ output.write('Log:\n%s\n'%log_mines) self.message = output.getvalue() - + self.summary = "This is hg change" + self.date = time.localtime() return True
