Mercurial > hg > CommitWatcher
comparison mozbasewatcher.py @ 4:2bc7eee11207
mozbasewatcher.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 26 Sep 2013 22:27:11 -0700 |
parents | 4cb3971d9d9d |
children | 883c88b13142 |
comparison
equal
deleted
inserted
replaced
3:134cdb6a882c | 4:2bc7eee11207 |
---|---|
7 """ | 7 """ |
8 | 8 |
9 import optparse | 9 import optparse |
10 import os | 10 import os |
11 import sys | 11 import sys |
12 from | 12 from commitwatcher import FeedAgent |
13 | 13 |
14 here = os.path.dirname(os.path.realpath(__file__)) | 14 here = os.path.dirname(os.path.realpath(__file__)) |
15 | 15 |
16 def main(args=sys.argv[1:]): | 16 def main(args=sys.argv[1:]): |
17 | 17 |
18 # parse command line args | |
18 usage = '%prog [options]' | 19 usage = '%prog [options]' |
19 parser = optparse.OptionParser(usage=usage, description=__doc__) | 20 parser = optparse.OptionParser(usage=usage, description=__doc__) |
20 options, args = parser.parse_args(args) | 21 options, args = parser.parse_args(args) |
21 | 22 |
23 # watch mozilla-central | |
22 repo = 'http://hg.mozilla.org/mozilla-central' | 24 repo = 'http://hg.mozilla.org/mozilla-central' |
23 | 25 watcher = FeedAgent(repository=repo) |
26 watcher.update() | |
24 | 27 |
25 if __name__ == '__main__': | 28 if __name__ == '__main__': |
26 main() | 29 main() |