[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: checkout previous version with only version info
From: |
Mark D. Baushke |
Subject: |
Re: checkout previous version with only version info |
Date: |
Mon, 10 Feb 2003 23:10:31 -0800 |
Mona Wong-Barnum <address@hidden> writes:
> I would like to know if there is a way to checkout a previous
> version of a file specifying *only* the version information.
Yes. Just use the version number in place of the tag. For example:
% cvs -d :pserver:address@hidden:/cvs login
(Logging in to address@hidden)
CVS password: <press the enter key>
% cvs -d :pserver:address@hidden:/cvs checkout -r1.129 \
ccvs/doc/cvsclient.texi
U ccvs/doc/cvsclient.texi
% cd ccvs/doc
% cvs status cvsclient.texi
===================================================================
File: cvsclient.texi Status: Up-to-date
Working revision: 1.129
Repository revision: 1.129 /cvs/ccvs/doc/cvsclient.texi,v
Sticky Tag: 1.129
Sticky Date: (none)
Sticky Options: (none)
%
Then, to get rid of the sticky tag, you would use the -A switch like:
% cvs up -A cvsclient.texi
P cvsclient.texi
% cvs status cvsclient.texi
===================================================================
File: cvsclient.texi Status: Up-to-date
Working revision: 1.130
Repository revision: 1.130 /cvs/ccvs/doc/cvsclient.texi,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)
%
Note that you may also just "print" the version to a file with
% cvs up -p -r1.129 cvsclient.texi > cvsclient.texi.1.129
if you found it useful to have an older version around for some reason.
Enjoy!
-- Mark