cvs-1.10.8 has "cvs up -C" that'll give you a clean copy of the file.
Otherwise, you can do something like:
cvs -n up | grep '^M' | awk '{ print $2 }' | while read f
do
     rm $f
     cvs up $f
done

You might want to specify the local version to update, though by using something
like:
cvs up -p -r base-rev $f >$f

where base-rev is the version you have checked out.  You can get the base-rev by
parsing the output of "cvs stat $f".

Noel




[EMAIL PROTECTED] on 2000.06.01 18:47:57

Please respond to [EMAIL PROTECTED]

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




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