Subversion handles tags in a different way from CVS. In subversion,
tagging simply involves copying the trunk to a directory that you all
agree on to hold tags.
Say your code is in /trunk/source, you would take a copy and put it in
/tags/Rel_1_2, like this:
svn copy svn://zsolt.koppany.com/repos*/trunk*
svn://zsolt.koppany.com/repos*/tags/Rel_1_2*
This new location knows what revision it was copied from, so it is easy
to compare with a future version of a file:
svn diff */your/working/copy/some/file.txt*
svn://zsolt.koppany.com/repos*/**tags/Rel_1_2/some/file.txt*
That way you don't have to know what repository revision the tag was
made. (*svn info* on the tag directory /tags/Rel_1_2 itself will tell
you if you really need to know).
You could also check out trunk and tags/Rel_1_2 into different
directories and use Eclipse's excellent compare with -> each other to
look at differences.
Branching works in exactly the same way - you svn copy to some other
place that everyone agrees will contain your branches, typically
*/branches*.
btw. the only difference between tags and branches in subversion is that
you have to promise not to check anything in on a tag directory :)
hth,
Dan
Zsolt Koppany wrote:
>Hi,
>
>I would like to move from cvs to subversion but because subversion versions
>the repository and not the files (as far as I know) it cannot be (easily)
>figured out on which tag a file was modified.
>
>With other words I cannot diff a working copy with for example the tag:
>rel_1_2, I have to know the revision number of that tag (for example 56) and
>then I can diff.
>
>Would it be useful if subclipse provided a preferences (or whatever) dialog
>where aliases can be configured?
>
>For example:
>Alias Revision
>Rel_1_2 23
>Rel_1_3 35
>Rel_2_0 40
>
>Now if I wanted to compare a working copy with "Rel_1_2" subclipse would
>replace that with the real revision number.
>
>What do you think?
>
>Zsolt
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
>For additional commands, e-mail: users-help@subclipse.tigris.org
>
>
>
Received on Sun Jul 10 01:52:18 2005