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
> 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
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.
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
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
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2011-09-23 16:28:19 CEST