]> andersk Git - zcommit.git/commitdiff
Do some joining
authorGreg Brockman <gdb@mit.edu>
Tue, 23 Mar 2010 08:10:05 +0000 (04:10 -0400)
committerGreg Brockman <gdb@mit.edu>
Tue, 23 Mar 2010 08:10:05 +0000 (04:10 -0400)
zcommit.py

index dcfb201dde3d3449f58c6ba724d7d3ed134458ce..b96cf99bc676ddfa3d34dc2ad5258d307e654bac 100755 (executable)
@@ -70,18 +70,18 @@ class Application(object):
                     inst = opts.get('instance', c['id'][:8])
                     actions = []
                     if c.get('added'):
-                        actions.append('Added: %s\n' % c['added'])
+                        actions.append('Added: %s\n' % ', '.join(c['added']))
                     if c.get('removed'):
-                        actions.append('Removed: %s\n' % c['removed'])
+                        actions.append('Removed: %s\n' % ', '.join(c['removed']))
                     if c.get('modified'):
-                        actions.append('Modified: %s\n' % c['modified'])
+                        actions.append('Modified: %s\n' % ', '.join(c['modified']))
                     if not actions:
                         actions = 'Something weird happened... could not figure out what action to take'
                     info = {'name' : c['author']['name'],
                             'email' : c['author']['email'],
                             'message' : c['message'],
                             'timestamp' : c['timestamp'],
-                            'actions' : actions}
+                            'actions' : '\n--\n'.join(actions)}
                     
                     msg = """%(name)s <%(email)s>
 %(message)s
This page took 3.134306 seconds and 5 git commands to generate.