[RFC] make miss alias to missing?
John Arbash Meinel
john at arbash-meinel.com
Sun Jan 8 17:49:59 GMT 2006
Alexander Belchenko wrote:
> I'm often catch myself that I run 'bzr miss' instead 'bzr missing'. And
> got error: unknown command 'miss'.
> Or I forget something or earlier bzr have 'miss' as alias for 'missing'?
> What you think about create this alias? I'm not native english speaker
> so I probably could not understand why 'miss' cannot be alias for
> 'missing'.
>
> --
> Alexander
>
>
I'm okay with this. You could easily write a plugin that did it, all you
have to do is modify the bzrlib.builtins.cmd_missing.aliases to include
'miss'.
It is as simple as:
alias_missing_to_miss.py:
import bzrlib.builtins
# I use = [] instead of .append because
# cmd_missing doesn't have it's own aliases list
# and if you .append() I think it would modify the
# low level Command list of aliases (effectively
# aliasing all commands that don't have any aliases)
bzrlib.builtins.cmd_missing.aliases = ['miss']
That should be sufficient, just put that in you ~/.bazaar/plugins/
directory.
Or it is a single one-line fix to bzr.
I'm +1 for aliasing miss to missing, I can't think of any other commands
that would start with 'miss'.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060108/97d5f430/attachment.pgp
More information about the bazaar
mailing list