~ubuntu-branches/ubuntu/precise/gozerbot/precise

« back to all changes in this revision

Viewing changes to debian/gozerbot/usr/lib/python2.5/site-packages/gozerplugs/plugs/hg.py

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Malcolm
  • Date: 2008-06-02 19:26:39 UTC
  • mfrom: (1.1.3 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080602192639-3rn65nx4q1sgd6sy
Tags: 0.8.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# (c) Wijnand 'tehmaze' Modderman - http://tehmaze.com
4
4
# BSD License
5
5
 
6
 
""" hg related information, only works on hg version of the bot """
 
6
""" only works on hg version of the bot """
7
7
 
8
8
from gozerbot.generic import gozerpopen
9
9
from gozerbot.aliases import aliases
144
144
 
145
145
cmnds.add('hg-changes', handle_hg_changes, 'USER')
146
146
examples.add('hg-changes', 'show changes in the current release (tip) or \
147
 
between two releases', '1) hg-changes tip 2) hg-changes 666 tip')
 
147
between two releases', '1) hg-changes tip 2) hg-changes 1900 tip')
148
148
 
149
149
def handle_hg_committers(bot, ievent):
150
150
    """ show hg committers and the number of commits they made """
187
187
        ievent.reply('no result')
188
188
 
189
189
cmnds.add('hg-committers', handle_hg_committers, 'USER')
190
 
examples.add('hg-committers', 'shows hg committer statistics', 'hg-committers [short]')
 
190
examples.add('hg-committers', 'shows hg committer statistics', 'hg-committers')
191
191
aliases.data['committers'] = 'hg-committers'
192
192
 
193
193
def handle_hglog(bot, ievent):
237
237
 
238
238
cmnds.add('hg-log', handle_hglog, 'USER')
239
239
examples.add('hg-log', 'show the changelog for the repo, or for a file', \
240
 
'hg-log gozerbot/plugs/hg.py')
 
240
'hg-log gozerplugs/plugs/hg.py')