1833433 Members
2957 Online
110052 Solutions
New Discussion

rcs

 
SOLVED
Go to solution
mango_1
Frequent Advisor

rcs

hello all! I have a question about rcs logs. I currently have checked in file1 on 7/12/03. And I have an older version of file1 on my local filesystem 3/05/03. If I checked in my older version, will the logs for the 7/12/03 file1 version be overwritten?

thanks!
4 REPLIES 4
Martin Johnson
Honored Contributor

Re: rcs

If you check in the older version, it will become the latest version (i.e. if you just do a check out, it will be the version you get). You would have to check out the previous version (latest -1) to get the 7/12/03.

I would check out the 7/12/03 version, check in the 3/05/03 version, then check in the 7/12/03 version.

HTH
Marty
mango_1
Frequent Advisor

Re: rcs


Hi Marty! thanks for the input. What you are saying is that I'd still be able to get the 7/12/03 version. what command should I use? I thought I might have overwritten that version with the old one I checked in (3/05/03).

I have a follow up question. In my 07/12/03 file1 version I have the following in the file:

# $Id: example.sh,v 1.1 2003/07/12 20:59:07 htc Exp mag $

If my 03/05/03 version had an older version

# $Id: example.sh,v 1.0 2003/03/05 20:00:07 htc Exp mag $

and then I try to check in a revision of the older file1

# $Id: example.sh,v 1.1 2003/07/14 20:00:07 htc Exp mag $

what will happen to the 2003/07/12. from what you are saying, the 07/12 is still there right? just wanted to make that clear. I hope I didn't mess up the rcs. :(









Martin Johnson
Honored Contributor
Solution

Re: rcs

You can retrieve by revision number:

co -r1.1 file1,v

or by date:

co -d"07/12/2003" file1,v


The whole point of rcs (and SCCS) is that changes are saved as revisions/versions and you can recover to whatever revision/version you need.

BTW, rlog file1,v also gives some useful information about what is contained in the rcs file.

HTH
Marty
Martin Johnson
Honored Contributor

Re: rcs

Almost forgot:

man rcsintro

give a good introduction to rcs.

HTH
Marty