[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: Jon Scott Stevens <jon_at_latchkey.com>
Date: 2005-02-08 19:50:03 CET

On Feb 7, 2005, at 2:39 PM, Dale Worley wrote:

> -----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
> distribution.
>
> 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.
>
> Dale

How about someone just adding a command to svn to allow one to do it
easily?

Maybe something like...

svn diff --result=changedfiles URL1 URL2

I dunno...just a suggestion...

jon

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 8 19:52:26 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.