[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: RFE: svn_client_ls() should return locking info

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-04-30 18:54:26 CEST

Greg Hudson wrote:
> On Sat, 2005-04-30 at 10:47, SteveKing wrote:
>
>>It would be a little bit faster. If you call svn_ra_get_locks() inside
>>svn_client_ls3(), then you can reuse, the ra session.
>
>
> Here's an interesting idea for a Subversion enhancement: add an RA
> session (and a subpool to manage it) to the client context.
> svn_client_* functions would use the session if it's valid, and would
> only be allowed to leave it valid if they leave it in the top-level
> command state.
>
> Perhaps this behavior would need to be conditional (in 1.x) on the app
> setting a flag, since it might be undesirable for apps to suddenly have
> a lot of long-lived connections to the server.

Interesting idea. I thought of a similar approach: make every
svn_client_* function take a session as a param. Then add an
svn_client_opensession() and svn_client_closesession(). That way, each
client can decide itself how long a session should be used and for what.
Maybe those API's could just behave as they do now if the session param
is NULL.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Apr 30 18:55:15 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.