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

Re: use case: which tags are implementing a specific feature which was realized in revision X?

From: Jeremy Pereira <jeremyp_at_jeremyp.net>
Date: 2007-10-12 11:09:00 CEST

On 11 Oct 2007, at 12:22, Lutz.Dornbusch@fiducia.de wrote:

> Hello,
> we recently switched, resp. are switching from CVS to SVN.
> Some of our developer are asking the following question:
>
> In CVS it was quite easy to see, which version of a file is in
> which tag.
> So the developer team mades a map for each (java class)-file and
> each tag
> to see which features are implemented in each tag.
> How can I solve this problem in SVN?
> Has anybody already a solution for this question?

Perhaps I am missing something, but this seems reasonably simple.
Are you trying to get a list of all changes between one tag and the
previous tag? If so you are probably doing something like

for each file
     find first tag revision
     find second tag revision
     get cvs log between the two tags
end for each
aggregate all logs to produce a list of changes

On the assumption that all tags were copied from the trunk, you can
implement similar functionality as follows:

svn log --stop-on-copy <url-to-first-tag>
extract revision of the earliest record
svn log --stop-on-copy <url-to-second-tag>
extract revision of the earliest record
svn log -v -r<earliest-revision>:<latest-revision> <url-to-trunk>

The output from the last log is your change history for the later of
the two tags. The -v tells you which paths changed for each revision.

>
> Thanx in advance and greetings,
> Lutz
>
>
>
>
>
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> --
> FIDUCIA IT AG
> Fiduciastraße 20
> 76227 Karlsruhe
>
> Sitz der Gesellschaft: Karlsruhe
> AG Mannheim HRB 100059
>
> Vorsitzender des Aufsichtsrats: Erwin Kuhn
> Vorsitzender des Vorstands: Michael Krings
> Vorstand: Klaus-Peter Bruns, Hans-Peter Straberger, Eckhardt Werner
>
> Umsatzsteuer-ID.Nr. DE143582320, http://www.fiducia.de
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> --
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 12 11:10:54 2007

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.