Log in

View Full Version : CVS help


Wilbert
3rd October 2005, 21:21
Occasionally someone commits non-english pages to the english folder :) This is caused by copying the english CVS folder to the german/french/whatever CVS folder. If this concerns only a few files, it is easy to correct. It can be done manually, or in the following way (using TortoiseCVS)

Reverting to an Older Version of a File

Developers occasionally need to undo changes that have already been checked in. Going back to a specific file revision in TortoiseCVS is easy:

1. Right-click on the file and select CVS --> History to bring up the History Dialog.
2. Right-click on the revision you need and choose the "Save this revision as..." option.
3. When the Save As dialog appears, do not click the "Save" button; instead, double-click on the file's name in the directory listing.
4. Answer "Yes" when TortoiseCVS prompts you to overwrite the file.
My question is, how do you revert to an older revision when it concerns a whole folder with incorrectly overwritten stuff?

Fizick
3rd October 2005, 21:39
(It was not Russian ? :)
If not, you may force the "someone" make reversion by hand :) )
Probably it also may be done with some batch command with WinCVS.

IanB
4th October 2005, 02:02
Where the stuffup revision is still at the head, the cleanest way is to just outdate (remove) the offending update.

cvs admin -o [rev] filename

If you have to outdate a revision please make an announcement so anyone having done a cvs update in the interem can fix there local copy.

Or if you notice in time you can grab the nightly tarball backup and extract the relevant tree and have the Sourceforge staff do a partial restore for us. The request must come from a project admin.

IanB

Wilbert
4th October 2005, 09:38
Where the stuffup revision is still at the head, the cleanest way is to just outdate (remove) the offending update.

cvs admin -o [rev] filename
Ah, ok. What if it concerns a whole bunch of filenames?

If you have to outdate a revision please make an announcement so anyone having done a cvs update in the interem can fix there local copy.
I've never done this the correct way :) But if you outdate a revision, isn't this revision moved from CVS? Can't you just do an update to fix your local copy, or am i missing something?

IanB
4th October 2005, 12:44
> a whole bunch of filenames

A whole bunch of outdates. Probably a batch update is the easiest.

> Can't you just do an update to fix your local copy

Yes but you need to know to do it before you try to commit your next update. Trying to commit against an outdated rev gives really confusing errors.

IanB

JasonFly
4th October 2005, 19:11
That was me :D, sorry about that. that'll not happen again. My lack of knowledge of CVS has produced this error. The file commited were in my french doc folder on my HDD but were commited to the english doc in the CVS.

As a punishment, i'll tranlate 5 filter tonight.

Fizick
4th October 2005, 20:18
Wilbert, please inform us in this thread, when CVS will be correct.

Wilbert
4th October 2005, 20:57
JasonFly, your were not the only one :)

@Fizick, CVS was already corrected one day ago.