View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Subversion Interface for Matlab

4.0 | 13 ratings Rate this file 5 Downloads (last 30 days) File Size: 2.49 KB File ID: #11596 Version: 1.0

Subversion Interface for Matlab



29 Jun 2006 (Updated )

Use the Subversion version control system in Matlab

| Watch this File

File Information

The summary basically says it all. This lets you use Subversion with Matlab. I didn't see any other implementation on this, so I wrote this simple version for my group. Put this file in the ../toolbox/matlab/verctrl/ directory, overwriting the existing file there with the same name. Then go to matlab preferences, click on source control, and change it to "custom." Now in a matlab editor, you can use the menu items under File-Source Control.

Subversion doesn't use the "lock" concept, so that isn't implemented here. I also didn't implement the "undo checkout" feature. However, Zheng Li implemented that feature, and it is included in the "customverctr.m" file. My old version is "customverctr_noundo.m".

Improvements or comments are welcome.

MATLAB release MATLAB 7.2 (R2006a)
Other requirements Subversion must be installed, and you must be editing code inside an already working checkout area for a local repository. This was developed in OS X, and it should work on Linux. Not tested in Windows.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (22)
05 Jun 2012 Shalin Mehta

On Mac OS X, one needs to search and replace /sw by /usr. Else, works like a charm.

05 Apr 2011 Courtney

If you need a hassle-free Windows solution, The "TAM TAM SVN SCC" plug-in works without a hitch. I downloaded it, and it self-installed. It shows up on the Preferences/Source Control option and accessed my Subversion host db without a hitch. It allows a free, apparently unlimited trial, but it's only $19.95 for a single-seat license.

Here's the link:

Comment only
05 Oct 2010 Amy

Amy (view profile)

@Pascal Schulthess - You probably need to use the command 'add' instead of 'checkin'.

Comment only
06 Aug 2010 Pascal Schulthess

I haven't used subversion before, so this might be an easy question for you. I just installed subversion and your script and it seems to work fine. But I get a "some_file is not a working copy" message if I want to check in some_file. What am I doing wrong?

21 Mar 2010 Courtney

PushOK is a Russian company, and the PushOK wrapper solution requires a "trial license", but the cost isn't stated. Some of us would like to have known this! I think the original question remains - how can we use the provided solution on Windows???

Comment only
15 Sep 2009 Eric

Eric (view profile)

Very useful, though I second Dave's suggestion that the path be moved to a user defined variable - even on OSX there are numerous distributions of svn that use their own default paths.

21 Oct 2008 dave matthews

thanks, works on mac os 10.4.11 after changing the svn path.

perhaps you could create a variable svnPath = 'sw/bin/svn' which can be modified just once at the top of the function so users don't have to dig through the code.

05 Sep 2008 Thierry Dalon

According to TMW support

For windows you don't need install this file customverctr but only the plugin here:

For other OS you need to install a customvecctr file.

Comment only
01 May 2008 N Shah

Where can I find the "Zheng Li" version referenced in the comments?

Comment only
06 Feb 2008 Jesper Mariegaard

Works fine under Linux... see Zheng Lis comments.

11 Dec 2007 Mister Chan

Hum Gaaa Chaan!!!

29 Nov 2007 Andrea Tagliasacchi

What about OsX??
I had to go down in the script and change by hand the path of the svn binary to:
Seems to be working though...

Comment only
31 Aug 2007 Felix Hebeler

Ok, I revised the script and set up svn so that the code basically works when executed step by step, e.g. using F9. Get svn to work from the commandline using ssh first:

The only problem remaining is that the preference dialog in Matlab doesnt allow to use a custom version control, no matter what.

To the author: please update the file and give the OS it works with. That is _not_ under windows. Works under Linux for me though...

Comment only
03 Jul 2007 Goran christiansson

Please provide information on how to register subversion control software into Matlab on a Windows machine.
The com-control only allows choosing SourceSafe, which is not what we want to use for our projects.

How can we use svn?

02 Jul 2007 Juan Romero

Hi, Anyone could to make it works under windows ???
Please any help?

Thanks in advances
Juan Romero

Comment only
18 Apr 2007 Zheng Li

Works on linux after editing the paths and dos to system.

07 Feb 2007 stephane roy

Works with R14SP1 on OSX. Had to replace the path to svn (mine is in /usr/local/bin, not /sw/bin).

07 Nov 2006 Stephen Larson

Trying this on windows, Matlab 7.01. Doesn't seem to allow me to choose 'custom' from the source control preferences once I've placed the file in /toolbox/matlab/verctrl.

In fact, the Matlab documentation, in the function reference, says that the customverctrl function is only for UNIX. Perhaps some modification can be done to the Windows-only method named verctrl instead for Windows users.

29 Sep 2006 James Snyder

Works perfectly on OS X with the new Intel beta.

22 Sep 2006 Dirkjan Krijnders

Works prefect on linux when the "-Q" is replaced by the "-q" option

06 Jul 2006 Dennis Wouters

In order to get it to work, the occurences of the SVN path (/sw/usr/svn) need to be modified to wherever you have your subversion command installed. Probably even 'svn' will be sufficient.
This should also work under Windows (not tested).

30 Jun 2006 Thomas G

Doesn't work with Windows.

Comment only

Contact us