[PATCH] Add support for external command handlers
Lalo Martins
lalo at exoweb.net
Tue May 10 10:44:40 BST 2005
On Tue, 2005-05-10 at 18:24 +1000, Martin Pool wrote:
> mpe's patch requires that the script implement --bzr-usage and
> --bzr-options. So you can't, for example, just do 'bzr cp' without
> writing a wrapper around it. Do you think this is a good idea?
for many reasons, I think supporting *only* wrappers (or stuff written
specifically for bzr) is a better idea generally. It's pretty cheap to
do anyway (if you want to wrap a system command, write a 6-line shell
script (counting the hashbang).
%cat >$BZRPATH/rules
#!/bin/sh
case "$1" in
"--bzr-usage") ;;
"--bzr-help") echo "more optimism" ;;
*) bzr rocks ;;
esac
^D
%chmod +x $BZRPATH/rules
%bzr help rules
%bzr rules
'nuff said :-)
On the other hand, accepting arbitrary stuff may give people the false
impression that they should just symlink their favorite stuff into
bzrpath and then bend bzr around the way stuff prefers to be called.
best,
Lalo Martins
--
My personal formula for efficiency is to arrange
problems in such a way that they solve each other.
--
http://www.exoweb.net/ mailto:lalo at exoweb.net
GNU: never give up freedom http://www.gnu.org/
More information about the bazaar
mailing list