2008/12/9 Martin Pool <span dir="ltr">&lt;<a href="mailto:mbp@canonical.com">mbp@canonical.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Mon, Dec 8, 2008 at 10:56 AM, Marius Kruger &lt;<a href="mailto:amanic@gmail.com">amanic@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Like John, I think I&#39;d prefer this be done in test_source<br>
&gt;<br>
&gt; thats done in the latest patch<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; and check<br>
&gt;&gt; the whole working tree, except for things that are specifically<br>
&gt;&gt; excluded, such as copied-in library source. &nbsp;Then there&#39;s no chance of<br>
&gt;&gt; missing things that are committed without checking them. &nbsp;If there are<br>
&gt;&gt; already things that would fail, let&#39;s just fix them up.<br>
&gt;<br>
&gt; Uhm, last time I checked, the bazaar source is riddled with trailing white<br>
&gt; space, try:<br>
&gt; bzr.dev&gt;$ find -iname &quot;*.py&quot; | xargs grep -n -e &quot;.* $&quot; |wc -l<br>
&gt; 3319<br>
&gt;<br>
&gt; People have tried to remove it previously, but got it shot down. See eg:<br>
&gt; <a href="http://www.nabble.com/-MERGE--whitespace-normalization-td18634412.html" target="_blank">http://www.nabble.com/-MERGE--whitespace-normalization-td18634412.html</a><br>
<br>
</div>That thread got a bit broad and a bit bikesheddy. &nbsp;(Which is not to<br>
say everyone in that thread was bikeshedding.) &nbsp;Also, the proposed<br>
change &quot;normalization&quot; there seems broader and maybe more error prone<br>
than just stripping trailing whitespace.<br>
<br>
Trailing whitespace is not really a pain point for me but obviously it<br>
is for you or you wouldn&#39;t be posting? &nbsp;</blockquote><div>It was initially, but I&#39;ve adapted to using bzr cdiff --check-style before I submit patches.<br>Though, it would be easier to just let the IDE remove all trailing white space<br>
all the time. Then I don&#39;t have to worry about it.<br>I&#39;ve seen others complaining about it, so I thought we can at least prevent<br>the situation from getting worse.<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If we&#39;re going to address it<br>
I&#39;d rather have a proper test along the lines of test_source that<br>
doesn&#39;t look only at uncommitted changes, and doing that requires<br>
stripping out the existing whitespace.<br>
<br>
I&#39;d merge a change that takes it off. &nbsp;It&#39;s easy enough to catch up<br>
with this when merging later, and it&#39;ll avoid the issue coming back<br>
again.<br>
</blockquote></div><br>I&#39;d be happy to write a test that tests all the source for trailing white space<br>and then make it pass, if there is a chance that it would get merged. <br>You do know that it is going to cause a lot of &quot;spurious changes&quot; and lots of conflicts.<br>
Are we willing to take the pain?<br><br>regards<br>marius<br><br>