Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-30-2005, 10:39 AM   #1
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
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?

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
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 70; selected revisions: 70
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 ***
Old 05-30-2005, 10:52 AM   #2
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
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, maybe it helps?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
getting an old version from CVS - rdiff? BrianK Programming 6 04-22-2010 12:41 PM
Installing the Cedega CVS version alacritous Linux - Software 7 10-31-2004 01:28 PM
fontconfig (cvs version) won't compile... GuntherDW Linux - Software 2 08-04-2004 04:49 PM
CVS version of winex not running mikeZig Linux - Games 1 05-08-2004 06:36 AM
perl 5.8.0 error in cvs version rahul_jain_9684 Linux From Scratch 0 09-09-2003 01:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration