--- a/plugin.py Sat May 30 20:44:14 2009 -0700
+++ b/plugin.py Sat May 30 21:03:37 2009 -0700
+def revparse(irc, msg, args, state):
+ state.errorInvalid('revision', args[0],
+ state.args.append(args.pop(0))
+addConverter('revision', revparse)
class Mercurial(callbacks.Plugin):
"""Add the help for "@plugin help Mercurial" here
This should describe *how* to use this plugin."""
lines = ['%s %s %s: %s' % (rev, user, date, files)] + lines
- hglog = wrap(hglog, ['text'])
+ hglog = wrap(hglog, ['revision'])