On Oct 11, 2007, at 07:44, Lutz.Dornbusch@fiducia.de wrote:
>> On 10/11/07, Lutz.Dornbusch@fiducia.de wrote:
>>
>>> 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?
>>
>> When you create a 'tag" in Subversion, you're really only making a
>> (cheap) copy. If you make the copy correctly, the log for the tag in
>> question will indicate what revision the copy happened at.
>
> thanx for your fast answer, unfortunately this issue is not that
> easy. We
> are talking about already migrated repositories and a lot of tags.
Ok, that probably doesn't change anything. I believe cvs2svn creates
tags the same way you would manually with Subversion.
> So I can see the revision from which I made the copy, but I cannot
> see the
> specific revision of any file inside this folder.
This may be a misunderstanding: in CVS, files have revisions. In
Subversion, they don't. In Subversion, the repository as a whole has
revisions. So it does not make sense to ask about "revision 42 of
file foo". Instead, you must ask about "file foo as it existed in
revision 42 of the repository".
> So you may have a Tag from Rev 87 of trunk, that will not say anything
> about the revision of a specific file inside of trunk(except it is
> below
> 87).
> I want to see for each file which revision is used in each tag.
Maybe what you want is the LastChangedRevision of each file in the
tag -- for each file, the last revision of the repository in which
that file was actually changed? I believe you can get this using "svn
list --verbose" or "svn list --xml"
Look at the first column here:
svn list http://svn.collab.net/repos/svn/tags/1.4.5/ --verbose
Or look at the revision attribute of the commit tag here:
svn list http://svn.collab.net/repos/svn/tags/1.4.5/ --xml
You may want the --recursive option as well.
> CVS provides a list of tags and which version it tagged for each
> file.
> For example:
> I have 2 files:
> client.java
> client_UI.java
> and 3 Tags:
> V_1
> V_2
> V_3
> I want a matrix in which I can see the revision of each file in
> each Tag,
> so in this example:
>
> client.java is Rev. 122 in tag V_1, Rev. 211 in tag V_2 , Rev.
> 299 in
> tag V_3
> client_UI.java is Rev. 112 in tag V_1, Rev. 201 in tag V_2 , Rev.
> 287 in
> tag V_3
>
> Again: In CVS it was a trivial task, and I need it for _all_ tags.
> At the moment I think I have to write a script which loops through all
> files and looks into each tag.
> Is there anybody who has experience or implemented such a task?
> Is there a different and easier solution?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 11 21:42:18 2007