aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes CVS revision and tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "CVS revision and tag" Watch "CVS revision and tag" New topic
Author

CVS revision and tag

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316
For a file "foo" it had

revision: 1.0
tag MyTag_1

Then I modified the file and committed it to CVS, I saw
revision: 1.1

And I tag it as
tag: MyTag_2

Then I realized I did something wrong. How do I roll back to revision 1.0 and tag it still as "MyTag_2" ?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

You can't actually roll back revisions in the sense of deleting them from CVS, but you can roll back your changes and make a third revision that looks just like the first one.

CVS tags can normally be re-assigned to later generations. I used to work in a shop, where they'd move the PRODUCTION tag each time we committed a new release candidate. So no problem there.

In fact, since there's no history on tag movement, CVS actually is deficient in that respect. Someone could move tags and recovery would be difficult.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
With other words, what you should probably do is

- get the file contents of revision 1.0
- commit them (which gives them revision 1.2)
- move your tag to revision 1.2

I can't tell you the exact CVS commands to do so, because Eclipse hides all the details quite nicely...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
 
subject: CVS revision and tag