News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Win32 CBTortoiseSVN plugin under subversion control

Started by Jan van den Borst, September 14, 2007, 12:22:26 PM

Previous topic - Next topic

Jan van den Borst

Some time ago I wrote a codeblocks plugin for using subversion under codeblocks (win32). It is called CBTortoiseSVN and uses TortoiseSVN(*) as its engine.

It can be found at:

http://tools.assembla.com/svn/CBTortoiseSVN/CBTortoiseSVN/trunk


(*) TortoiseSVN and subversion must be installed

jan

Keyla

IMHO Version control is a very important task for a IDE. But I don't understand why the plugin doesn't make direct calls of the SVN tools. IMHO this would make it able to build it crossplatform?

Jan van den Borst

I agree in general, but making a plugin that equals tortoisesvn is not a trivial thing I'm afraid.
Jan

Keyla

Of course this won't be an easy job. But it might be a very clear solution :). I think there are a lot of ready to use snipplets for this task out in the web.
The question is what features a normal user uses and if that were implemented for use under every OS it would be quite nice  :P

Alca Isilon

#4
How about using parts of TortoiseSVN's code to start with ? It is licensed GPL AFAIK, so that shouldn't cause any problems.

When looking at parts of Tortoise's code I notice that it's build directly on top of libsvn (apart from the GUI that is).

Keyla

Nevertheless I agree completely with Jan, it's a lot of work.
If you are realy interested in a complete rewrite I would recommend a poll of how the users would like to have the workflow  :)

darthdespotism

If you are really about to start this I'll help ;)

For what it should be like: I _really_ liked subclipse back when I used Eclipse/CDT (It's the only thing I miss on C::B) something like this would be great!

fiammy

Nice.
I tried a download of this plugin somewhere ont he forums, but I couldn't get it to work. Is there anything I should be doing to get it in a working state with a current C::B version?

Nice work btw, this is a part that is generally the stumbling block for most semi- to professional work with Non-VC IDEs.

stahta01

#8
Quote from: fiammy on September 16, 2007, 09:59:52 PM
Nice.
I tried a download of this plugin somewhere ont he forums, but I couldn't get it to work. Is there anything I should be doing to get it in a working state with a current C::B version?

Nice work btw, this is a part that is generally the stumbling block for most semi- to professional work with Non-VC IDEs.

Compiling Code::Blocks and the Plugin from SVN seems to work for me.

Under TortiseSVN "Plugin Settings" "path"
Note: I had to set the path for svn.exe and TortoiseProc.exe

Also, I had to change to "project based commands" under Under TortiseSVN "Plugin Settings". I think this might be a bug in the plugin using SVN 26; going to revert my changes and try it unmodified. Reverted my changes and still only worked in "project based commands"; note I did not try it in "workspace based commands". False problem, the file based commands works on active file in editor, I did not have file open in editor.

Note, I had to add "C:\Program Files\TortoiseSVN\bin" to my path or to Compiler "Additional Paths" to get "Tortise SVN settings" to work.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jan van den Borst

Note, I had to add "C:\Program Files\TortoiseSVN\bin" to my path or to Compiler "Additional Paths" to get "Tortise SVN settings" to work.

fixed in rev.28

Jan

stahta01

Thanks for the fix, I had an error trying "Check for Modifacations" with the normal svn-win32-1.4.5 svn.exe so I am using CollabNet Subversion; CollabNet Subversion worked without a problem. The problem was inside svn.exe, not your code.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Keyla

IMHO the usage of the rootfolder for SVN/CVS is quite different.
On the one hand a lot of people check in only the sourcecode, others (including myself) like it to check everything in. This includes documentations, resources ... but not the final binary. Therefor a 'clean all' and a wizzard for choosing an upper rootfolder / creating directorytrees like

project
-bin
-doc
-res
-src
-test

would be realy nice :-)

Jan van den Borst

Quote from: Keyla on September 20, 2007, 05:46:02 PM
IMHO the usage of the rootfolder for SVN/CVS is quite different.
On the one hand a lot of people check in only the sourcecode, others (including myself) like it to check everything in. This includes documentations, resources ... but not the final binary. Therefor a 'clean all' and a wizzard for choosing an upper rootfolder / creating directorytrees like

project
-bin
-doc
-res
-src
-test

would be realy nice :-)

Could you perhaps explain some more?
Jan

Keyla

Of course. The most 'old school' coder use this directory tree because this makes it easy to collect all files for a release, teamworking,... . But the problem is that it is sometimes not nescessary to check in SVN executables, generated docs,... so everything that could be generated by the user after unchecking from the reposity. It would be cool if this files could be deleted before check in to save resources.

On the other side a lot of developers like it to put everything just in one folder and submit it to the reposity.

Jan van den Borst

Couldn't you use the svn:ignore property to exclude unwanted files and intermediates?

Jan