Scenario 5 - Bug fixing a previous version
Return to Introduction  Previous page  Next page
A fairly serious bug has been reported in the free version, but nobody has yet reported it in the commercial version. Ewan has been tasked with fixing the bug and, if appropriate, applying the fix to the release version.

Knowing that the free version has been marked with the LITE version label, he starts up Version Manager and selects Tools / Views... to display the View Manager dialog box. He clicks on the New... button to create a view based on the LITE version label. The View Properties dialog is displayed and he selects GP-Install in the list of projects, and the LITE version label. He names the view GP-Install LITE, and then presses OK to save the new view, and closes the View Manager.

He selects the view from the drop down list of views to make it current, and browses the folders and files in the GP-Install project to make sure that the view is filtering correctly. Satisfied, he does a refresh on the project to make sure that his local files are those used in the LITE version.

He starts Delphi and opens up the GP-Install project. He does some investigation of the source to determine the location in code where he needs to make the change. Although it is a major bug, the fix is pretty simple, and located in the InstClasses.pas file. He decides to check out the file and make the fix, so he opens the InstClasses.pas file in the Delphi editor and selects Workgroups / Checkout... from the Delphi IDE menu. The check out dialog box is displayed and he notices that the LITE version label has already been placed in the Version edit box. He presses the OK button and the LITE version of the file is checked out and updated in the editor.

He fixes the bug and tests the results of the fix to make sure that he hasn't broken anything by making the fix. Satisfied, he selects Workgroups / Checkin... from the Delphi IDE menu. The check in dialog box is displayed and he notices, again, that the LITE version label has already been added to the Version edit box, and that the Move existing version label to new revision checkbox has also been checked. Happy, he presses the OK button and Team Coherence checks in the file and displays the status dialog box.

He notices that the status dialog box has highlighted the file InstClasses.pas with a warning: A new branch revision was created. He presses the OK button to return to Delphi. Curious, and to check that this is indeed what he wanted to do, he opens Version Manager and selects the file to display the revisions. At the tip revision he sees the new, branched, revision with a Version Label attached. He double clicks the revision to see its properties and notes that the LITE version label has been moved to the new revision.

As another check, he selects the <default> view from the list of views and selects the file again. This time the branched revision is no longer the tip revision but that the tip revision is now the current working revision of the commercial tool.

He decides that this is pretty cool and goes for a beer.

 


© 1995-2018 MCN Software