Code covered by the BSD License  

Highlights from
Subversion Interface for Matlab

4.0

4.0 | 12 ratings Rate this file 37 Downloads (last 30 days) File Size: 2.49 KB File ID: #11596

Subversion Interface for Matlab

by Sean Bryan

 

29 Jun 2006 (Updated 19 Apr 2007)

Use the Subversion version control system in Matlab

| Watch this File

File Information
Description

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (21)
30 Jun 2006 Thomas G

Doesn't work with Windows.

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).

22 Sep 2006 Dirkjan Krijnders

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

29 Sep 2006 James Snyder

Works perfectly on OS X with the new Intel beta.

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.

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).

18 Apr 2007 Zheng Li

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

02 Jul 2007 Juan Romero

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

Thanks in advances
Juan Romero

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?

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:
http://agateau.wordpress.com/2007/07/03/windows-svnssh-and-the-subversion-command-line-client/

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...

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:
"/usr/local/bin/svn"
Seems to be working though...

11 Dec 2007 Mister Chan

Hum Gaaa Chaan!!!

06 Feb 2008 Jesper Mariegaard

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

01 May 2008 N Shah

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

05 Sep 2008 Thierry Dalon

According to TMW support http://www.mathworks.com/support/solutions/data/1-3TABI8.html?solution=1-3TABI8:

For windows you don't need install this file customverctr but only the plugin here:
http://www.pushok.com/help/svnscc/index.php?redirect=inst_plugin.htm

For other OS you need to install a customvecctr file.

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.

15 Sep 2009 Eric

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 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???

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?

05 Oct 2010 Amy

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

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:
http://www.daveswebsite.com/software/tamtamsvn/

Please login to add a comment or rating.
Updates
19 Apr 2007

Zheng Li at Duke wrote an update to this code. He cleaned up the code, and added an "undo checkout" feature. The file "customverctr.m" is his updated version, and "customverctr_noundo.m" is my older version. Thanks Zheng!

Tag Activity for this File
Tag Applied By Date/Time
development environment Sean Bryan 22 Oct 2008 08:31:41
svn Sean Bryan 22 Oct 2008 08:31:41
source control Sean Bryan 22 Oct 2008 08:31:41
subversion Sean Bryan 22 Oct 2008 08:31:41
rcs Sean Bryan 22 Oct 2008 08:31:41
cvs Sean Bryan 22 Oct 2008 08:31:41
source control Marco 06 May 2009 11:06:44
subversion JOSE RAMON SIERRA BLASCO 29 Jul 2009 11:05:23
development environment Marco Peduto 21 Sep 2009 08:40:14
source control Jeff Gregory 16 Dec 2009 10:26:26
subversion Mario 24 Mar 2010 18:58:05
source control Mario 24 Mar 2010 18:58:11
svn Nicolas GUILLAUME 18 May 2010 11:53:44
source control Cecil Yen 19 Dec 2011 10:58:23

Contact us at files@mathworks.com