'msg' : msg})
cmd = [ZWRITE, '-S', sender, '-c', klass, '-i', instance,
'-s', zsig, '-d', '-m', msg]
- subprocess.check_call(cmd)
+ subprocess.check_call([str(p) for p in cmd])
class Application(object):
@cherrypy.expose
<ul>
<li> <tt>/instance/$instance</tt> </li>
-<li> <tt>/zsig/$zsig</tt> </li>
+<li> <tt>/zsig/$zsig</tt> (sets the prefix of the zsig; the postfix is always the branch name) </li>
<li> <tt>/sender/$sender</tt> </li>
</ul>
"""
zsig = '%s: %s' % (opts['zsig'], zsig)
sender = opts.get('sender', 'daemon.zcommit')
logger.debug('Set zsig')
- for c in reversed(payload['commits']):
+ for c in payload['commits']:
inst = opts.get('instance', c['id'][:8])
actions = []
if c.get('added'):
'email' : c['author']['email'],
'message' : c['message'],
'timestamp' : c['timestamp'],
- 'actions' : '--\n'.join(actions)}
+ 'actions' : '--\n'.join(actions),
+ 'url' : c['url']}
msg = """%(name)s <%(email)s> (%(timestamp)s)
+%(url)s
> %(message)s
--
%(actions)s""" % info