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

SVN DIFF QUESTION

From: Eramo, Mark <meramo_at_hbs.edu>
Date: Fri, 19 Feb 2010 11:40:19 -0500

Hello,

I am trying to diff the trunk and a specific tag of a project in SVN to get a list of files that have changed AND a list of any new files
that were added to the trunk since the tag but I am not able to get the same results as with CVS diff.

For example, I add a new java file to the trunk.

I then run the following diff command (code path has been removed *** )

svn diff $SVNROOT/project/***/trunk/ $SVNROOT/project/***/tags/v2_3_4/

It produces results showing the new file as follows:

Index: java/***/Item-NEW.java
===================================================================

--- java/***/Item-NEW.java (.../trunk) (revision 100089)
+++ java/**/Item-NEW.java (.../tags/v2_3_4) (revision 100089)

So it shows the file change but it does not show the file as being new to the trunk (or does it?). Anyway, it is not easy to distinguish if it was updated or added.

If I were to do a cvs diff, it would produce results like this.

diffing /java/***
cvs diff: tag v2_3_4 is not in file java/***/Item-NEW.java

I could then use egrep to extract all these lines from the diff and I would have a list of new files between the head and the tag.

Is there a way to do something similar in SVN?

Thanks!

Mark
Received on 2010-02-19 17:40:54 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.