Reverting changes

From World Wind Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 05:40, 10 July 2005 (edit)
Jessi (Talk | contribs)
m (Previous edits were mine.)
← Previous diff
Revision as of 06:09, 10 July 2005 (edit) (undo)
Nosilleg (Talk | contribs)
m (Added Cat:DD)
Next diff →
Line 10: Line 10:
# Make sure you do this with all the files you want to revert. # Make sure you do this with all the files you want to revert.
# Commit your changes. This backs out your checkins. # Commit your changes. This backs out your checkins.
 +
 +[[Category:Dev Documentation]]

Revision as of 06:09, 10 July 2005

So you've checked in some code that broke the build or shouldn't have gone in. How do you revert, or back out, your checkins?

TortoiseCVS

  1. Using cia, nasa-exp-checkins, World Wind Builds, and SourceForge ViewCVS, figure out which files you changed and what the previous revision numbers were. If the file is SettingsBase.cs and your new revision is 1.5, you want to revert to revision 1.4.
  2. For each of the modified files, right-click on them and select CVS -> Revision Graph.
  3. Right-click on the old revision number. Click Save this revision as. Save as a local file.
  4. Delete the current-CVS files from your sandbox. For example, delete SettingsBase.cs.
  5. Rename the previous revision you saved as the current-CVS filename. For example rename SettingsBase.1.4.cs to be SettingsBase.cs.
  6. Make sure you do this with all the files you want to revert.
  7. Commit your changes. This backs out your checkins.
Personal tools