bzr server

Andrew Bennetts andrew at canonical.com
Fri Sep 22 04:38:13 BST 2006


John Arbash Meinel wrote:
> Erik Bågfors wrote:
[...]
> > 
> > I also cannot find any way to list branches on a server, I believe
> > that this is needed so that one can access all branches on a known
> > server.
> > 
> > Regards,
> > Erik
> 
> If you have bzrtools, there is a command 'bzr branches [path]', which
> does this. Basically, if you have sftp/local it does a list_dir() and
> then tries to instantiate a branch for each path. Over http, it
> screen-scrapes the http index, and tries to find relative paths. Which
> means it generally works for Apache default indexes.
> 
> It isn't terribly optimized, in that it tries to check for a branch on
> every file or directory listed (it only skips ".bzr"). So if you have
> working trees, it is *very* slow. But we don't really intend for remote
> repositories to have working trees, so it should actually work on all
> current formats. The smart server has 'list_dir' implemented, so it
> should work just fine.

I just did a "bzr branches bzr+ssh://localhost/..." and it worked just fine.

-Andrew.





More information about the bazaar mailing list