News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

TortoiseSVN plugin

Started by Jan van den Borst, August 22, 2006, 04:42:05 PM

Previous topic - Next topic

Jan van den Borst

I wrote a litte plugin for subversion version control using TortoiseSVN. Maybe it is of use for others???

(windows only)

[attachment deleted by admin]

Szabadember

What do i need to compile this plugin?  :(

tiwag

#2
Quote from: Jan van den Borst on August 22, 2006, 04:42:05 PM
I wrote a litte plugin for subversion version control using TortoiseSVN. Maybe it is of use for others???

(windows only)

work nice , thanks  :D


maybe a setup dialog would be nice, to setup the path to TortoiseProc.exe,
( for those which don't have the TortoiseSVN\bin not in their PATH , i think it isn't installed by default )
also you could get the path from the registry for first setup, but a dialog to change if necessary.

tiwag

Quote from: Szabadember on September 10, 2006, 01:43:00 PM
What do i need to compile this plugin?  :(
you need to build CB itself from the svn sources (you need the CB sdk)

kisoft

Thanx, very nice. I use this plugin successfull.
I modify this plugin for remove svn.exe using and adapt sources to new standart.
Now CBTortoiseSVN placed to my ContribPlugins.workplace.
Regards! 8)
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
[url="https://github.com/kisoft/cbmakefilegen"]https://github.com/kisoft/cbmakefilegen[/url]

orel

Hi,

i also modify the sources to adapt to the new cb sdk, but i don't know where to put the dll in order it's loaded into CB when it starts.

Maybe i missed something in CB docs or wiki but i can't figure what to do with the dll ?  i put it in  \share\CodeBlocks\plugins directory but i have no TortoiseSVN plugin in my plugin manager

It is also possible that i didn't modify well the TortoiseSVN plugin sources.

Maybe someone can post the new sources, working with the last nightly build or explain me?

Someone else could either post the dll directly, but i prefer to understand by myself.

Thanx !!!
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]

Pecan

Quote from: orel on October 04, 2006, 10:01:19 PM
... i put it in  \share\CodeBlocks\plugins directory but i have no TortoiseSVN plugin in my plugin manager


Each plugin contains a zip file by the plugin name in .../share/codeblocks. Within the zip file is a manifest.xml file. Look at how the other plugins have done this. For example, look at keybinder.zip

The plugin .dll goes into .../share/codeblocks/plugins



MortenMacFly

Quote from: orel on October 04, 2006, 10:01:19 PM
Maybe someone can post the new sources, working with the last nightly build or explain me?
Here the are - modified and working with SVN trunk.
With regards, Morten.

[attachment deleted by admin]
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Pecan

Quote from: MortenMacFly on October 04, 2006, 11:03:33 PM
Quote from: orel on October 04, 2006, 10:01:19 PM
Maybe someone can post the new sources, working with the last nightly build or explain me?
Here the are - modified and working with SVN trunk.
With regards, Morten.

The manifest file is incorrect. It's name is not C::BTortoiseSVN but CBTortoiseSVN.
I believe it should read:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_plugin_manifest_file>
    <SdkVersion major="1" minor="10" release="0" />
    <Plugin name="CBTortoiseSVN">
        <Value title="C::B TortoiseSVN" />
        <Value version="1.0" />
        <Value description="C::B TortoiseSVN" />
        <Value author="Jan van den Borst" />
        <Value authorEmail="" />
        <Value authorWebsite="http://www.codeblocks.org" />
        <Value thanksTo="Code::Blocks Development Team" />
        <Value license="GPL" />
    </Plugin>
</CodeBlocks_plugin_manifest_file>


Note line 4

MortenMacFly

Quote from: Pecan on October 04, 2006, 11:29:40 PM

    <Plugin name="CBTortoiseSVN">

Ooops - you are right... Darn Copy&Paste... :-( ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Pecan

#10
For those who would like to append the CBTortoiseSVN menu onto the Tools menu (taking up less real estate) changing the code after the "else" will do so.
See "CBTortoiseSVN::BuildMenu(wxMenuBar *menuBar)".



int ToolsPos = menuBar->FindMenu(_("&Tools"));

if ( ToolsPos == wxNOT_FOUND )
menuBar->Append(TortoiseSVN_submenu,_("TortoiseSVN"));
else
{ //menuBar->Insert(ToolsPos,TortoiseSVN_submenu,_("TortoiseSVN"));
    wxMenu* pToolsMenu = menuBar->GetMenu(ToolsPos);
    pToolsMenu->Append(idCBTortoiseSVN, _("TortoiseSVN"), TortoiseSVN_submenu, _("TortoiseSVN"));
}

}

//******************************************************************************

void CBTortoiseSVN::RemoveMenu(wxMenuBar *menuBar)
{
    //(pecan 2006/10/04)
    // It is not necessary to remove menu items and can cause a 3 to 10
    // second delay durling program termination
    return;

wxMenu *menu = 0;


mandrav

Quote from: Pecan on October 05, 2006, 01:25:07 AM
For those who would like to append the CBTortoiseSVN menu onto the Tools menu (taking up less real estate) changing the code after the "else" will do so.

Keep in mind though that the Tools menu is recreated from scratch each time you modify the tools...
Be patient!
This bug will be fixed soon...

orel

Thanks everyone

I'm going to try that at the moment i'm at home...!
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]

Pecan

#13
This plugin is trying to execute something called TortoiseProc which I don't have in my TortoiseSVN distribution (XP).

What is it. And why is the plugin trying to execute it?

Edit: Found it.
It seems I have two TortoiseSVNs on my system. Now how did that happen?

Edit: Evidently this plugin requires both the TortoiseSVN gui *and* the command line Subversion version available on the system path.

orel

Soory guys to bother you but...

It seems that i can not make it work. I don't know what i am missing but nowhere i can see something about the plugin, i'm sure it's not even loaded.

However, i did all these things :

_ put CBTortoiseSVN.dll in \share\CodeBlocks\plugins of the freshly downloaded nightly build version. (that is revsion 3004)
_ created a zip file with the manifest.xml you guys have just post

And nothing appeared anywhere about the plugin, and the Code::Blocks debug message pane doesn't notice about it having been loaded or failed or ... existing

I must have missed a very big point, but which?

:cry::cry::cry::cry:
it may helps :

WinXP SP2 on Centrino Duo : 1,6 gHz x 2

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]