Plugin to keep bzr loaded in memory
Michael Ellerman
michael at ellerman.id.au
Wed Oct 5 09:16:31 BST 2005
On Wed, 5 Oct 2005 17:50, Matthieu Moy wrote:
> Another option would be to listen on stdin. It wouldn't be as
> powerfull for an interactive session, but could be interesting for
> advanced scripting:
>
> bzr service << EOF
> status
> log
> whatever
> EOF
>
> would run only one bzr process (For Bazaar/tla, that kind of thing had
> been discussed as "itla" and "arch co-process interface" if my
> memory's good).
Except we already have that, and a *whole* lot more, simply because Bzr is
written in *a scripting language*! :)
Look, status, log and diff in one process!
#! /usr/bin/env python
import bzrlib.commands
bzrlib.commands.main(['bzr', 'status'])
bzrlib.commands.main(['bzr', 'log'])
bzrlib.commands.main(['bzr', 'diff'])
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051005/1622a15d/attachment.pgp
More information about the bazaar
mailing list