开发者

How to configure Netbeans subversion for large project with many svn:externals

开发者 https://www.devze.com 2023-03-01 04:18 出处:网络
In a project, we have several svn:includes to pull in the framework and some 3rd-party plugins. Because the framework (Symfony) itself includes numerous other nested libraries via svn:externals, it ca

In a project, we have several svn:includes to pull in the framework and some 3rd-party plugins. Because the framework (Symfony) itself includes numerous other nested libraries via svn:externals, it can take a long time for NetBeans to finish its background job of automatic "Scanning Projects". It sometimes gets completely stuck while doing the "Checking for external changes" part.

I have tried to work around this by disabling the "Scan for external changes" but that seems to only reduce the frequency of the problem while introducing new inconveniences rather than solve it.

I'm hoping that someone knows开发者_JAVA百科 a way to tell the SVN scan to ONLY look at OUR repository for changes (which should only take a couple of seconds), not the nested external repositories. Similar to using the CLI svn update --ignore-externals command.

Background: Running NetBeans 6.9.1 on OS X 10.6.


You can add --ignore-externals to many svn subcommands, like svn update --ignore-externals or svn st --ignore-externals but you will have to see how you can make Netbeans do that as it has it's own svn client.

You can make Netbeans make use of commandline svn by using the following switch though:

-J-DsvnClientAdapterFactory=commandline

http://wiki.netbeans.org/FaqSvnCli

But beyond that I do not have much knowledge of svn / netbeans to enforce this. One thing I had done in Windows with TortoiseGit was to point TortoiseGit to a git.cmd and do some processing there, and then make git.cmd call git.exe from msysgit. You can probably try that. Set path to some other script that you have control which will then call svn binary,something like below?

#!/bin/bash
svn $* --ignore-externals

and name it svn and make it executable and put it in path perhaps.

( make it check if the subcommand is update or status and then add the --ignore-externals if needed, as Netbeans I think just parses the output from svn command line client and an additional output of Subcommand doesn't accept --ignore-externals may screw up its processing )

Yeah, not a solid answer, but I wrote down my thought process.

0

精彩评论

暂无评论...
验证码 换一张
取 消