[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Svn diff

From: <nicklist_at_planet.nl>
Date: Tue, 19 Feb 2008 09:23:17 +0100

The problem here is that subversion is passing like 11 or 12 parameters to the diff command, which does not accept them. You will need to write a script around, which will take the right parameters and pass them to your diff command.

I use the svndiffwrapper script from [1] with diff (2.8.1-12ubuntu1) and kdiff3 (0.9.92-1ubuntu1) without problems.

Hth,

Nick S.

[1] www.yolinux.com/TUTORIALS/Subversion.html

-----Original Message-----
From: Kota, Sreenivasa ShravanaKumar [mailto:shravanakumar.ks_at_hp.com]
Sent: Tue 2/19/2008 08:01
To: users_at_subversion.tigris.org
Subject: Svn diff
 
Users,

I would like to use svn diff with the following options

--diff-cmd /usr/bin/diff
-r 2145

Is it possible to pass both the arguments to svn diff ?

I am getting the following error.

Svn diff -r 2145 --diff-cmd /usr/bin/diff 2.x

Index: 2.x
===================================================================
/usr/bin/diff: illegal option -- u
        usage: diff [ -C n ] [ -S name ] [ -bcefhilnrstw ] dir1 dir2
                diff [-C n ] [ -bcefhintw ] file1 file2
                diff [ -D string ] [ -biw ] file1 file2
svn: '/usr/bin/diff' returned 2

Any hints on how to use revision and external diff command in svn diff command ?

Thanks & Regards,
Shravana Kumar
Received on 2008-02-19 09:23:56 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.