[Top][All Lists]

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

Re: CVS delete version.

From: Todd Denniston
Subject: Re: CVS delete version.
Date: Fri, 12 Aug 2005 09:02:21 -0500

In an HTML file "Sumit Dey" <address@hidden> wrote:
> Is it possible to delete old revisions of a 
> file permanently 
> (so that I can restart from rev 1.1 again) ?


make a new repository here is the naive way to do it:

cd workingdir
cvs checkout modules
tar -czvf modulescheckoutbackup.tgz modules/.
find modules/ -name CVS -exec rm -fr {} \;
#assuming $CVSROOT points right at the 
#directory structure of your repository
mv $CVSROOT $CVSROOT/../oldcvsroot
mkdir $CVSROOT
cp $CVSROOT/../oldcvsroot/CVSROOT/ \
cvs init
cvs import modules myoldrepo IwantedV1_1again

Above procedure is untested, unwarranted, and probably unneeded.

The usual question is why are you paying any attention to CVS's internal
record keeping numbers, you should be using and paying attention to the tag
numbers you apply with cvs tag or cvs rtag.

Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter

reply via email to

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