Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: AndrewCot on March 28, 2022, 11:17:30 am

Title: C:B SF SVN - How to trace external reference to the external SF repo URL?
Post by: AndrewCot on March 28, 2022, 11:17:30 am
There is an issue with the src\plugins\contrib\cbMemoryView plugin that I want to fix eventually and submit a patch, but it's a CB external reference.
How do I find the URL for the SF external reference repo from the SF C::B repo? I can use google, but I think there should be a way of looking at the SF CB repo and finding it.
The issue is that the code displays a minimum of 32 bytes, which seems odd. The offending code is below:

Code
void MemoryPanel::UpdatePanel()
{
...code removed
...

    for(size_t i = 0; i < 32; ++i)
    {
        memory << wxString::Format(wxT("%02x "),(unsigned int)(0xFF&i));
        ascii  << wxString::Format(wxT("%02x "),(unsigned int)(0xFF&i));
    }

...code removed that processes the memory data.
...
Title: Re: C:B SF SVN - How to trace external reference to the external SF repo URL?
Post by: ollydbg on March 28, 2022, 12:15:20 pm
Maybe put some URL in the source code?

For cbMemoryView, I guess it is here: bluehazzard/cbMemoryView (https://github.com/bluehazzard/cbMemoryView)
Title: Re: C:B SF SVN - How to trace external reference to the external SF repo URL?
Post by: BlueHazzard on March 28, 2022, 02:24:56 pm
Since when is cbMemoryView a contrib plugin? I can not find in in the SF repo? Am i missing something?
Title: Re: C:B SF SVN - How to trace external reference to the external SF repo URL?
Post by: sodev on March 28, 2022, 03:02:32 pm
SVN externals are defined in the property svn:externals. Sadly, this property can be attached to any directory of the repository, so you might need to check every directory that makes sense for this property.

I just examined the HEAD revision, i can find only two externals, FortranProject and PythonPlugins, both are defined at src/plugins/contrib. There seems to be no cbMemoryView.
Title: Re: C:B SF SVN - How to trace external reference to the external SF repo URL?
Post by: AndrewCot on March 29, 2022, 04:07:01 am
I added a bunch of plugins that I though would be usefull to my local build at the "src\plugin" directory level. Rookie mistake I know and as such I did not check against the SVN code.
I figured out I can use TortoiseSVN to find the SF repo URL by looking at the icons and when one does not look like the rest I can check out the properties.
Title: Re: C:B SF SVN - How to trace external reference to the external SF repo URL?
Post by: stahta01 on March 29, 2022, 05:24:22 am
IIRC, doing an "svn update ." will update the repository and list the external repos during the update.

Edit: Fixed grammar/word choice

Tim S.