[EMAIL PROTECTED] on 2000.07.20 13:37:52
>>Yes, this behaviour is consistent with OOTB CVS (ie without "cvs
>edit"). For
>>example:
>>cvs co module
>>cd module
>>cat hello >> file # OOTB CVS has files read-write
>
>What does OOTB mean?
Out of the box.
>>cvs ci # will checkin file
>>
>>If you don't want this behaviour, use the "cvs ci -c" patch which'll
>check for
>>valid edits before committing.
>
>So, if I understand you correctly, I can "cvs unedit" a file which
>will still leave it in its modified state and then check it in.
Yes.
> I
>assume that the watchers will get the "commit" notification but they
>won't get the "edit" notification because the developer has used
>"unedit".
They would get the edit notification when the user first did "cvs edit". They
would get the unedit notification when the user did "cvs unedit". They will get
the commit notification when the user did "cvs ci".
> I don't quite see the point in having edit watches if they
>can be defeated like this but they can also be defeated by using
>chmod.
Exactly. "cvs edit" and family are meant to /facilitate/ communication.
They're not meant to enforce communication. For example, I habitually chmod
when all I want to do is add a debug printf. If later I find that I really want
to commit the file in the future, I'll "cvs edit" it.
>Personally, I would like to see some sort of module "revert" command.
>Currently, I can only revert a file at a time by doing:
>
> rm file
> cvs update file
"cvs up -C" will revert files back to the repository copy. This is available in
cvs-1.10.8. I've posted a patch to fix a bug dealing with merges.
>Conceivably, I could write a script or an alias to do this recursively
>for every sub-module but I would prefer that cvs supported it "out of
>the box". To me, the meaning of "unedit" is the ideal command to do
>this. So all I would do is:
>
> cvs unedit module
>
>and it would revert all my changes in module and all its sub-modules.
"cvs up" is the ideal place to do this, not "cvs unedit". Like I said, "cvs
unedit" is to facilitate communication -- nothing more, nothing less.
Noel
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.