bzrlib and branch discovery
Maritza Mendez
martitzam at gmail.com
Sat Aug 7 05:27:40 BST 2010
On Fri, Aug 6, 2010 at 6:49 PM, Gabriel Filion <lelutin at gmail.com> wrote:
> Hi,
>
> I'm trying my luck on using bzrlib to discover bazaar branches so that I
> can interact with them.
>
> In a shared repository setup as in Launchpad-hosted projects, is it
> possible to obtain a list of available branches, either using a bzr
> command, or by directly calling a function from bzrlib? The particular
> information I need is a list of branches and their last revision.
>
> I've tried my luck with the above question this week (with help from
> people on IRC), and so far I found that 'd =
> BzrDir.open_containing(some_url)' followed by
> 'd.find_branches(d.root_transport)' would logically get what I wanted.
> But it spits out an exception saying that the HTTP transport doesn't
> support list_dir().
>
> Is branch discovery possible at all with repositories hosted via http?
>
> --
> Gabriel Filion
>
>
Gabriel,
My first post to this group a couple years ago was on almost exactly the
same question, when I was writing a script to automate backing up branches.
:) Will 'bzr branches' do what you need? Note that 'branches' is part of
the bzrtools plugin, which is almost certainly installed on your system
already. Much easier than using bzrlib, if it does what you need.
Maritza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20100806/6aeb4796/attachment-0001.htm
More information about the bazaar
mailing list