[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: CVS Question...
From: Hans Meine <hansmeine () dial-net ! de>
Date: 1999-05-27 17:55:29
[Download RAW message or body]
On Wed, 19 May 1999, Stephan Kulow wrote:
> Sean Kendall Schneyer wrote:
> >
> > > kdeutils/ktop OSStatus.cpp,1.28,1.29
> > > Author: dmuell
> > > CVSROOT: /home/kde
> > > Wed May 19 20:54:12 MET DST 1999
> > > Update of /home/kde/kdeutils/ktop
> > > In directory zeus:/tmp/cvs-serv20123
> > >
> > > Modified Files:
> > > OSStatus.cpp
> > > Log Message:
> > > reverted last commit, because it was buggy.
> > ^^^^^^^^^
> >
> > Is there an automatic way to revert a commit with CVS, or do you
> > have to it manually first (reverse patch, for example) and then
> > commit the changed file.
> >
> No, you have to revert it yourself. Checkout the old version, mv
> it away, update -A and mv back is what I do.
Another way I found in the docs is to use the "-p" option of update which sends
output to stdout, put that into the file and commit it again.
Quote from the docs:
For example, suppose you have a file named `file1' which existed as revision 1.1, and \
you then removed it (thus adding a dead revision 1.2). Now suppose you want to add it \
again, with the same contents it had previously. Here is how to do it:
$ cvs update -p -r 1.1 file1 >file1
===================================================================
Checking out file1
RCS: /tmp/cvs-sanity/cvsroot/first-dir/Attic/file1,v
VERS: 1.1
***************
$ cvs add file1
cvs add: re-adding file file1 (in place of dead revision 1.2)
cvs add: use 'cvs commit' to add this file permanently
$ cvs commit -m test
Checking in file1;
/tmp/cvs-sanity/cvsroot/first-dir/file1,v <-- file1
new revision: 1.3; previous revision: 1.2
done
$
--
Ciao,
/ /
/--/
/ / ANS
_____________________________________________________________________
Hans Meine mail me: hans_meine@gmx.net
Harkortstr. 138 http://www.dialnet.de/hansmeine
D-22765 Hamburg ICQ: RastaJoe <28674493>
[Germany] Phone: ++49-40-38612523
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic