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

Re: Determining file(s) modified in a changeset

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 15 Apr 2010 15:56:07 -0400

On Thu, Apr 15, 2010 at 15:42, David Bartmess <dingodave_at_edingo.net> wrote:
> I need to modify a script that was used with CVS that basically got a list
> of the files that changed with a specific tag, and acted upon them. Now
> we're moving to Subversion, and I need a way to get a list of files that
> changed with a tag or revision.
>
> Should I just force the developers into using the revision instead of the
> tag? The tag contains every file in that module, so it doesn't help in this
> matter.

svn diff --summarize OLDTAG NEWTAG will list all files that differ
between the two tags. Probably best to use the repository URLs for
both tags.

> And is there a way to get a list of files that changed with a changeset
> (revision) without having to heavily parse the log output?
> I need to list the files that changed in a file to be consumed by another
> process, and the file contents need to be just the filename one on each
> line. Is there an easy way to do this?

svn diff --summarize -r<REVNUM> will give you a listing of all items
changed in the given revision and the nature of the change (add,
modify, etc.).

--summarize was added in 1.5 I think, but it's probably a safe
assumption that if you're switching to SVN today, you're using a more
recent release.
Received on 2010-04-15 21:56:56 CEST

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.