[PATCH] Branch and pull-- now with remote

Martin Pool mbp at sourcefrog.net
Sun May 29 06:31:38 BST 2005


On 29 May 2005, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:
> As it turns out, there's not much more to be done to support remote
> branches.
> 
> This updated patch adds the ability to branch and pull from remote
> branches.  So now, this does work:
> $ bzr branch http://www.bazaar-ng.org/bzr/bzr.dev
> 
> It's just that it works pretty slowly, because it's not pipelined.

I was thinking about pipelining.  In many cases we do know in advance
a number of files that we'll want to fetch down.  These can be either
pipelined onto a single HTTP connection, or spread across multiple
connections.  

I'm thinking of some kind of producer/consumer or blackboard model
where the main program adds URLs to a queue that it wants, and then
one or more HTTP threads pull them down and eventually mark them as
either complete or failed.

urlgrabber's web page talks about this but it doesn't seem to be
written yet.  Perhaps the easiest thing is to introduce a layer on top
of urlgrabber, since the API for backgrounded/async downloads would be
rather different.

> More interesting is bzr pull.  This will allow you to pull the latest
> changes in, without clobbering local changes.

Well done!  I'll merge both these this afternoon.

-- 
Martin




More information about the bazaar mailing list