<div dir="ltr"><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">&nbsp;&nbsp;&nbsp; ------------------------------------------------------------------------<br>
&nbsp;&nbsp;&nbsp; * Vincent Ladeuil &lt;<a href="mailto:v.ladeuil%2Blp@free.fr">v.ladeuil+lp@free.fr</a>&gt; * &nbsp;&nbsp;&nbsp; * 16 July 2008 08:13 *<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Marius&gt; hi<br>&nbsp;&nbsp;&nbsp; Marius&gt; I changed `bzr init` and `bzr init-repo` to print out<br>
&nbsp;&nbsp;&nbsp; Marius&gt; the same as `bzr info` if it completed successfully<br>&nbsp;&nbsp;&nbsp; Marius&gt; (and if we&#39;re not in quiet mode)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Marius&gt; I managed to get the tests to pass again (modelled after the<br>&nbsp;&nbsp;&nbsp; info and pull<br>
&nbsp;&nbsp;&nbsp; Marius&gt; tests),<br>&nbsp;&nbsp;&nbsp; Marius&gt; but I&#39;m concerned about:<br>&nbsp;&nbsp;&nbsp; Marius&gt; 1) In &lt;bzrlib/tests/commands/test_init.py&gt; and<br>&nbsp;&nbsp;&nbsp; Marius&gt; &lt;bzrlib/tests/commands/test_init.py&gt;<br>&nbsp;&nbsp;&nbsp; Marius&gt;&nbsp;&nbsp;&nbsp; I had to do the following:<br>
&nbsp;&nbsp;&nbsp; Marius&gt; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.assertEquals(1, len(self.connections))<br>&nbsp;&nbsp;&nbsp; Marius&gt; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.assertEquals(2, len(self.connections))<br>&nbsp;&nbsp;&nbsp; Marius&gt;&nbsp;&nbsp;&nbsp; I&#39;m not sure if this sort of thing is acceptable or how to<br>
&nbsp;&nbsp;&nbsp; properly fix<br>&nbsp;&nbsp;&nbsp; Marius&gt; it,<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; It is not. The purpose of the test is to check that a single<br>&nbsp;&nbsp;&nbsp; connection to the server is used, for performance reasons but<br>&nbsp;&nbsp;&nbsp; also because the user will be prompted for its password again<br>
&nbsp;&nbsp;&nbsp; otherwise.<br></blockquote><br>thanks for the explanation<br><br>...<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">&nbsp;&nbsp;&nbsp; Marius&gt; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; show_bzrdir_info(bzrdir.BzrDir.open_containing(location)[0],<br>&nbsp;&nbsp;&nbsp; Marius&gt; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; verbose=0, outfile=self.outf)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; I think using open_containing_from_transport(to_transport)<br>&nbsp;&nbsp;&nbsp; instead of open_containing(location), will make the test pass<br>
&nbsp;&nbsp;&nbsp; again.<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Alternatively you can do open_containing(location,<br>&nbsp;&nbsp;&nbsp; possible_transports=[to_transport]).<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; By using &#39;location&#39; you force bzrdir to create a new transport,<br>&nbsp;&nbsp;&nbsp; breaking the existing relation between location and to_transport,<br>
&nbsp;&nbsp;&nbsp; defeating the connection sharing mechanism.<br></blockquote><br>Thank you so much for the explanation and suggestions, I was really stuck.<br>I opted for your alternate solution, and it worked like a bomb!<br><br>I attached the diff since my previous patch, for your reviewing convenience.<br>
<br>regards<br>Marius<br></div>