Hi,
Trying to do some basic timing measurements, I wrote the following Python
code:
---------------------------------------------------------------------------
...
def main(pool, url):
revision = svn.core.svn_opt_revision_t()
revision.kind = svn.core.svn_opt_revision_head
config = svn.core.svn_config_get_config( None, pool )
ctx = svn.client.svn_client_create_context(pool)
ctx.auth_baton = svn.core.svn_auth_open([], pool)
ctx.config = config
for i in range(10000):
print i
files = svn.client.svn_client_ls( url, revision, 0, ctx, pool )
...
---------------------------------------------------------------------------
Running this program always gives the following output:
---------------------------------------------------------------------------
...
1015
1016
1017
1018
Traceback (most recent call last):
File "./svnls", line 34, in ?
svn.core.run_app(main, sys.argv[1])
File "/usr/lib/python2.3/site-packages/svn/core.py", line 33, in run_app
return apply(func, (pool,) + args, kw)
File "./svnls", line 16, in main
files = svn.client.svn_client_ls( url, revision, 0, ctx, pool )
libsvn._core.SubversionException: ('Unable to open an ra_local session to
URL', 180001)
---------------------------------------------------------------------------
Why does it fail at the 1020th call? Is it an anti-hacker feature, is my code
wrong, or is it *gasp* a bug? Where does that magic 1020 number come from?
Thanks!
PS. Complete test program is attached.
--
Simon Perreault <nomis80_at_nomis80.org> -- http://nomis80.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
- application/x-python attachment: svnls
Received on Thu Feb 17 00:49:23 2005