[PING][RFC][MERGE] alias to respect spaces in quoted arguments
Wouter van Heyst
larstiq at larstiq.dyndns.org
Sat Nov 25 18:00:45 GMT 2006
On Fri, Nov 24, 2006 at 08:33:52AM +0200, Marius Kruger wrote:
> ---------- Forwarded message ----------
> From: Marius Kruger <amanic at gmail.com>
> Date: Nov 14, 2006 5:58 AM
> Subject: Re: [MERGE] alias to respect spaces in quoted arguments
> To: Martin Pool <mbp at canonical.com>
> Cc: Aaron Bentley <aaron.bentley at utoronto.ca>, "
> bazaar-ng at lists.canonical.com" <bazaar-ng at lists.canonical.com>
>
>
>
> On 10/31/06, Martin Pool <mbp at canonical.com> wrote:
> >
> >It would actually be better to have a non-blackbox test that only ran
> >get_alias directly; you'll need to make sure of how to set up the
> >right configuration for the scope of this call which may be slightly
> >complicated. Since we identified the unicode problem we should test
> >unicode handling too.
> >
>
> Hi,
> I was up for the challenge to write a non-blackbox test, but I ran into some
> troubles:
> It seems that the GlobalConfiguration gets read every time it is required.
> Should it not be read once (lazily) and be kept in memory?
> The reason this is problem for me is, that I can't modify the configuration
> which will be loaded by the get_alias method (in commands.py), since it read
> anew
> every time its called, and I don't really want to modify the conf file for
> this
> non-blackbox test.
I'm not sure what you mean here, have you looked at
bzrlib/tests/test_config.py?
> I also think it should be possible to set branch specific aliases,
> where the branch specific one over-rides the global one.
> I'll look into supporting this, If thats ok.
This seems error-prone and confusing to me, how do you intend to use it?
Wouter van Heyst
P.S. Do you have a branch available with your current work? It took some
time puzzling things together going over archive mail from
http://bundlebuggy.aaronbentley.com/request/%3C418c22640610200547y3f649c15w45714df1a8115f9@mail.gmail.com%3E
In the end, gmane helped:
http://thread.gmane.org/gmane.comp.version-control.bazaar-ng.general/18411/focus=19647
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061125/c4968c5c/attachment.pgp
More information about the bazaar
mailing list