Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: e2Studio’s Local History feature

$
0
0
Let's take a quick look at e2Studio’s Local History feature.   Did you know that e2Studio retains a local history? Each time you edit and save the file, a copy is also created internally so that you can replace the current file with a previous edit or even restore a deleted file. You can also compare the contents of all the local edits.   Disclaimer: I’m not advocating using this over the repository system! In my view this is more for incremental test changes or additions that are under evaluation during project development.   How does one setup the local history and configure it. It’s easy, just navigate to: Window- General- Preferences- Local History     Usability is straightforward: Days to keep files is obvious. Enter the number of days that you want to keep file changes Maximum entries per file is the number of states (saves) to keep for any one resource Maximum file size (MB) is the maximum file size (in MB) of local history for a resource that will be kept   Just one usability note however: Only files have local history-projects and folders do not.   OK, let’s check it out in action. I’ll take this simple function here in main:     And modify it to this (adding 2 nops):     Let’ say I want to revert to something else that worked right. Select the file and right-click . In the submenu, select Compare With- Local History…     A comparison window will open in the IDE showing you the recent file changes/timestamps. Note the BOLD is the current revision.     Select one of the entries, and right-click . You’ll be presented with several options on how you want to view/use the file:       For our purpose here let’s select Compare Current with Local . Doing so will reveal the Compare/Diff viewer highlighting the current code and prior version(s) differences as shown below:     From here you can use the menu bar buttons in the Compare Viewer to quickly revert prior saved changes back to the selected resource.   Even better, let’s say you took out a file from the project altogether. The next day, you want that file back-and with some level of edits in the file. Yes, you can do that!   In the project, I’ve already deleted the file we’ve been working with in this example (see below project tree with no cg_main.c file). Select the project in the explorer pane, right-click and select Restore from Local History…     You’ll be presented with a dialog box showing which files have been removed as well as the associated edit points where saves occurred. You can select the files, view the changes for that revision (note only 1 nop for my selection), and also restore those to the project structure as needed with the Restore button.     Post Restore:     Hope these quick tips help you use the IDE quicker and easier.  

Viewing all articles
Browse latest Browse all 59170

Trending Articles