# HG changeset patch # User Jeff Hammel # Date 1320885209 28800 # Node ID c77d29a10e088e8946d19357a22eea33c5d8896b # Parent bc7d6763357e95d94a6d0cc2f5f93ee67e0420d8 get it working diff -r bc7d6763357e -r c77d29a10e08 fetch.py --- a/fetch.py Wed Nov 09 16:29:58 2011 -0800 +++ b/fetch.py Wed Nov 09 16:33:29 2011 -0800 @@ -91,8 +91,7 @@ """checkout a git repository""" type = 'git' -fetchers = dict([(i.__name__, i) for i in fetchers]) -__all__ += fetchers.keys() +__all__ += [i.__name__ for i in fetchers] class Fetch(object): @@ -194,6 +193,7 @@ options, args = parser.parse_args(args) if options.list_fetchers: + for name in sorted(fetchers.keys()): print name parser.exit() @@ -203,7 +203,7 @@ parser.exit() items = read_manifests(*args) - fetch = Fetch(fetchers.values(), strict=options.strict) + fetch = Fetch(fetchers, strict=options.strict) # download the files fetch.fetch(*items)