News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Using CVS or SVN with C::B

Started by aseth, January 18, 2008, 12:02:07 AM

Previous topic - Next topic

aseth

Hi,
Can anyone help me figure out if there is a plugin or any other good way to use CVS or SVN with C::B?

jfouche


mariocup

Hi aseth,

if you are using SVN under windows you can use also the Shell extension plugin (http://developer.berlios.de/projects/cbilplugin/). This plugin is a file explorer in codeblocks and supports shell extension and SVN decorators as overlay icon. TortoiseSVN offers the possibilty to use the context menu in the windows explorer or to perform the commands in a cmd. For example:

TortoiseProc.exe /command:diff /path:$file


will diff the working copy with SVN base. So you have access to all TortoiseSVN commands in the command line. You can use this feature to do the following thing. Add an entry e.g. diff in the Shell extension plugin and specify the above command. If you now select a file in the file explorer of  CB it will be the same as you are using the windows explorer. That is really cool :D. A few day ago I saw that something similar exists also for linux called toytoiseSVN, now renamed to SubdriverSVN (http://subdiversvn.sourceforge.net/). I could not try until now, but if it has also a command interface it can be use like the above example too.

Bye,

Mario

kisoft

OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

aseth

Thanks everyone. I am using Ubutnu and have no prior experience compiling plugins, etc. So, is there a way I can get a binary file for SVNinside or SubdiverSVN which I understand would give me the capability I am looking for?

Also, I don't really need CVs / SVN control from inside C::B necessarily. I am just looking for a convenient way to backup code that I am writing in C::B to a CVS / SVN repository. So, could I use a GUI front-end for CVS / SVN in conjunction with C::B?

I am again sorry that I do not have much experience with setting up CVS or SVN repositories, though I have both installed on my system. Could anyone also suggest what a good CVS / SVN GUI front-end on Ubuntu might be and where I can get it from?

Thank you.

darthdespotism

You could use kdesvn from the repos. Integrates nicely in konqueror and works with GNOME, too ;)

orel

Quote from: aseth on January 18, 2008, 04:22:24 PM
So, is there a way I can get a binary file for SVNinside or SubdiverSVN which I understand would give me the capability I am looking for?

Since SVNInside is currently in development state, it's not included in CB contrib plugins pack. So the only way to install it is to work with your own CB (built from SVN, don't download a nightly build) then download the latest SVNInside sources from http://tools.assembla.com/svn/SVNInside.
You also have to download svn executable from http://subversion.tigris.org/ since SVNInside makes calls to it in order to manage your working copy and repository.

Note that for the moment, SVNInside doesn't allow you to create a repository, but you can quite easily do it with svn exeutable. This feature will be included in future versions of SVNInside.

And if you decide to go with SVNInside, be sure to check regularly the latest sources and don't hesitate to ask me some questions about it, as i am its developer.

Best regards
windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :[url="http://forums.next.codeblocks.org/index.php/topic,7063.0.html"]http://forums.next.codeblocks.org/index.php/topic,7063.0.html[/url]

orel

Quote from: aseth on January 18, 2008, 04:22:24 PM
So, is there a way I can get a binary file for SVNinside or SubdiverSVN which I understand would give me the capability I am looking for?

Forget my last post, there is a much impler way to link a plugin with CodeBlocks, even with a freshly downloaded nightly build.

You will always have to compile the plugin by yourself, but for the rest (linking it with CB) , look at this new useful article on the wiki, wrote by JGM :
http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build
windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :[url="http://forums.next.codeblocks.org/index.php/topic,7063.0.html"]http://forums.next.codeblocks.org/index.php/topic,7063.0.html[/url]