Johann's bzr request
Robert Collins
robertc at robertcollins.net
Fri Sep 23 04:32:57 BST 2005
On Thu, 2005-09-22 at 02:07 -0400, James Blackwell wrote:
> ----- Forwarded message from Johann Borck <johann> -----
>
> From: Johann Borck
> To: jblack at gnuarch.org
> Subject: bzr
>
> Hi James,
> i'd like to know if there's a way to use bzr from python directly, i
> looked around a little, but didn't find a way to get around the printed
> output without changing each cmd_xxx class. what i'd need is the return
> values from the commands, for example revno, will i have to use
> commands.getoutput() or similar and start a new process for each
> command, or is there a way to use bzr as a library?
The cmd_xxx classes are 'user interface' classes that implement the
console user interface. Someone using bzr from python should not use the
cmd_xxx classes at all (as other respondents have mentioned).
If you find it hard to get what you want from the underlying behaviour,
we will consider that a bug. Likewise, if you need more structured
output (see HACKING for our plans in this area) we are very open to
adjusting the api to make it easy to use.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050923/05248089/attachment.pgp
More information about the bazaar
mailing list