<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Marius Kruger</b> <<a href="mailto:amanic@gmail.com">amanic@gmail.com</a>><br>Date: Nov 14, 2006 5:58 AM<br>
Subject: Re: [MERGE] alias to respect spaces in quoted arguments<br>To: Martin Pool <<a href="mailto:mbp@canonical.com">mbp@canonical.com</a>><br>Cc: Aaron Bentley <<a href="mailto:aaron.bentley@utoronto.ca">aaron.bentley@utoronto.ca
</a>>, "<a href="mailto:bazaar-ng@lists.canonical.com">bazaar-ng@lists.canonical.com</a>" <<a href="mailto:bazaar-ng@lists.canonical.com">bazaar-ng@lists.canonical.com</a>><br><br></span><span class="q">
<br><br><div><span class="gmail_quote">On 10/31/06, <b class="gmail_sendername">Martin Pool</b> <<a href="mailto:mbp@canonical.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mbp@canonical.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It would actually be better to have a non-blackbox test that only ran<br>get_alias directly; you'll need to make sure of how to set up the<br>right configuration for the scope of this call which may be slightly<br>complicated. Since we identified the unicode problem we should test
<br>unicode handling too.<br></blockquote></div><br></span>Hi,<br>I was up for the challenge to write a non-blackbox test, but I ran into some troubles:<br>It seems that the GlobalConfiguration gets read every time it is required.
<br>Should it not be read once (lazily) and be kept in memory?<br>The reason this is problem for me is, that I can't modify the configuration <br>which will be loaded by the get_alias method (in commands.py), since it read anew
<br>every time its called, and I don't really want to modify the conf file for this<br>non-blackbox test.<br><br>I also think it should be possible to set branch specific aliases,<br>where the branch specific one over-rides the global one.
<br>I'll look into supporting this, If thats ok.<br><br>regards<br><span class="sg">Marius</span><div><span class="e" id="q_10ee49d4ac508548_3"><br><br clear="all"><br>-- <br><br><br><br>I code therefore I am.
</span></div><br clear="all"><br>-- <br><br><br><br>I code therefore I am.