Komodo Tour

 

Table of Contents

Part 4: Source Code Control

Using Source Code Control

If you have Perforce or CVS installed and are running Komodo Professional, you can take advantage of Komodo's source code control (SCC) integration. You can use the SCC features to check files in and out of the source code repository and to compare files in the editor against their repository versions.

This part of the tutorial assumes that you have either Perforce or CVS installed on your machine. For instructions on configuring Komodo's source code control integration, see the Source Code Control section of the Komodo User Guide.

  1. Select File|Open|File. Use the Open File dialog box to navigate to a file in your local directory that is under source code control, and click Open. The file will open in the Editor Pane. Notice the padlock icon on the file indicating that the file status is read-only.


  2. View Example

  3. Select File|Source Control|Edit or click the Edit button on the source code control toolbar.


  4. View Example

    Komodo will display a prompt that asks if you want to show the SCC Output tab. Click Yes. The results of the command will be displayed in the Output Pane at the bottom of the Komodo workspace. In addition, a red check mark will now replace the padlock icon on the file tab in the Editor Pane, indicating that the file has been opened for edit.

    View Example

  5. Add some new text to the file and save the changes.
  6. Right-click the file tab in the Editor Pane, and select Source Control|Diff (Compare Files).

    View Example

    The "diff" window will be displayed, highlighting the change to the file.
  7. Press Esc to close the "diff" window.
  8. Right-click the file tab in the Editor Pane again, and select Source Control|Revert Changes. Komodo will display a dialog box prompting you to select the files that you want to revert. Click OK.

    View Example

    The results of the Revert Changes command will be displayed in the Output Pane, and the file status icon on the file tab will indicate that the file is, once again, read-only.

Top Previous Next