Mercurial > hg > CommitWatcher
changeset 4:2bc7eee11207
mozbasewatcher.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 26 Sep 2013 22:27:11 -0700 |
parents | 134cdb6a882c |
children | d85093ba9f45 |
files | mozbasewatcher.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mozbasewatcher.py Thu Sep 26 22:19:07 2013 -0700 +++ b/mozbasewatcher.py Thu Sep 26 22:27:11 2013 -0700 @@ -9,18 +9,21 @@ import optparse import os import sys -from +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()