Main Content

verctrl

(Removed) Source control actions (Windows platforms)

    verctrl has been removed. Access source control actions through the context menu instead. For more information, see Version History.

    Description

    example

    verctrl(action,filename,0) performs the source control operation specified by action. Complete the resulting dialog box to execute the operation.

    example

    result = verctrl(___) returns a logical 1 (true) when you complete the operation by clicking OK in the resulting dialog box, and a logical 0 (false) when you abort the operation by clicking Cancel in the resulting dialog box.

    list = verctrl('all_systems') returns a list of all source control systems installed on your computer.

    Examples

    collapse all

    Check in D:\file1.ext to the source control system.

    result = verctrl('checkin','D:\file1.ext',0)
    

    This command opens the Check in file(s) dialog box. Click OK to complete the checkin. MATLAB® displays

    result = 1

    Input Arguments

    collapse all

    Source control operation, specified as a character vector with one of these values.

    Value

    Description of Action

    'add'

    Adds files to the source control system. Files can be open in the Editor or closed when added.

    'checkin'

    Checks files into the source control system, storing the changes and creating a new version.

    'checkout'

    Retrieves files for editing.

    'get'

    Retrieves files for viewing and compiling, but not editing. When you open the files, they are labeled as read-only.

    'history'

    Displays the history of files.

    'remove'

    Removes files from the source control system. It does not delete the files from disk, but only from the source control system.

    'runscc'

    Starts the source control system. The file name can be an empty character vector.

    'uncheckout'

    Cancels a previous check-out operation and restores the contents of the selected files to the precheckout version. All changes made to the files since the checkout are lost.

    In addition, when verctrl is called with only one file name specified, action can be a character vector with one of these values.

    Action

    Description

    'showdiff'

    Displays the differences between a file and the latest checked-in version of the file in the source control system.

    'properties'

    Displays the properties of a file.

    'isdiff'

    Compares a file with the latest checked-in version of the file in the source control system and displays a logical 1 (true) if the files are different, and a logical 0 (false) if the files are identical.

    File name, specified as a character vector or a cell array of character vectors. The file name must be a full path and include the file extension.

    Example: '/myserver/myfiles/clock.m'

    Example: {'/myserver/myfiles/clock.m','/myserver/myfiles/calendar.m'}

    Version History

    Introduced before R2006a

    collapse all

    R2017a: Removed

    verctrl has been removed.

    MATLAB no longer includes built-in support for the Microsoft Source Code Control Interface (MSSCCI). Replace it with one of these options:

    Alternatively, to view the currently selected source control system, on the Home tab, in the Environment section, click Preferences. Then, select General > Source Control.