LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-30-2005, 09:39 AM   #1
powah
Member
 
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?

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 ***
----------------------------
 
Old 05-30-2005, 09:52 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

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


Reply


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 11:41 AM
Installing the Cedega CVS version alacritous Linux - Software 7 10-31-2004 12:28 PM
fontconfig (cvs version) won't compile... GuntherDW Linux - Software 2 08-04-2004 03:49 PM
CVS version of winex not running mikeZig Linux - Games 1 05-08-2004 05:36 AM
perl 5.8.0 error in cvs version rahul_jain_9684 Linux From Scratch 0 09-09-2003 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 PM.

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