Rolling back source code
Moderator: SourceGear
Rolling back source code
How do you roll back your source code using Fortress? I had checked in some files I was working on. Now, I need to revert back to the solution I had a month ago. I'm not sure how to do this, or if its possible.
Re: Rolling back source code
You can roll back individual files by right-clicking on a file, selecting Show History, selecting the version you want, right click on that version, and select Rollback.
There's not a comparable rollback function for folders, but a workaround is to right click on the parent folder of your project, and Show History, In the History Explorer dialog, select the radio button for View Folder History by Version. Select the version you want, then do a Get Tree to a non-working folder. Checkout the files of the current project, then replace them with the files from the previous version and check them back in.
Let me know if you have additional questions.
There's not a comparable rollback function for folders, but a workaround is to right click on the parent folder of your project, and Show History, In the History Explorer dialog, select the radio button for View Folder History by Version. Select the version you want, then do a Get Tree to a non-working folder. Checkout the files of the current project, then replace them with the files from the previous version and check them back in.
Let me know if you have additional questions.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: Rolling back source code
Is a rollback for folders feature coming in a future version, or is that not something SG plans to support?
Re: Rolling back source code
We haven't ruled it out altogether, but it's a complex feature, and error prone. You can always retrieve a version of the folder from history (Show History by folder version) or from a label. Get it to a nonworking folder, check out the files in your working folder, and replace them with the contents of Get
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager