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

Re: doing a diff on committed files

From: Jim Sokoloff <jim_at_sokoloff.com>
Date: 2007-05-18 00:54:27 CEST

On Thu, 17 May 2007, aidy lewis wrote:

> Is it possible to do a diff on two files that have been committed. My
> understanding from the redbook is that you can only do a diff from a
> working copy of the file and one that is in the repo.

svn help diff

will give you the three modes of using the diff command

If you use diff this way, you can compare two revisions:
svn diff -r36335:38207
http://dev-deploy.vistaprint.net:8081/svn/vp/development/Database/svfs1.bat

That compares revision 36335 to revision 38207 of one file.

To compare two files, use the 3rd usage line and pass the URLs
to the two files

svn diff
http://dev-deploy.vistaprint.net:8081/svn/vp/development/Database/svfs1.bat
http://dev-deploy.vistaprint.net:8081/svn/vp/development/Database/svfs2.bat

will diff two committed files.

--Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 18 00:54:46 2007

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.