Desktop Tools and Development Environment |
Additional Source Control Actions
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:
Function Alternative. The function alternative is verctrl
with the get
argument.
Removing Files from the Source Control System
To remove files from the source control system, follow these steps:
Function Alternative. The function alternative is verctrl
with the remove
argument.
Showing File History
To show the history of a file in the source control system, follow these steps:
my_name
for User.
Function Alternative. The function alternative is verctrl
with the history
argument.
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:
Function Alternative. The function alternative is verctrl
with the showdiff
or isdiff
argument.
Viewing Source Control Properties of a File
To view the source control properties of a file, follow these steps:
A dialog box, which is specific to your source control system, opens. The following example shows the Microsoft Visual SourceSafe properties dialog box.
Function Alternative. The function alternative is verctrl
with the properties
argument.
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,
The interface to your source control system opens, showing the source control project associated with the current directory in MATLAB. The following example shows the Microsoft Visual SourceSafe Explorer interface.
Function Alternative. The function alternative is verctrl
with the runscc
argument.
Checking Files Into and Out of Source Control from MATLAB | Performing Source Control Actions from the Editor, Simulink, or Stateflow |
© 1994-2005 The MathWorks, Inc.