-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[EMAIL PROTECTED] writes:

> I'm fairly new to CVS but I have been trying to read around the subject
> - so sorry in advance if this is a silly question.
> 
> I have checked out a file, made some changes but have decided I want to
> revert back to the version in CVS.

cvs update -C file

it will rename your current file to .#file.x.y (where x.y is the current
version of the file you were editing) and then checkout a clean version
of the file.

> One of my collegues suggested deleting the file, then doing a 'cvs
> update' - I'm not convinced this is the best way of performing this
> function.

It is not necessarily a bad idea, but moving the file out of the way
and doing a 'cvs update' would probably be safer in case you have any
desire to crib some of your changes and put them into the file again.

> Any suggestions?

See above.

        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFBgSYU3x41pRYZE/gRAm2ZAJ9eGdsguqWfyuYu+U+CxApWKocJ0gCg05V5
+Ut4UB8Eb08HA0p0ZMPgRdY=
=4elA
-----END PGP SIGNATURE-----


_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/info-cvs

Reply via email to