hi<br><br>I think it makes my test lot easier to have &#39;bzr rm ...&#39; syntax.<br>and i did previously converted them to lists,<br>but Jonk and I talked about magic previously on the list <br>
and he was sort of okay with it if it makes the tests easier and clearer.<br><br>so I was sort of hoping of just moving this to my test for now<br>and moving it back to __init__ after some discussion an hopefully consensus.
<br><br>but if converting it again is what it takes, then I can do it.<br><br>thanks for all the reviews<br>marius<br><br><br>ps. I am away this weekend and think I&#39;ll be able to manage one more bundle today<br><br><br>
<div><span class="gmail_quote">On 4/20/07, <b class="gmail_sendername">Martin Pool</b> &lt;<a href="mailto:mbp@sourcefrog.net">mbp@sourcefrog.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 4/20/07, Marius Kruger &lt;<a href="mailto:amanic@gmail.com">amanic@gmail.com</a>&gt; wrote:<br>&gt; hi,<br>&gt; I have addressed the issues raised on the list, in the way I replied to the<br>&gt; mails.<br>&gt;<br>&gt; please find attached the updated bundle and a diff since the previous bundle
<br>&gt; if you&#39;d like to see how I tried to fix things.<br><br>Thanks for the incremental diff, that makes it a lot easier.&nbsp;&nbsp;I really<br>want to get this in the next release, and appreciate you redrafting it<br>so many times.
<br><br>@@ -31,6 +31,16 @@<br><br> class TestRemove(ExternalBase):<br><br>+&nbsp;&nbsp;&nbsp;&nbsp;def run_bzr_captured(self, argv, retcode=0, encoding=None, stdin=None,<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; working_dir=None):<br>+<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# magically convert commands like &#39;remove abc&#39; to [&#39;remove&#39;, &#39;abc&#39;]
<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (isinstance(argv, tuple) and len(argv) == 1 and<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isinstance(argv[0], basestring)):<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;argv = shlex.split(argv[0])<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return ExternalBase.run_bzr_captured(self, argv, retcode, encoding,
<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stdin, working_dir)<br>+<br>&nbsp;&nbsp;&nbsp;&nbsp; def _make_add_and_assert_tree(self, files):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tree = self.make_branch_and_tree(&#39;.&#39;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.build_tree(files)<br><br>I don&#39;t think this really addresses the gist of John&#39;s comments, and
<br>it might be confusing that run_bzr_captured works differently in this<br>class to elsewhere.&nbsp;&nbsp;So I think it would be better to actually change<br>all the calls in these tests to just pass the arguments as individual<br>
strings, which should be a pretty mechanical change.&nbsp;&nbsp;I&#39;ll keep an eye<br>out tomorrow and hopefully we can then merge it.<br><br>--<br>Martin<br></blockquote></div><br><br clear="all"><br>-- <br><br>I don&#39;t trust a Revision Control System with less than 5900 unit tests.