diff -r 6337540fb44b -r 9e757b602586 mod_hgpoll.py --- a/mod_hgpoll.py Sat Nov 15 16:50:47 2014 +0200 +++ b/mod_hgpoll.py Mon Nov 17 22:14:58 2014 +0200 @@ -25,7 +25,13 @@ 'description': 'Executes a hg command', 'args': ' ', 'level': 'admin', - } + }, + { + 'name': 'resolves', + 'description': 'Manually cause a ticket to be resolved by a changeset', + 'args': ' ', + 'level': 'admin', + }, ] } @@ -149,4 +155,10 @@ if result[0]: self.privmsg (replyto, 'error: %s' % result[1]) else: - self.privmsg (replyto, 'error: %s' % `e`) \ No newline at end of file + self.privmsg (replyto, 'error: %s' % `e`) + +def cmd_resolves (bot, args, replyto, **rest): + try: + HgPoll.announce_ticket_resolved (args['ticket'], args['changeset']) + except Exception as e: + bot.privmsg (replyto, 'Error: %s' % e)