[cvsnt] Reverting to a previous file...

Flávio Etrusco flavio.etrusco at gmail.com
Mon Aug 28 22:35:26 BST 2006


> I apologize in advance and feel a little silly for not being able to find in
> the FAQ or news group the answer to this question. I'm sure it's already
> been asked before

Unfortunately reverting is not as easy as it should/could. OTOH it's
basically as safe as it can be ;-)

> I am trying to revert to a previously checked in version of files in a
> project. I want to check into the tip of my development line or branch an
> older version that has been tagged or maybe by date. I thought I would
> simply two step process.
>
> 1. update sandbox with the branch or the main development line I want to
> revert.
> 2. Issue the cvs update -j TAG_TO_REVERT_TO
>
> If I wanted it to be date, I would replace the tag after the -j option with
> the date and time. This didn't seem to work. What steps should I use to
> revert?

I believe passing in the current tag/branch/revision as the first -j
option, in step 2, will do.

Cheers,
Flávio


More information about the cvsnt mailing list