bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS Guide - Feedback


From: Jim Hyslop
Subject: Re: CVS Guide - Feedback
Date: Mon, 24 Mar 2008 22:39:09 -0400
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

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

iPhrankie wrote:
| Hello Everyone,
|
| Forgive me if this isn't the appropriate place to send this to.
Well, it's not really, but I've cc'd the address@hidden list, so
the thread can be picked up over there.

| I wrote the attached guide for my colleagues and will also be posting
it to
| my personal web site. As part of the guide, there are instructions on
| restoring a file that was removed from the project. I believe I wrote the
| instructions correctly but it seems the "cvs update ?A" command is a
little
| clumsy to use. I'm not sure if I'm taking the most straightforward
approach.

"Straightforward" may be in the eye of the beholder. In this beholder's
opinion, I'd say no :=)

Using the file names and revisions in your example, I'd issue these
commands:

cvs stat new.html
('cvs stat' will tell you the repository revision of the dead file. You
want to restore the revision immediately before that. In your example,
the "Repository revision" field should show 1.2, so you want to restore
revision 1.1)

cvs update -p -r1.1 new.html>new.html
(retrieves version 1.1 from the repository, displays the output on the
screen (the -p option), and redirects the output to the file new.html)

cvs add new.html
cvs commit new.html

The file is now checked in and ready to resume operations.

Oh, one minor point - when removing a file, you can have CVS remove it
automatically by using the -f option:

cvs remove -f new.html

eliminates the need to manually delete it.

- --
Jim Hyslop
Dreampossible: Better software. Simply.     http://www.dreampossible.ca
~                 Consulting * Mentoring * Training in
~    C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH6GXNLdDyDwyJw+MRAq4qAJ0ZbjvBKlZcCEiVadz/ZM4ECrDh2wCg75bC
igb6c3M62qTlP5ygbZFVAWc=
=UDwC
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]