Mercurial > hg > CommitWatcher
view mozbasewatcher.py @ 38:035368f84847
indent
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 04 Nov 2013 23:20:32 -0800 |
parents | 7ae60d2ff1c2 |
children |
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 FeedAgentDiff 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 = FeedAgentDiff(repository=repo) watcher.update() if __name__ == '__main__': main()