[Top][All Lists]

[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 (Windows/20080213)

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
| clumsy to use. I'm not sure if I'm taking the most straightforward

"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

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.
~                 Consulting * Mentoring * Training in
~    C/C++ * OOD * SW Development & Practices * Version Management
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla -


reply via email to

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