cobalt.py

changeset 56
9e8fb18501ce
parent 55
441a04262cb4
child 57
947ec64aa2f4
equal deleted inserted replaced
55:441a04262cb4 56:9e8fb18501ce
1112 datestring = '%d day%s ago' % (delta.days, plural (delta.days)) 1112 datestring = '%d day%s ago' % (delta.days, plural (delta.days))
1113 else: 1113 else:
1114 datestring = 'on %s' % (str (date)) 1114 datestring = 'on %s' % (str (date))
1115 #fi 1115 #fi
1116 1116
1117 self.privmsg (replyto, 'changeset %s: committed by %s %s (%s)' % (node, author, datestring, diffstat)) 1117 self.privmsg (replyto, 'changeset %s (%s): committed by %s %s (%s)' % \
1118 (node, date.strftime('%g%m%d-%H%M'), author, datestring, diffstat))
1118 1119
1119 for line in message.split ('\n'): 1120 for line in message.split ('\n'):
1120 self.privmsg (replyto, ' ' + line) 1121 self.privmsg (replyto, ' ' + line)
1121 except hgapi.hgapi.HgException as e: 1122 except hgapi.hgapi.HgException as e:
1122 result = decipher_hgapi_error (e) 1123 result = decipher_hgapi_error (e)

mercurial