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

RE: Getting a list of changed files between tags

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-02-07 23:39:23 CET

-----Original Message-----
From: Wade Williams [mailto:wadesworld@mac.com]

I'd like to be able get a list of files that were changed between say
the trunk and a particular tag.

It's a fairly standard trick. First, set up a diff to get the files, but
use /bin/true as the diff program, so the output is, more or less, just a
lit of the files in question: "svn diff --diff-cmd=diff
http://.../trunk@HEAD http://.../branch/1234@HEAD" (I may have the syntax a
bit wrong.) Then post-process the output to get a list of the file names
that have changed. Second, do an export of the branch in question. Third,
zip up the selected files from the export to generate your overlay

You could probably improve this by using a more sophisticated comparison
that reports whether the files differ in content, rather than the method
above, which will be deceived by situations where the same change has been
done on both the trunk and the branch. You could use "diff --brief" or
"cmp" to compare the two input files, and output "different" or "same" based
on their outcome.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 7 23:42:56 2005

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.