Hi,<br><br>Nevermind. I found it and am using it like this:<br><br>if (wt.branch.last_revision() != wt.last_revision()):<br>    st.append(&quot;needs_updating&quot;)<br><br>It does what I need it to now.<br><br>Cheers.<br>
<br><br><div class="gmail_quote">On Mon, Jun 15, 2009 at 1:19 AM, Joao Pedrosa <span dir="ltr">&lt;<a href="mailto:joaopedrosa@gmail.com">joaopedrosa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>When working with Bazaar I try and manage lots of simultaneous branches, sometimes<br>doing operations in a number of them at the same time just to save the trouble to repeat<br>the operation on each one that needs it. So I can for example commit, revert, pull and push<br>

in batches. ;-)<br><br>But when I &quot;update&quot; in batches, I have not found a way to do it only when it&#39;s needed to<br>save the unneeded processing of calling it when it&#39;s not really needed, but just because<br>

it is to work in batch I cannot tell which branch needs it or not and work from there.<br><br>I tried reading two of the bzrlib files, workingtree.py and branch.py, but I have not found<br>what I wanted. I already make use of Branch.revno for checking the differences so<br>

I can push and pull more efficiently, and it seems as if it&#39;s the only revno available<br>from what I can tell and it comes from calls to last_revision_info.<br><br>I once overheard folks saying perhaps on #bzr that there are two revisions, the branch&#39;s<br>

and the workingtree&#39;s or working copy. As far as I can tell, there is no way to retrieve<br>the latter&#39;s unless it matches the branch&#39;s. ;-)<br><br>Am I doomed? Having upgraded the format of my branches to &quot;--2a&quot;, just for testing it<br>

on this desktop computer I checked the time it takes to run update on most of the branches<br>and it took over 3 minutes on this quite fast machine. If there was a way to run<br>update only when it was needed, I could save said minutes and more, as I often run<br>

upgrade on the server as well when I push changes to it and want to make use of them<br>for running web sites and so on.<br><br>I am more worried about scaling this operation so I could grow the number of branches<br>without having to fear further.<br>

<br>Cheers and thanks,<br><font color="#888888">Joao<br>
</font></blockquote></div><br>