Hi,<br><br>I
am trying to catch the output from running <b>commands.update</b>, and as per the API
I should call ui.pushbuffer() before the command and ui.poopbuffer()
afterwards.<br>
<br>This is what I am trying:<b><br></b><b><br></b><blockquote><b>from mercurial import hg, ui, commands</b><br><br><b>u = ui.ui()</b><br><br><b>u.pushbuffer()</b><br><br><b>r = hg.repository(u, path=".")</b><br>
<b>commands.update(u, r)</b><br><br><b>u.popbuffer()</b><br></blockquote><br>But the above returns an empty popbuffer() list, and still pushes the (correct) info to stdout: <br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<b>0 files updated, 0 files merged, 0 files removed, 0 files unresolved</b><br></blockquote><br>Can
you guys catch what I am doing wrong? I spend a good chunk of time yesterday
looking for examples but most of the ones that I found were not very
helpful.<br>
<br>Thanks again for all the help.<br><br><br clear="all"><br>-- <br>Alfredo Deza<br><br>