~jelmer/dulwich/lp-pqm

« back to all changes in this revision

Viewing changes to bin/dulwich

  • Committer: Jelmer Vernooij
  • Date: 2012-02-01 22:13:51 UTC
  • mfrom: (413.11.554)
  • Revision ID: jelmer@samba.org-20120201221351-b3n2p9zttzh62dwu
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        determine_wants = r.object_store.determine_wants_all
55
55
    else:
56
56
        determine_wants = lambda x: [y for y in args if not y in r.object_store]
57
 
    graphwalker = r.get_graph_walker()
58
 
    client.fetch(path, r.object_store, determine_wants)
 
57
    client.fetch(path, r, determine_wants)
 
58
 
 
59
 
 
60
def cmd_fetch(args):
 
61
    opts, args = getopt(args, "", [])
 
62
    opts = dict(opts)
 
63
    client, path = get_transport_and_path(args.pop(0))
 
64
    r = Repo(".")
 
65
    if "--all" in opts:
 
66
        determine_wants = r.object_store.determine_wants_all
 
67
    refs = client.fetch(path, r, progress=sys.stdout.write)
59
68
 
60
69
 
61
70
def cmd_log(args):
183
192
commands = {
184
193
    "commit": cmd_commit,
185
194
    "fetch-pack": cmd_fetch_pack,
 
195
    "fetch": cmd_fetch,
186
196
    "dump-pack": cmd_dump_pack,
187
197
    "dump-index": cmd_dump_index,
188
198
    "init": cmd_init,