Mercurial > p > roundup > code
diff scripts/notify-roundup/notify-roundup.py @ 4208:bc85cab08e6f gsoc-2009
Now that we have string as a revision, its al cool
| author | Pygi <pygi@users.sourceforge.net> |
|---|---|
| date | Mon, 13 Jul 2009 20:21:34 +0000 |
| parents | 48584548328d |
| children | 4498f5252f8b |
line wrap: on
line diff
--- a/scripts/notify-roundup/notify-roundup.py Mon Jul 13 20:18:37 2009 +0000 +++ b/scripts/notify-roundup/notify-roundup.py Mon Jul 13 20:21:34 2009 +0000 @@ -53,12 +53,11 @@ vcs_type = cfg.get('vcs', 'type') - if vcs_type == 'svn': - revision = int(sys.argv[3]) + if vcs_type == 'svn' or vcs_type == 'bzr' or vcs_type == 'git': + revision = sys.argv[3] elif vcs_type == 'hg': revisions = sys.argv[3].split(':') - revisionz = revisions[1].lstrip() - revision = int(revisionz) + revision = revisions[1].lstrip() else: logging.error('something wen\'t wrong')
