In this section, the local history feature will be used to switch to a previously saved version of a ProvideX program.
Open DemoApp > src > prog > outputpdf.pvc.pvxsrc in the editor from the Project Explorer view.
Change the program by adding the following line:
PRINT "Hello World"
Save the file by pressing Ctrl+S.
In the Project Explorer view, select and right click on DemoApp > src > prog > outputpdf.pvc.pvxsrc
From the Context menu, select Replace With > Local History....
In the Compare dialog, the history of revisions to the program is displayed.
Below the list of revision dates is a compare pane that shows details of the differences between the selected history and the current state of the file.
Double-click one of the dates in the list to see a comparison of the differences to the current version of the source file...
Select the previous version, and click the Replace button.
Local history can also be used to restore a deleted file.
Select DemoApp > src > prog > outputpdf.pvc.pvxsrc in the Project Explorer view, and from its context menu, select Delete.
Right click the DemoApp project in the Project Explorer view.
From its Context menu, select Restore from Local History....
Select src/prog/outputpdf.pvc.pvxsrc in the Check files to restore.. pane.
As before, the Local History.. pane shows the versions saved in the local history.
In the Local History.. pane, select the earlier working version and then click Restore.