1 #!/usr/bin/env python2.5
2 import sys, time, struct
3 import hashsplit, git, options, client
5 from subprocess import PIPE
9 bup join [-r host:path] [refs or hashes...]
11 r,remote= remote repository path
13 o = options.Options('bup join', optspec)
14 (opt, flags, extra) = o.parse(sys.argv[1:])
16 git.check_repo_or_die()
19 extra = linereader(sys.stdin)
22 cli = client.Client(opt.remote)
24 for blob in cli.cat(id):
25 sys.stdout.write(blob)
29 for blob in git.cat(id):
30 sys.stdout.write(blob)