On Fri, Sep 23, 2011 at 4:28 PM, Mark Phippard <markphip_at_gmail.com> wrote:
> On Fri, Sep 23, 2011 at 10:21 AM, Johan Corveleyn <jcorvel_at_gmail.com> wrote:
>
>> We have noticed, on our (Solaris) build machine, that certain svn
>> requests (log, info, mergeinfo, ...) are much faster when using the
>> serf library. So in some of my python scripts I use "--config-option
>> servers:global:http-library=serf" to speed up those calls. I can't set
>> it globally in ~/.subversion/servers, because I can't use serf for
>> checkout and update, because it hangs or crashes sometimes. Only for
>> those specific subcommands like log, info and mergeinfo.
>>
>> I'd like to do the same with our ant scripts where we use svnant. Is
>> it possible to pass a --config-option somehow to a specific svnant
>> call?
>>
>> If not, would that make a sensible feature request for svnant?
>
> The problem is that this feature only exists on the command line. So
> one option would be to use an ant exec task instead of svnant for
> those requests.
>
> svnant uses svnClientAdapter as a wrapper for JavaHL etc. The JavaHL
> API does not have access to this feature of the command line so there
> is no way to expose it in svnClientAdapter.
Is it just impossible for JavaHL to expose this, or is it a matter of
"nobody needed this until now, and someone just needs to do it", in
which case maybe I should ask about this on the svn-dev mailinglist
(or file a feature request there)?
> I do not know if svnant exposes it or not, but you can do the
> equivalent of --config-dir=/foo using svnClientAdapter. If this were
> exposed in svnant, then you could have a special SVN configuration
> directory that was configured for serf and use that when you want serf
> and use the default, or a special one for neon when you want to use
> Neon.
Thanks, that's good to know. Unfortunately, AFAICS svnant does not
expose config-dir. So I filed a feature request for this:
http://subclipse.tigris.org/issues/show_bug.cgi?id=1307
> Of course another option would be to simply have your Ant script edit
> the ~/.subversion/servers file before calling the SVN API. For
> example, you could simply have a servers-serf and servers-neon file in
> ~/.subversion and do a simple Ant file copy before you call the svnant
> task.
Hm, thanks for the suggestion, but I'm afraid I can't use that
workaround, because it's not "thread-safe". I might be running two
builds for two different applications at the same time on this server.
Thanks,
--
Johan
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2845734
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2011-09-26 10:37:24 CEST