[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: return previous revision

From: Jim.Hyslop
Subject: RE: return previous revision
Date: Thu, 17 Mar 2005 09:54:49 -0500

Gleidson Sá Barreto wrote:
> I work with TortoiseCVS. At some moment, I would like
> to return previous revision. For example my current
> revisiom is 1.5 and I would like return to revision
> 1.2.
> How to make this? it is necessary to create a branch?
> Or only update?
I don't know how to do this using TortoiseCVS. I don't know if _anyone_ on
this list knows how to do this using TortoiseCVS.

Using the command-line client, there are several ways to do this, depending
on exactly what you're trying to accomplish.

If you just want to view the older version, then:
cvs update -p -r1.2 filename>filename.1.2

If revisions 1.3 through 1.5 are completely invalid and you want to act as
if they never existed, then:
cvs update -j1.5 -j1.3 filename
cvs ci -m "Rolling back to earlier revision"

If 1.2 is a released version that requires a patch, then you need a branch.
Create the branch based on the release tag, and update to that branch:
cvs tag -r release-tag -b release-1-0-branch
cvs update release-1-0-branch
[modify filename]
cvs ci filename

Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. ( )
Columnist, C/C++ Users Journal ( )

reply via email to

[Prev in Thread] Current Thread [Next in Thread]