Fwd: how to poll hg repo in python
Rathnamachary G
rathnamachary at gmail.com
Thu May 7 12:25:55 UTC 2015
Hi,
I want to poll hg repository by python without using buildbot tool is it
possible?
i have tried below, but, it is always going into if condition only
with/without checkin, please help me. if anything is there.
_____________________repo.py______________________________
from buildbot.changes.hgpoller import HgPoller
while 1:
ret1=HgPoller('repo', workdir = '/path', pollInterval = 5,
project='name')
ret=ret1.poll()
if ret:
print ret
print 'if'
else:
print ret
print 'else'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20150507/af20d64c/attachment.html>
More information about the Mercurial-devel
mailing list