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

Re: Finding out the revision numbers for Tags

From: Benjamin Smith-Mannschott <bsmith.occs_at_gmail.com>
Date: Mon, 7 Apr 2008 19:29:49 +0200

On Apr 7, 2008, at 17:55, David Law wrote:
> Hi
> I'm not sure this is a question is right for this
> mailing list but I'm trying to find out information
> about Tags and how does subversion handle them in
> terms of revision numbers.
> The reason why I ask is that I'm writing somw code in
> java to mine the comments, there is a package out
> there org.tmatesoft.svn which I am utlising, but this
> what I'm trying top do ...
> Collect the comments of btween two tags,
> So what I'm trying to do is (help is required for 1 &
> 2)
> 1. finding the tags that are currently within the the
> respoistory (assume its something to do with the /tags
> directory, is a master list held?) and determining the
> most recent and most recent - 1

Depends on how your repo is structured. yes, *usually* you'll find the
tags in a directory named "tags".

> 2. working out the revision numbers for those tags
> 3 checking out the logs between the two discovered
> revison numbers (can do this already). Appreciate that
> the system may use rivision numbers across the system)

If you just want to compare the logs of the two tags, then you don't
need their revision numbers since tags, by convention, aren't changed
after being created. Otherwise they wouldn't be tags.

If, on the other hand you wan to compare the logs for the whole
repository of two revisions you should know that this will include all
manner of changes irrelevant to the two tags.

> Any tips or pointers would be greatly appreciated.

When I want to know what's different between two tags, I just do this
under Linux, using bash:

diff -c <(svn log http://server/repo/tags/release-1) \
         <(svn log http://server/repo/tags/release-2)

It's a hack but it works well enough.

// Ben

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-07 19:30:31 CEST

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