Undoing the Checkout on UNIX Platforms

Impact of Undoing a File Checkout

When you undo the checkout for a file, the file remains checked in, and does not have any of the changes you made since you checked it out. To save any changes you have made since checking out a file, select File > Save As, and supply a different file name before you undo the checkout. Undo the checkout using the Current Directory browser for one or more files. For only one file, you can also use the Editor, or the Simulink or Stateflow products.

Undoing the Checkout for One or More Files Using the Current Directory Browser

  1. In the MATLAB Current Directory browser, select the file or files for which you want to undo the checkout.

  2. Right-click, and from the context menu, select Source Control > Undo Checkout. MATLAB undoes the checkout.

An error appears in the Command Window if the file is not checked out.

Undoing the Checkout for a Single File Using the Editor, or the Simulink or Stateflow Products

  1. Open the M-file, Simulink model, or Stateflow chart for which you want to undo the checkout.

  2. Select File > Source Control > Undo Checkout. MATLAB undoes the checkout.

Function Alternative

The undocheckout function takes this form:

undocheckout({'file1','file2', ...})

Use the complete path for filen and include the file extension. For example, to undo the checkout for the files clock.m and calendar.m, type

undocheckout({'\myserver\mymfiles\clock.m',... 
'\myserver\mymfiles\calendar.m'})
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS