[PATCH] Command abbreviations and aliases

Michael Ellerman michael+bazaar at ellerman.id.au
Fri Apr 15 07:49:59 BST 2005


Hi Martin, Jason,

I've adapted Jason's patch so that we don't have to explicitly specify
abbreviations like "st" => "status", we work them out by looking through the
list of commands. That also gives us "sta" => "status", "stat" => "status"
etc.

There's still the command aliases list, but they're just for non-obvious
things like "ci" => "commit".

I thought it might be expensive to scan all of globals() looking for names
that start with the command we've been given, but it turns out to be
negligble.

cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: command-abbreviations-and-aliases.patch
Type: text/x-diff
Size: 2104 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050415/64546cb8/attachment.bin 


More information about the bazaar mailing list