hi<br><br>I think it makes my test lot easier to have 'bzr rm ...' 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'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> <<a href="mailto:mbp@sourcefrog.net">mbp@sourcefrog.net</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;">
On 4/20/07, Marius Kruger <<a href="mailto:amanic@gmail.com">amanic@gmail.com</a>> wrote:<br>> hi,<br>> I have addressed the issues raised on the list, in the way I replied to the<br>> mails.<br>><br>> please find attached the updated bundle and a diff since the previous bundle
<br>> if you'd like to see how I tried to fix things.<br><br>Thanks for the incremental diff, that makes it a lot easier. 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>+ def run_bzr_captured(self, argv, retcode=0, encoding=None, stdin=None,<br>+ working_dir=None):<br>+<br>+ # magically convert commands like 'remove abc' to ['remove', 'abc']
<br>+ if (isinstance(argv, tuple) and len(argv) == 1 and<br>+ isinstance(argv[0], basestring)):<br>+ argv = shlex.split(argv[0])<br>+ return ExternalBase.run_bzr_captured(self, argv, retcode, encoding,
<br>+ stdin, working_dir)<br>+<br> def _make_add_and_assert_tree(self, files):<br> tree = self.make_branch_and_tree('.')<br> self.build_tree(files)<br><br>I don't think this really addresses the gist of John's comments, and
<br>it might be confusing that run_bzr_captured works differently in this<br>class to elsewhere. 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. I'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't trust a Revision Control System with less than 5900 unit tests.