info-cvs
[Top][All Lists]
Advanced

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

RE: How do you "unupdate" a file


From: Dale . Miller
Subject: RE: How do you "unupdate" a file
Date: Thu, 11 Apr 2002 11:30:42 -0500

Fred,

Look at the "C" update output code details in the manual at

http://www.cvshome.org/docs/manual/cvs_16.html#SEC152

which states

"an unmodified copy of your file is also in your working directory, with the
name `.#file.revision' where revision is the revision that your modified
file started from.  (Note that some systems automatically purge files that
begin with `.#' if they have not been accessed for a few days. If you intend
to keep a copy of your original file, it is a very good idea to rename it.)"


cd to your work area
ls -la    (and you should see the .#file.revision file)
mv ".#file.revision" file  (to overlay your modified file prior to the
update)

Note that the double quotes are needed because of the ".#" name prefix.

Dale Miller
Northrop Grumman IT

> -----Original Message-----
> From: Frederic Brehm [mailto:address@hidden
> Sent: Thursday, April 11, 2002 11:08 AM
> To: address@hidden
> Subject: How do you "unupdate" a file
> 
> 
> I updated a file by mistake and I'm not ready to integrate its 
> changes with my current sandbox. An "update -r old.rev" will fix 
> things up, but it sets a sticky tag.
> 
> I'll probably forget (call it a senior moment :-) to "update -A" 
> until I thrash around a bit and figure out what's wrong. It would be 
> nice to avoid the time wasted while thrashing around.
> 
> Is there some way to restore my sandbox to to the state before I did 
> the mistaken update? It's probably possible to do some nasty things 
> with the CVS/Entries file, but is there a cleaner way?
> 
> Thanks,
> Fred
> -- 
> Fred Brehm, Sarnoff Corporation, address@hidden
> http://www.sarnoff.com/digital_video_informatics/vision_techno
logy/index.asp

_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs



reply via email to

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