--- a/__init__.py Sat May 30 18:24:13 2009 -0700
+++ b/__init__.py Sat May 30 20:44:14 2009 -0700
-# Copyright (c) 2007, Brendan Cully
+# Copyright (c) 2007, 2009 Brendan Cully
# Redistribution and use in source and binary forms, with or without
--- a/config.py Sat May 30 18:24:13 2009 -0700
+++ b/config.py Sat May 30 20:44:14 2009 -0700
-# Copyright (c) 2007, Brendan Cully
+# Copyright (c) 2007, 2009 Brendan Cully
# Redistribution and use in source and binary forms, with or without
--- a/plugin.py Sat May 30 18:24:13 2009 -0700
+++ b/plugin.py Sat May 30 20:44:14 2009 -0700
-# Copyright (c) 2007, Brendan Cully
+# Copyright (c) 2007, 2009 Brendan Cully
# Redistribution and use in source and binary forms, with or without
irc.replies(fmt(out), joiner=' '.join)
+ def hglog(self, irc, msg, args, rev):
+ "gets the changelog message for the given revision"
+ repo = '/home/brendan/hg/mercurial/crew'
+ tmpl = '{rev}:{node|short}\n{date|age} ago\n{author}\n{files}\n{desc}'
+ cmd = "%s -R %s log -v --limit 1 --template '%s' -r %s" \
+ % (self.path, repo, tmpl, rev)
+ irc.reply('No result found.')
+ lines = [x for x in out.strip().splitlines() if x]
+ rev, date, user, files = lines[:4]
+ rev = ircutils.bold(rev)
+ user = ircutils.mircColor(user, fg='green')
+ date = ircutils.mircColor(date, fg='black')
+ lines = ['%s %s %s: %s' % (rev, user, date, files)] + lines
+ hglog = wrap(hglog, ['text'])
--- a/test.py Sat May 30 18:24:13 2009 -0700
+++ b/test.py Sat May 30 20:44:14 2009 -0700
-# Copyright (c) 2007, Brendan Cully
+# Copyright (c) 2007, 2009 Brendan Cully
# Redistribution and use in source and binary forms, with or without