Marc, himself, his blogs, and you reading them.
cvs: reverting to date
Over in customer land someone messed up her cvs repo today, and wanted to revert to some last known good (untagged) state. Some vague knowledge of the last good date was all we had.
This is probably a classic in cvs land, but I don't messup nearly enough to make this ready knowledge. So here is I making the mental note to self so I don't have to dig through the CVSBOOK again next time:
$ cvs up -dP -D "22 Jun 2004 22:55"
$ cvs tag LAST_GOOD_STUFF
$ cvs up -A
$ cvs up -j HEAD -j LAST_GOOD_STUFF
$ cvs ci -m "reverting the mess I made"
$ cvs up -dPAC
# Posted by mpo at 11:51 PM
| TrackBack
Post a comment

