"cvs edit" then "cvs unedit" will not necessarily retrieve a clean copy of the
file.  "cvs unedit" retrieves the copy of the file the way it was when "cvs
edit" was done, modifications and all.

Noel




[EMAIL PROTECTED] on 06/01/2000 08:59:53 PM

To:   [EMAIL PROTECTED]
cc:   [EMAIL PROTECTED] (bcc: Noel L Yap)
Subject:  Re: forced updates




Just delete the file.  CVS will notice that it is missing and fetch a
fresh copy from the repository.

The other option is to "cvs edit" the file, then "cvs unedit" when you
are done with it.  Both of these are available in the WinCVS interface.
The "cvs edit" saves a copy of the file.  The "cvs unedit" will prompt
you to see if you want to overwrite the modified file.  In the situation
that you are asking about, you would just answer yes.

Shane

"Dimitrie O. Paun" wrote:
>
> Hi,
>
> Very often I run in this problem: I edit some files to add debugging stuff,
> and after a while I want to updated from CVS and to simply _overwrite_ the
> changes I made.
>
> I know, I can delete the files and then update. But, this is difficult
> 'cause sometimes I don't know what I've modified (and the files are
> scattered in hundreds of directories). Questions:
>
> 1) can I do this in one shot?
> 2) can I do it on the command line?
> 3) can I do it in WinCVS?
>
> TIA,
> Dimi.






This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.

Reply via email to