[RFC][PATCH] support for aliases in bazaar.conf

John A Meinel john at arbash-meinel.com
Sun Feb 12 19:16:21 GMT 2006


Erik Bågfors wrote:
> 2006/2/11, Aaron Bentley <aaron.bentley at utoronto.ca>:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Martin Pool wrote:
>>
>> | If we did this, it would seem to be a proper superset of what you can do
>> | with default options.  Aaron, would you be OK to use this instead?
>>
>> Yes, as long as overrides still work.  e.g. if I have log aliased to
>> 'log -r -10..-1', I should still be about to specify 'log -r 5'.
>>
> 
> This should work now.  You can even have the alias
> ll=log --line -r-5..-1
> and do
> ll -r10
> which will turn it into log --line -r10
> 
> There are tests to prove it :)
> 
> Take a look at don't be affraid to criticize me. I never used python before bzr.
> 
> If you guys want me to rewrite anything that's fine also.  Mail me off
> list if you don't want to clutter the list.
> 
> branch at the same place.
> 
> Regards,
> Erik
> 

You need a double space before TestAliases in test_aliases.py

Instead of doing a double loop over alias_argv and then argv, why not do
a single loop with

for arg in alias_argv + argv:

It also makes your patch smaller, since it doesn't looked like you
changed all the lines that you just indented.

get_alias() needs 2 blank lines before and after it.

Ultimately, I think some of your changes will be superceeded by using
optparse, but in the mean time, it is probably useful.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060212/1e45f7a1/attachment.pgp 


More information about the bazaar mailing list