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

Re: [Subclipse-users] SVNRevision

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-09-22 02:06:03 CEST

Del Myers <delmyers.cs@gmail.com> wrote on 09/21/2006 07:18:58 PM:

> I'm trying to develop a quick tool that will log the differences between

> different revisions of my subversion projects in eclipse. What I need to
do is
> for each revision 'r', do a diff between 'r' and 'r+1'. So, the problem
is
> pretty simple. However, I'm getting stuck trying to use the
svnClientAdapter
> library. The problem is that I can't simply get a list of different
revisions in
> the repository, or there is no way (that I can tell) to get the next or
previous
> revision given a particular revision (there is the PREVIOUS revision
type in
> SVNRevision... but what does that mean? Previous to what?). It would be
a simple
> task of incrementing revision numbers if it weren't for the fact that
there is
> the possibility of having a number revision or a date revision in the
> repository. If I get a date revision from head or from start, how do I
know what
> the next revision should be? Any help would be greatly appreciated.
Thanks.

Adding or subtracting 1, depending on your need, will always work.

As for the special values, they corresponds to the special revision
keywords that Subversion supports. See this section of the book for an
explanation of each:

http://svnbook.red-bean.com/en/1.2/svn.tour.revs.html#svn.tour.revs.keywords

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Fri Sep 22 02:06:14 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.