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

RE: Idea to emulate CVS tags.

From: Zsolt <zkoppanylist_at_intland.com>
Date: 2005-07-09 21:34:52 CEST

Dan,

 

I do understand the difference between CVS and subversion.

 

My problem is that under CVS (from eclipse) I can compare a working copy of
a file with any tag of the repository (just a mouse click) but with
subclipse I can do that only with revision numbers (such as 1256) and that
is not convenient.

 

Of course I could write a piece of paper that contains a table how to map a
revision number to a tag but I don't like this idea.

 

I understand also that I could do it from the console (shell) but I would
like to do it from eclipse like CVS.

 

Zsolt

 

  _____

From: Dan North [mailto:dan@tastapod.com]
Sent: Saturday, July 09, 2005 5:52 PM
To: users@subclipse.tigris.org
Subject: Re: Idea to emulate CVS tags.

 

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 05:34:52 2005

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.