Mercurial > hg > CommitWatcher
view 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 |
line wrap: on
line source
#!/usr/bin/env python """ script for watching mozbase https://wiki.mozilla.org/Auto-tools/Projects/Mozbase """ import optparse import os import sys from commitwatcher import FeedAgent here = os.path.dirname(os.path.realpath(__file__)) def main(args=sys.argv[1:]): # parse command line args usage = '%prog [options]' parser = optparse.OptionParser(usage=usage, description=__doc__) options, args = parser.parse_args(args) # watch mozilla-central repo = 'http://hg.mozilla.org/mozilla-central' watcher = FeedAgent(repository=repo) watcher.update() if __name__ == '__main__': main()