calling other bzr commands from with a plugin

Martin Pool mbp at sourcefrog.net
Mon Nov 21 03:51:17 GMT 2005


On 21 Nov 2005, Jamie Wilkinson <jaq at spacepants.org> wrote:
> What's the correct procedure for calling other Commands from within a
> plugin?
> 
> Specifically, I want to call Aaron's 'patch' command from bzrtools, but
> without shelling out to os.system.

Probably call bzrlib.commands.run_bzr, run_bzr_catch_errors or something
similar.  But consider first if there isn't a more machine-oriented API
that will do what you want, such as in this case
bzrlib.plugins.bzrtools.patch.patch.  

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051121/f4f3831b/attachment.pgp 


More information about the bazaar mailing list