Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-30-2005, 09:39 AM
|
#1
|
Member
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276
Rep:
|
use cvs to get a particular version
How to use cvs to get a particular version of a file?
How to use cvs to get a particular version of the entire directories and subdirectories?
e.g.
How to use cvs to get the version 1.69 of the file index.php?
How to use cvs to get the version 1.69 of the entire directories /var/cvsroot/project/content/ and its subdirectories?
# cvs log index.php
RCS file: /var/cvsroot/project/content/index.php,v
Working file: index.php
head: 1.70
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 70; selected revisions: 70
description:
----------------------------
revision 1.70
date: 2005/05/17 20:41:08; author: a; state: Exp; lines: +6 -0
*** empty log message ***
----------------------------
revision 1.69
date: 2005/05/17 18:29:27; author: b; state: Exp; lines: +116 -116
*** empty log message ***
----------------------------
|
|
|
05-30-2005, 09:52 AM
|
#2
|
Member
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929
Rep:
|
Quote:
Updating your files from the repository
To make your files reflect what's currently in the repository:
cvs update
This isn't always sufficient, however. If new files have been added, you may need to use the -d option to get the missing files. If you want to remove empty directories, use the -P (prune) option.
The directory you're currently in determines which directories will be updated, so to make sure you have all files, do the following:
cd d:\wx2\wxWidgets
cvs update -d
If you wish to get a particular version of the file (say you've added a bad change and want to scrap it), you can do this:
cvs update -r1.78 textctrl.cpp
This sets the 'sticky' tag, which means that all your subsequent updates will retrieve that revision until you update with
cvs update -A textctrl.cpp
In this example, to revert the changes in textctrl.cpp revision 1.79, you can update with -r1.78, copy the file to textctrl.bak, then update with -A, copy textctrl.bak to textctrl.cpp, and commit again.
|
From http://wxwidgets.org/cvs.htm, maybe it helps?
|
|
|
All times are GMT -5. The time now is 06:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|