views:

370

answers:

3

Hi. I am using Eclipse PDT and Subclipse. I want to set all of the files in my working copy to the one revision number and date and commit that as I want to have a periodical revision number where I know that the entire project is correct and if needed I can roll back to that. Is there a way to do that? TIA

+1  A: 

Have you considered tags?

Amro
+4  A: 

That's usually done by creating a tag (which in eclipse should be under the Rightclick Team->Tag menu). If you havn't defined a trunk/ branches/ tags/ folder for your project in Subversion you might need to create a separate folder in your subversion repository where you store these 'tags'.

The SVNBook referenced above talks about all these things.

nos
Tags are not exactly what I wanted but it is a workable solution. Thanks everyone.
Cambo
A: 

If you roll back a working copy to a particular revision number, then all the files will be rolled back to the state they were in when that revision was committed. Their revision numbers may be technically different, but every revision contains a cheap copy of the unchanged files so that you can get them back to a consistent state; atomic repository states is a major feature of Subversion over CVS.

In practise, you may want to "tag" that revision to make it easier to identify; as others have noted above, this is easy to accomplish, and most GUI tools and IDEs will support it. One thing to note is that Subversion has no actual concept of tags - they're just cheap copies (using the same mechanism as before) representing the state of files at a given revision. The name "tag" is a convention from CVS.

Rob
Thanks Rob. This is a good bit of background.
Cambo