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

Erik Bågfors zindar at gmail.com
Fri Feb 10 23:21:20 GMT 2006


2006/2/6, Martin Pool <mbp at sourcefrog.net>:
> On  5 Feb 2006, Erik B?gfors <zindar at gmail.com> wrote:
> > Hi
> >
> > I keep doing simple things that I want in bzr...
> >
> > I implemented support for aliases in bazaar.conf. The following are
> > some examples
> >
> > [ALIASES]
> > lastlog=log --line -r-10..-1
> > ll=log --line -r-10..-1
> > h=help
> > up=pull
>
> I think it seems like a pretty useful feature; quite a few people seem
> to like to have shortcuts like these and they seem personal enough that
> we probably can't please everyone with builtins.
>
> However, I would like to see some tests that cover this: that aliases
> work, that aliases with options work, that --no-aliases disables them,
> etc.  I think there are some things in bzrlib.tests.test_config that you
> could use for this.

I have now built tests for this. Both blackbox and normal. I also
merged jam-integration, because it makes blackbox tests work.  I put
all blackbox tests into one test method, don't know if that's the
wrong thing to do or not (they really do three tests, in one). Please
take a look and see what you think.

Regards,
Erik




More information about the bazaar mailing list