Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: [Subclipse-users] Is it possible to pass --config-options to svnant?

subclipse
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Back to topic list

Re: [Subclipse-users] Is it possible to pass --config-options to svnant?

Author jcorvel
Full name Johan Corveleyn
Date 2011-09-26 01:37:17 PDT
Message On Fri, Sep 23, 2011 at 4:28 PM, Mark Phippard <markphip at gmail dot com> wrote:
> On Fri, Sep 23, 2011 at 10:21 AM, Johan Corveleyn <jcorvel at gmail dot 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.tig​ris.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

« Previous message in topic | 3 of 4 | Next message in topic »

Messages

Show all messages in topic

[Subclipse-users] Is it possible to pass --config-options to svnant? jcorvel Johan Corveleyn 2011-09-23 07:21:51 PDT
     Re: [Subclipse-users] Is it possible to pass --config-options to svnant? markphip Mark Phippard 2011-09-23 07:28:12 PDT
         Re: [Subclipse-users] Is it possible to pass --config-options to svnant? jcorvel Johan Corveleyn 2011-09-26 01:37:17 PDT
             Re: [Subclipse-users] Is it possible to pass --config-options to svnant? markphip Mark Phippard 2011-09-26 04:31:54 PDT
Messages per page: