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

Re: Listing changed files and change notes

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Tue, 22 Apr 2008 12:39:45 -0700

On Tue, Apr 22, 2008 at 9:48 AM, André-John Mas <andrejohn.mas_at_gmail.com>

> Hi,
> I am needing to get a list of all the files that changed between two
> versions of a branch, and then display n characters of the comments of
> each corresponding history entry. We will be using this to generate a
> manifest of which files changed and why they were changed.

Not sure what kind of output you are looking. If a file changed multiple
times between the two revisions, what is the comment(s) for the file going
to be? A set of truncated comments would look odd, I think.
Can you show the output you are expecting to have?

> If anyone has done this, possibly as an Ant task or Java tool, I would
> be interested if you could share what you have. If not, can anyone
> point me in the right direction so that I could so implement the tool
> myself?

You can grep the output of 'svn log -rN:M <branch-url>' and get this done
(possibly a bash script). I do not know of any tool that does this already.

Or you could use the subversion APIs. There is a Java API that is very
mature. I have not used it and so I can't help you on that. I know that
PySVN is a pretty good client side python tool that can help you with this.

Received on 2008-04-22 21:40:11 CEST

This is an archived mail posted to the Subversion Users mailing list.