06-04-2014 03:05 PM
Hi
Is there any way to read SVN info in labVIEW. For example what is the version or what is the checked out project name ..etcetera
Thanks
06-04-2014 04:01 PM
Not built-in. You have a number of choices - you could integrate to subvesion directly or use SharpSVN (via .Net). SharpSVN is probably your best route. The Viewpoint TSVN Toolkit for LabVIEW that integrates SVN operations into the LabVIEW IDE uses SharpSVN internally.
06-04-2014 04:03 PM
JKI has one as well, but I havn't used it. I've only used Viewpoint.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-04-2014 04:04 PM
There are several ready to go toolkits that integrate with TortoiseSVN.
I use the VSI TSVN tools.
You can get it through VIPM.
You could also use command line calls to your SVN client or if you're using TortoiseSVN, you can run command line calls to SubWCRev.
06-04-2014 04:09 PM
It depends on what you are looking for in the end - a developer tool for svn integration into LabVIEW (the TSVN Toolkit people have mentioned is probably your best bet) or a custom run-time application that simply needs to be able to access certain SVN attributes as part of it's tasks. If this is the case, then I recommend using SharpSVN combined with TortoiseSVN. The SharpSVN API is fairly simple to integrate into LabVIEW.
06-04-2014 04:53 PM
It used to be a hidden .svn text file in the checked out folder you could extract info from, but it might have changed.
/Y
06-04-2014 04:56 PM
Tortoise 1.7 onwards has a .svn hidden folder with a database of local WC information. But I wouldn't parse this unless I had a lot fo time on my hands
06-04-2014 05:04 PM
According to http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.status.html it looks like you should be able to do a System exec with svn status -u [path]
/Y
06-04-2014 05:39 PM
@Yamaeda wrote:
According to http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.status.html it looks like you should be able to do a System exec with svn status -u [path]
/Y
I recommend this method. It looks like most of the SharpSVN API is supported in LabVIEW but some of it uses generics (which is not supported in LabVIEW as of 2014b).