You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Victor Sudakov <su...@sibptus.tomsk.ru> on 2011/02/11 06:33:01 UTC

diff-cmd =

Colleagues,

I like very much the default output of the FreeBSD diff program.
So I prefer using "svn diff --diff-cmd=/usr/bin/diff -x --normal"
instead of just "svn diff".

However, when I put the line "diff-cmd = /usr/bin/diff -x --normal"
into ~/.subversion/config, I get the following error message:

exec of '/usr/bin/diff -x --normal' failed: No such file or directorysvn: '/usr/bin/diff -x --normal' returned 255

I guess it is trying to exec '/usr/bin/diff -x --normal' as a whole
which is kind of expected. 

For the present, I have created a shell alias for the "svn diff"
command, but I am curious what the correct ~/.subversion/config syntax
is to achieve what I want?

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov@sibptus.tomsk.ru

Re: diff-cmd =

Posted by Stefan Sperling <st...@elego.de>.
On Fri, Feb 11, 2011 at 12:13:36PM +0600, Victor Sudakov wrote:
> Ryan Schmidt wrote:
> [dd]
> 
> > 
> > This looks like http://subversion.tigris.org/issues/show_bug.cgi?id=2930
> > 
> > i.e., you've found the current status quo; there is no better method currently available.
> > 
> 
> I have always been told that I am a good tester (i.e. have the
> ability to come across bugs), but my rate of tripping on all the
> subversion rakes is alarming.

This isn't particularly hard to fix, so it's an ideal problem
for new contributors. This may be one reason why it hasn't been fixed yet.
In the big picture, it doesn't hurt to let little problems like this linger.
Most people will just write a wrapper script and move on. Too bad.
But someone will eventually be looking for things to get their feet wet,
and issues like this are ideal for that. Or it will annoy someone so
much that they take the time to fix it.
The existing developers have much harder sets of problems to juggle.
And yes, of course, sometimes existing developers find time to fix simple
problems like this. However we have a strong culture of encouraging new
contributors so having issues like this open is also a good thing for
the project. So, take the plunge if you can! Thanks.

Re: diff-cmd =

Posted by Victor Sudakov <su...@sibptus.tomsk.ru>.
Ryan Schmidt wrote:
[dd]

> 
> This looks like http://subversion.tigris.org/issues/show_bug.cgi?id=2930
> 
> i.e., you've found the current status quo; there is no better method currently available.
> 

I have always been told that I am a good tester (i.e. have the
ability to come across bugs), but my rate of tripping on all the
subversion rakes is alarming.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov@sibptus.tomsk.ru

Re: diff-cmd =

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 10, 2011, at 23:33, Victor Sudakov wrote:

> I like very much the default output of the FreeBSD diff program.
> So I prefer using "svn diff --diff-cmd=/usr/bin/diff -x --normal"
> instead of just "svn diff".
> 
> However, when I put the line "diff-cmd = /usr/bin/diff -x --normal"
> into ~/.subversion/config, I get the following error message:
> 
> exec of '/usr/bin/diff -x --normal' failed: No such file or directorysvn: '/usr/bin/diff -x --normal' returned 255
> 
> I guess it is trying to exec '/usr/bin/diff -x --normal' as a whole
> which is kind of expected. 
> 
> For the present, I have created a shell alias for the "svn diff"
> command, but I am curious what the correct ~/.subversion/config syntax
> is to achieve what I want?

This looks like http://subversion.tigris.org/issues/show_bug.cgi?id=2930

i.e., you've found the current status quo; there is no better method currently available.