Author Topic: Using CVS or SVN with C::B  (Read 5272 times)

aseth

  • Guest
Using CVS or SVN with C::B
« on: January 18, 2008, 12:02:07 am »
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?

Offline jfouche

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: Using CVS or SVN with C::B
« Reply #1 on: January 18, 2008, 09:02:21 am »
You can try the SVNInside plugin here : http://forums.codeblocks.org/index.php/topic,7063.0.html

mariocup

  • Guest
Re: Using CVS or SVN with C::B
« Reply #2 on: January 18, 2008, 09:51:56 am »
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:
Code
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

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: Using CVS or SVN with C::B
« Reply #3 on: January 18, 2008, 11:25:01 am »
See cbTorToiseSVN plugin too, very beautiful.
http://forums.codeblocks.org/index.php/topic,6907.0.html
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

aseth

  • Guest
Re: Using CVS or SVN with C::B
« Reply #4 on: January 18, 2008, 04:22:24 pm »
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.

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: Using CVS or SVN with C::B
« Reply #5 on: January 18, 2008, 05:07:48 pm »
You could use kdesvn from the repos. Integrates nicely in konqueror and works with GNOME, too ;)

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: Using CVS or SVN with C::B
« Reply #6 on: January 18, 2008, 10:30:02 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 :http://forums.codeblocks.org/index.php/topic,7063.0.html

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: Using CVS or SVN with C::B
« Reply #7 on: January 19, 2008, 05:29:34 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 :http://forums.codeblocks.org/index.php/topic,7063.0.html