CVS: Add a missing tag by date for a CVS project release

By | February 8, 2017

Sometimes you discover that you forgot to tag on CVS a test release that made it on the production system. The issue starts when you discovered that in the mean time you or someone else already added new functionality on the development branch.
In the following I will create a tag only based on the date when the test release was generated.

STEP 1
Login to CVS


cvs -d :pserver:gvoina@cvs.voina.org:/opt/ejb3 login

STEP 2
Set CVSROOT variable.


export CVSROOT=":pserver:gvoina@cvs.voina.org:/opt/ejb3"

STEP 3
Get from CVS a snapshot of the projects as it was on the test release date.


cvs checkout -D "21 Jan 2016" -r ro_voina_org -d "ro_voina_org-1090" ro_voina_org

STEP 4
Do the same for the core project


cvs checkout -D "21 Jan 2016" -r core_voina_org -d "core_voina_org-1090" core_voina_org

STEP 5
Edit .project for all the projects and change the project name by adding _1 (ro_voina_org_1 and core_voina_org_1).
This step is needed to be able to import the project in the same workspace.

STEP 6
Import projects into Eclipse
File -> Import… -> Existing Projects into Workspace

STEP 7
Create a tag on the CVS for all the projects
Select project ro_voina_org_1 and “Team -> Tag as Version…
Select project core_voina_org_1 and “Team -> Tag as Version…

Done.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.