<br><br><div class="gmail_quote">On Fri, Aug 6, 2010 at 6:49 PM, Gabriel Filion <span dir="ltr">&lt;<a href="mailto:lelutin@gmail.com">lelutin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I&#39;m trying my luck on using bzrlib to discover bazaar branches so that I<br>
can interact with them.<br>
<br>
In a shared repository setup as in Launchpad-hosted projects, is it<br>
possible to obtain a list of available branches, either using a bzr<br>
command, or by directly calling a function from bzrlib? The particular<br>
information I need is a list of branches and their last revision.<br>
<br>
I&#39;ve tried my luck with the above question this week (with help from<br>
people on IRC), and so far I found that &#39;d =<br>
BzrDir.open_containing(some_url)&#39; followed by<br>
&#39;d.find_branches(d.root_transport)&#39; would logically get what I wanted.<br>
But it spits out an exception saying that the HTTP transport doesn&#39;t<br>
support list_dir().<br>
<br>
Is branch discovery possible at all with repositories hosted via http?<br>
<br>
--<br>
<font color="#888888">Gabriel Filion<br>
<br>
</font></blockquote></div><br>Gabriel,<br><br>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 &#39;bzr branches&#39; do what you need?  Note that &#39;branches&#39; 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.<br>
<br>Maritza<br><br>