# HG changeset patch # User Santeri Piippo # Date 1402607841 -10800 # Node ID 2c6265a99d326ec07f02f1ab931fe80d3bc1240f # Parent b6d2b7de0a6dc2bfcf4b235a6b6d40a2fa74a9ce - added .die diff -r b6d2b7de0a6d -r 2c6265a99d32 cobalt.py --- a/cobalt.py Fri Jun 13 00:14:42 2014 +0300 +++ b/cobalt.py Fri Jun 13 00:17:21 2014 +0300 @@ -329,7 +329,6 @@ repo.hg_pull() repo.hg_update('tip', True) r2 = repo.hg_id() - self.privmsg (replyto, '%s <-> %s' % (r1, r2)) if r1 != r2: self.privmsg (replyto, 'Updated to %s, restarting...' % r2) excepterm('') @@ -337,6 +336,9 @@ self.privmsg (replyto, 'Up to date at %s.' % r2) except hgapi.HgException as e: raise logical_exception ('Search failed: %s' % `e`) + elif command == 'die': + check_admin (sender, ident, host, command) + quit() # else: # raise logical_exception ("unknown command `.%s`" % command)