Thursday, December 14, 2006

 
Backup History

InnerLoop has a very nice feature that keeps a history of the files you edit.

This week I was working on some new features for my project. One of my co-workers recommended a better way to implement something based on a description I provided him. Since he is a very smart guy and usually knows what he's talking about I just started to implement it without too much thinking. I ended up editing about 5 different files with InnerLoop and suddenly realized I wasn't so sure this was the right way to go. Unfortunately, I couldn't just revert to the latest in CVS since I already had a bunch of other changes that I thought were good, but not complete enough or well tested enough to check-in. I really didn't feel like taking out all of today's changes manually.

To bail me out I turned to the backup history in InnerLoop. On the File menu you will find something called "Backup History". If you select this on a particular file you will see a bunch of numbered versions with dates and times. I knew the time I started all my changes and from comparing to CVS which files were changed. Using this backup history I selected a version I thought was before I got into this mess and hit the Diff button. Sure enough, it shows me all the changes I made. All I had to do was undo the changes by either merging them 1 at a time or merging all of them back into my file and things were quickly back to where I started.

I didn't change any configuration related to the Backup History, but if you are interested you can find more options for it on the Tools -> Options -> File Options dialog on the Backup tab.

I'm pretty sure emacs or vim would not have bailed me out of this quite so quickly.

Happy Coding!

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?