Dulwich.io dulwich / 036b35b
Add a 'dulwich fetch' implementation. Jelmer Vernooij 8 years ago
1 changed file(s) with 12 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5353 determine_wants = r.object_store.determine_wants_all
5454 else:
5555 determine_wants = lambda x: [y for y in args if not y in r.object_store]
56 graphwalker = r.get_graph_walker()
57 client.fetch(path, r.object_store, determine_wants)
56 client.fetch(path, r, determine_wants)
57
58
59 def cmd_fetch(args):
60 opts, args = getopt(args, "", [])
61 opts = dict(opts)
62 client, path = get_transport_and_path(args.pop(0))
63 r = Repo(".")
64 if "--all" in opts:
65 determine_wants = r.object_store.determine_wants_all
66 refs = client.fetch(path, r, progress=sys.stdout.write)
5867
5968
6069 def cmd_log(args):
182191 commands = {
183192 "commit": cmd_commit,
184193 "fetch-pack": cmd_fetch_pack,
194 "fetch": cmd_fetch,
185195 "dump-pack": cmd_dump_pack,
186196 "dump-index": cmd_dump_index,
187197 "init": cmd_init,