Last modified: 2011-06-25 23:45:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18161, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16161 - CodeReview's diff shouldn't show whitespace changes (ViewVC doesn't either)
CodeReview's diff shouldn't show whitespace changes (ViewVC doesn't either)
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
CodeReview (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 24547 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-28 14:16 UTC by Huji
Modified: 2011-06-25 23:45 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Huji 2008-10-28 14:16:08 UTC
Compare this: r1=42730&r2=42729&pathrev=42730">http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/mwsuggest.js?r1=42730&r2=42729&pathrev=42730

With the diff section of this: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/42730

The second is too messy. In fact, there are many lines like this:

-		// remove descriptor	
+		// remove descriptor

Which are pointless. That revision doesn't change those lines, and the diff is actually mentioning an unchanged line.
Comment 1 Roan Kattouw 2008-10-28 14:18:02 UTC
(In reply to comment #0)
> The second is too messy. In fact, there are many lines like this:
> 
> -               // remove descriptor    
> +               // remove descriptor
> 
> Which are pointless. That revision doesn't change those lines, and the diff is
> actually mentioning an unchanged line.
> 

Actually, those are whitespace changes. Select the diff text and you'll see the - line has trailing whitespace while the + line doesn't.
Comment 2 Aaron Schulz 2008-11-12 23:31:31 UTC
Hmm, may close this as wontfix then.
Comment 3 MZMcBride 2010-07-26 14:14:53 UTC
*** Bug 24547 has been marked as a duplicate of this bug. ***
Comment 4 MZMcBride 2010-07-26 14:16:46 UTC
This isn't a WONTFIX. It's an actual issue that needs to be addressed. Re-opening.

Closely related to this issue is bug 18143. It's been added here as a see also.
Comment 5 Bryan Tong Minh 2010-07-26 14:22:35 UTC
Needs fixing in the PECL extension. In svn.c diff_options should be something
like {"-w", 0}.
Comment 6 Niklas Laxström 2010-10-03 07:24:58 UTC
But whitespace is important, it shouldn't be disabled unconditionally.
Comment 7 Antoine "hashar" Musso (WMF) 2010-11-22 19:50:15 UTC
Just use  '-x -wu' to ignore whitespace when svn diffing. I use the following script to review code:

 $ cat ~/bin/mw_review
 #!/bin/bash
 if [ $# -ne 1 ]
 then
 	echo "Usage: $0 <revision number>"
 	exit 1
 fi
 pushd .
 svn diff -c $1 -x -wu | less -R
 popd


Usage:
 mw_review 75333
Comment 8 Mark A. Hershberger 2010-11-22 19:53:52 UTC
This should be a bug against the PECL extension since it doesn't allow you to pass libsvn arguments.
Comment 9 Sam Reed (reedy) 2010-11-22 19:56:16 UTC
For shell diff we can add it on... "svn diff -r%d:%d %s %s"
Comment 10 Krinkle 2011-06-25 23:45:31 UTC
So, from what I can see, this is a bug in (or choise by) ViewVC, not in CodeReview ?

bug 27375 was fixed in MediaWiki.org. Whitespace changes are now identifiable (in addition to being included) in diffs in CodeReview. Which makes it's inclusion no longer useless.

Marking this as WONTFIX.

See also bug 18143 which request an option to hide them in CodeReview.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links