info-cvs
[Top][All Lists]
Advanced

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

RE: How to callback very first version of a file into workingdirectory


From: Dave Korn
Subject: RE: How to callback very first version of a file into workingdirectory
Date: Fri, 4 Nov 2005 16:52:20 -0000

Dave Korn wrote:
> Edward WIJAYA wrote:
>> Dear Sirs,
>> 
>> Suppose I have updated a file: code.pl   upto version 1.6
>> And it is stored in my ~/myperl working directory
>> 
>> At times I decided I want to ignore all the changes
>> I have made upto version 1.6, and want to start with my very first
>> version all over again. 
>> 
>> Is there a way to call back/recover/update (?) our code.pl
>> into the very first version (1.1) in our working directory?
> 
> 
> cvs up -j1.6 -j1.1 code.pl

  In fact, in the general case when you want to make your head revision the
same as revision N, you can save yourself the hassle of looking up the current
rev number (for the first -j arg) by using the non-sticky-revision-fetching
option '-p':

cvs up -r1.1 -p >code.pl
cvs ci -m "Reverted to r1.1" code.pl


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....





reply via email to

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