comparison mozbasewatcher.py @ 10:7ae60d2ff1c2

commitwatcher/agent.py mozbasewatcher.py tests/41701d2c0341.diff
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 28 Sep 2013 05:10:14 -0700
parents 883c88b13142
children
comparison
equal deleted inserted replaced
9:08dd6fbbec3a 10:7ae60d2ff1c2
7 """ 7 """
8 8
9 import optparse 9 import optparse
10 import os 10 import os
11 import sys 11 import sys
12 from commitwatcher import FeedAgent 12 from commitwatcher import FeedAgentDiff
13 13
14 def main(args=sys.argv[1:]): 14 def main(args=sys.argv[1:]):
15 15
16 # parse command line args 16 # parse command line args
17 usage = '%prog [options]' 17 usage = '%prog [options]'
18 parser = optparse.OptionParser(usage=usage, description=__doc__) 18 parser = optparse.OptionParser(usage=usage, description=__doc__)
19 options, args = parser.parse_args(args) 19 options, args = parser.parse_args(args)
20 20
21 # watch mozilla-central 21 # watch mozilla-central
22 repo = 'http://hg.mozilla.org/mozilla-central' 22 repo = 'http://hg.mozilla.org/mozilla-central'
23 watcher = FeedAgent(repository=repo) 23 watcher = FeedAgentDiff(repository=repo)
24 watcher.update() 24 watcher.update()
25 25
26 if __name__ == '__main__': 26 if __name__ == '__main__':
27 main() 27 main()