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

Re: launching GUI diff from the command line for diff with previous version

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-05-04 20:37:26 CEST

On 5/4/07, anjan bacchu <anjan.nike@gmail.com> wrote:
> Hi There,
>
> I have svn 1.4.2 and tortoisesvn (v 1.4.3, build 8645) on windows xp.
>
> Coming from mostly a clearcase background, where I could do this
> easily with cleartool commandline tool, here's what I want.
>
> I would like to be able to launch a (GUI) diff with the previous version
> of a
> file from the command line. I know that svn diff does that BUT only on the
> console. But what I would like to do is to be
> able to launch the GUI version of the diff. In my case, I configured
> Tortoisesvn to use WindDiff for the diff. TortoiseSvn is somehow able to
> understand which versions I am interested in (working and previous) for
> the diff and then launch Windiff with the required files.
>
> Is there a command-line equivalent to what TortoiseSvn does for the diff ?
> I would like to be able to launch the diff from the console or from an IDE
> BUT I would like to see the WinDiff(or any other GUI diff) utility be diff
> tool.
>
> In a crux, how do I tell the svn diff to just compare the current(hard disk)
> and the previous versions and launch my GUI diff tool for the same ?

The --diff-cmd switch can be used with the command-line SVN client to
tell it what diff tool to use. See svn help diff.

Calling svn diff <filename> with no parameters indicating revisions to
compare compares your current local copy with the version in the
repository when you last updated your working copy.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri May 4 20:37:37 2007

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