Update of /cvsroot/cvs-syncmail/syncmail
In directory sc8-pr-cvs1:/tmp/cvs-serv23543
Modified Files:
Tag: new-config-branch
syncmail
Log Message:
Before generated the diffs, sort the change records by name so they
are presented in a predictable order.
Index: syncmail
===================================================================
RCS file: /cvsroot/cvs-syncmail/syncmail/syncmail,v
retrieving revision 1.36.2.3
retrieving revision 1.36.2.4
diff -u -d -r1.36.2.3 -r1.36.2.4
--- syncmail 10 Jul 2003 12:56:11 -0000 1.36.2.3
+++ syncmail 10 Jul 2003 14:26:35 -0000 1.36.2.4
@@ -603,12 +603,16 @@
print 'Not sending email for imported sources.'
return
- changes = load_change_info()
+ items = load_change_info().items()
+ items.sort()
+ changes = []
+ for name, entry in items:
+ changes.append(entry)
if config.verbose:
print 'Mailing %s...' % people
print 'Generating notification message...'
- blast_mail(config, changes.values())
+ blast_mail(config, changes)
if config.verbose:
print 'Generating notification message... done.'
|