Re: [Codestriker-user] Whitespace ignores and other DIFF switches
Brought to you by:
sits
|
From: Tim C. <tim...@sh...> - 2006-12-14 20:23:53
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Arial">David,<br>
<br>
Thanks for the information on this. FYI I am on Subversion 1.4.2, and
with the new white space command argument available in 1.4 and higher I
was able to use it successfully with Codestriker. Of course I would
have achieved this much quicker if I had remembered to update the Perl
bindings on my development system earlier than I did in my testing! I
edited, per your instructions the
/lib/Codestriker/Repository/Subversion.pm to add the following in both
the svn diff args commands as shown below. I hope someone else finds
this information useful.<br>
<br>
@args = ();<br>
push @args, 'diff';<br>
push @args, '--non-interactive';<br>
push @args, '--no-auth-cache';<br>
<i><b>push @args, '-x -w -b';</b></i><br>
push @args, @{ $self->{userCmdLine} };<br>
push @args, '-r';<br>
push @args, $start_tag . ':' . $end_tag;<br>
push @args, '--old';<br>
push @args, $self->{repository_url};<br>
push @args, $module_name;<br>
<br>
</font></font>
<pre class="moz-signature" cols="72">Tim Casada
</pre>
David Sitsky wrote:
<blockquote cite="mid:457...@us..."
type="cite">
<blockquote type="cite">Is there any way to change the configuration
on codestriker to tweak the diff parameters for diff topics directly on
top of source control systems? We often format our code with a
formatter and this sometimes causes lines to be marked as changed when
they are really not. I have no problem doing manual unified diff's but
we really like the ease of doing reviews right on top of the version
control systems.
<br>
</blockquote>
<br>
At the moment, you'll need to modify the getDiff() method for your
associated repository object and add in the appropriate command line
switch. The repository objects live in lib/Codestriker/Repository.
<br>
<br>
Cheers,
<br>
David
<br>
</blockquote>
</body>
</html>
|