[EMAIL PROTECTED] on 2000.07.20 14:14:21
>>"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.
>
>I think perhaps you are speaking as a cvs developer here not a cvs
>user. To me "cvs unedit" has a closer meaning in english for
>reverting files than "cvs update".
Yeah, I'd have to agree with you here. Don't blame me, I didn't pick
the names of the commands ;)
> But I guess the "cvs update -C"
>isn't technically reverting files. Its updating them and throwing
>away any local changes.
Yeah, this is true, too. A real revert would require "cvs up -p -r <current
revision> file >file". Unfortunately, I don't know of an easy way to get the
base revision number. This could be one or two new proposals:
1. allow a special flag to "cvs up" that means the base version (ie the version
checked out).
2. allow a special flag to "cvs stat" that returns the base version only (along
with the filename, of course).
>>I would still like to see "cvs unedit"
>>actually revert files (i.e. restore to the version you were editting
>>instead of the latest version).
Again, it'll currently restore to the version at the time of "cvs edit". If you
want some other behaviour, wrap cvs.
I think, like you pointed out, the confusion is in the unfortunate names for
"cvs edit" and "cvs unedit". Let me make my definitions clear:
"cvs edit": Advertises to watchers that you are modifying the file with the
intent of checking it in in the future. This is extremely similar to a checkout
in other VC tool terminology.
"cvs unedit": Advertises to watchers that you've changed your mind about
committing the file in the future. This is extremely similar to an uncheckout
in other VC tool terminology.
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.