[RFC] New feature: --batch to accept command sequences from stdin (or file)

Jelmer Vernooij jelmer at samba.org
Wed Jun 21 17:44:46 BST 2006


On Wed, 2006-06-21 at 19:29 +0300, Jari Aalto+mail.perl wrote:
> bzr startup time, as for all interpreted languages (Perl, Python ...)
> is quite constly. Especially under Win32/Cygwin it takes 3-5 seconds
> before simple "bzr ci" is run under old hardware.
> 
> Running series of command is therefore quite time consuming under some
> OSs/hardware.
> 
> It would be nice if bzr somehow accepted commands to run from 
> stdin, from file or command line. Something like:
> 
>     brz --batch "bzr init; bzr pull ../devel; ..."
> 
> Or:
> 
>     echo "bzr init; bzr pull ../devel; ..." | bzr --batch
> 
> Or: 
> 
>     brz --batch-file commands.txt
> 
> The commands would be started with word
> 
>     bzr ...
> 
> just like in command line and terminated with semicolon
You might want to check out 'bzr shell', which does something a bit
similar (not sure if it implements colons for seperation between
commands though). It's part of bzrtools.

Cheers,

Jelmer
-- 
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
-------------- 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/20060621/f0da59b8/attachment.pgp 


More information about the bazaar mailing list