MATLAB: Can I add and commit a new file simultaneously to CVS with one call to CHECKIN in MATLAB

concurrentcontrolMATLABsourcesystemversion

I have my preferences set to use the CVS source-control system.
When I execute:
checkin('/myserver/mymfiles/foo.m', 'comments', 'Some comments')
on a file that has not previously been checked-in, the file is added to the CVS, but not committed.

Best Answer

MATLAB does not have the ability to add and commit a file simultaneously to CVS.
To work around this issue, call CHECKIN twice:
checkin('/myserver/mymfiles/foo.m', 'comments', 'Some comments')
checkin('/myserver/mymfiles/foo.m', 'comments', 'Some comments')
The first instance adds the file to the system. The second commits it.