mod_hgpoll.py

changeset 73
d67cc4fbc3f1
parent 72
2266d6d73de3
child 74
9f14fb6995ff
equal deleted inserted replaced
72:2266d6d73de3 73:d67cc4fbc3f1
1 from hgapi import hgapi, Repo 1 from hgapi import hgapi, Repo
2 from datetime import datetime
2 import hgpoll as HgPoll 3 import hgpoll as HgPoll
3 4
4 ModuleData = { 5 ModuleData = {
5 'commands': 6 'commands':
6 [ 7 [
26 } 27 }
27 28
28 def cmd_checkhg (bot, **rest): 29 def cmd_checkhg (bot, **rest):
29 HgPoll.force_poll() 30 HgPoll.force_poll()
30 31
31 def cmd_cset (bot, args, **rest) 32 def cmd_cset (bot, args, **rest):
32 repo = Repo ('zandronum-everything') 33 repo = Repo ('zandronum-everything')
33 data = "" 34 data = ""
34 node = args['key'] 35 node = args['key']
35 36
36 # Possibly we're passed a date version instead. Try find the node for this. 37 # Possibly we're passed a date version instead. Try find the node for this.

mercurial