|
|
|
@ -58,7 +58,7 @@ import time |
|
|
|
|
import getopt |
|
|
|
|
|
|
|
|
|
# Notification command |
|
|
|
|
MAILCMD = '/bin/mail -s "CVS: %(SUBJECT)s" %(PEOPLE)s 2>&1 > /dev/null' |
|
|
|
|
MAILCMD = '/bin/mail -s "%(SUBJECT)s" %(PEOPLE)s 2>&1 > /dev/null' |
|
|
|
|
|
|
|
|
|
# Diff trimming stuff |
|
|
|
|
DIFF_HEAD_LINES = 20 |
|
|
|
@ -181,8 +181,15 @@ def main(): |
|
|
|
|
# $CVSROOT, followed by the list of files that are changing. |
|
|
|
|
if not args: |
|
|
|
|
usage(1, 'No CVS module specified') |
|
|
|
|
SUBJECT = args[0] |
|
|
|
|
specs = string.split(args[0]) |
|
|
|
|
changedfiles = [ specs[0] ]; |
|
|
|
|
for filespec in specs[1:]: |
|
|
|
|
try: |
|
|
|
|
file, oldrev, newrev = string.split(filespec, ',') |
|
|
|
|
changedfiles.append(file) |
|
|
|
|
except ValueError: |
|
|
|
|
changedfiles.append(filespec) |
|
|
|
|
SUBJECT = string.join(changedfiles, ' ') |
|
|
|
|
del args[0] |
|
|
|
|
|
|
|
|
|
# The remaining args should be the email addresses |
|
|
|
|