<p>The transfer shouldn't be too bad.<br>
from bzrlib import transport<br>
t = transport.get_transport(central_url)<br>
t.put_bytes(hash_path, bytes)</p>
<p>There are a few ways to configure everything.</p>
<p>John<br>
=:-></p>
<div class="gmail_quote">On Jul 23, 2011 8:17 PM, "Anteru" <<a href="mailto:newsgroups@catchall.shelter13.net">newsgroups@catchall.shelter13.net</a>> wrote:<br type="attribution">> Hi,<br>> <br>>> or it could even go into a single file eg.<br>
>> .bzrmeta/bigfiles<br>>> which contains lines the path and the hash of each big file.<br>> all right, thanks for the keywords link, that definitely looks like a<br>> starting point. So how do you suggest to start? By having some meta<br>
> files storing the hash which are tracked "as usual" by bzr, and get hold<br>> of the binary file associated with it using content filters?<br>> <br>> I'm new to Bazaar, and I haven't written a plugin for it yet, so here's<br>
> some guesswork: Wouldn't this break when the file is actually changed?<br>> I.e. let's assume I want a work-flow like this ...<br>> <br>> bzr add-big foo.bin<br>> // foo.bin.meta gets added to the repository<br>
> bzr ci<br>> // foo.bin.meta is committed<br>> // foo.bin gets transferred using some method to the server<br>> <br>> // other machine<br>> bzr pull<br>> // foo.bin.meta is checked out<br>> // content filter recognizes the file and fetches foo.bin<br>
> touch foo.bin<br>> bzr status<br>> // will show foo.bin.meta as untouched, right?<br>> bzr ci<br>> // won't update foo.bin.meta, will it?<br>> <br>> My plan is initially to store the large files locally on disk and just<br>
> get the hooking part working (i.e. no server-side communication.) I<br>> think it's enough if every binary file gets hashed and gets stored under<br>> its hash, delta compression is not important here at first and could be<br>
> possibly added later on anyway. That should be the easy part. I assume<br>> the hard part is to get the transport layer to transfer the files and<br>> get them stored server-side.<br>> <br>> Cheers,<br>> Anteru<br>
> <br>> <br></div>