Main Content

Additional MSSCCI Source Control Actions

Note

MSSCCI support has been removed. Replace this functionality with one of the following options.

  • Use a source control system that is part of the MathWorks® Source Control Integration with the Current Folder browser.

  • Use the Source Control Software Development Kit to create a plug-in for your source control.

  • Use the MATLAB® system function to access the command-line API for your source control tool. This option does not provide integration with the MATLAB Current Folder browser menus or source control status column.

Getting the Latest Version of Files for Viewing or Compiling

You can get the latest version of a file from the source control system for viewing or running. Getting a file differs from checking it out. When you get a file, it is write protected so you cannot edit it, but when you check out a file, you can edit it.

To get the latest version, follow these steps:

  1. In the MATLAB Current Folder browser, select the folders or files that you want to get. If you select files, you cannot select folders too.

  2. Right-click, and from the context menu, select Source Control > Get Latest Version.

    The MATLAB Get latest version dialog box opens, listing the files or folders you selected.

  3. Click OK.

    You can now open the file to view it, run the file, or check out the file for editing.

Removing Files from the Source Control System

To remove files from the source control system, follow these steps:

  1. In the MATLAB Current Folder browser, select the files you want to remove.

  2. Right-click, and from the context menu, select Source Control > Remove from Source Control.

    The MATLAB Remove from source control dialog box opens, listing the files you selected.

  3. Click OK.

Showing File History

To show the history of a file in the source control system, follow these steps:

  1. In the MATLAB Current Folder browser, select the file for which you want to view the history.

  2. Right-click, and from the context menu, select Source Control > History.

    A dialog box, which is specific to your source control system, opens. For Microsoft® Visual SourceSafe®, the History Options dialog box opens, as shown in the following example illustration.

  3. Complete the dialog box to specify the range of history you want for the selected file and click OK. For example, enter my_name for User.

    The history presented depends on your source control system. For Microsoft Visual SourceSafe, the History dialog box opens for that file, showing the file's history in the source control system.

Comparing the Working Copy of a File to the Latest Version in Source Control

You can compare the current working copy of a file with the latest checked-in version of the file in the source control system. This highlights the differences between the two files, showing the changes you made since you checked out the file.

To view the differences, follow these steps:

  1. In the MATLAB Current Folder browser, select the file for which you want to view differences. This is a file that has been checked out and edited.

  2. Right-click, and from the context menu, select Source Control > Differences.

    A dialog box, which is specific to your source control system, opens. For Microsoft Visual SourceSafe, the Difference Options dialog box opens.

  3. Review the default entries in the dialog box, make any needed changes, and click OK. The following example is for Microsoft Visual SourceSafe.

    The method of presenting differences depends on your source control system. For Microsoft Visual SourceSafe, the Differences for dialog box opens. This highlights the differences between the working copy of the file and the latest checked-in version of the file.

Viewing Source Control Properties of a File

To view the source control properties of a file, follow these steps:

  1. In the MATLAB Current Folder browser, select the file for which you want to view properties.

  2. Right-click, and from the context menu, select Source Control > Properties.

A dialog box, which is specific to your source control system, opens. The following example shows the Microsoft Visual SourceSafe properties dialog box.

Starting the Source Control System

All the MATLAB source control actions automatically start the source control system to perform the action, if the source control system is not already open. If you want to start the source control system from MATLAB without performing a specific action source control action,

  1. Right-click any folder or file in the MATLAB Current Folder browser

  2. From the context menu, select Source Control > Start Source Control System.

The interface to your source control system opens, showing the source control project associated with the current folder in MATLAB. The following example shows the Microsoft Visual SourceSafe Explorer interface.