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

Re: sample python scripts to get logs from the repository

From: Garrett Rooney <rooneg_at_gmail.com>
Date: 2004-06-28 17:25:44 CEST

On Mon, 28 Jun 2004 20:46:25 +0530, Aditya Gandhi <agandhi@sapient.com> wrote:

> Note: I also tried a stripped down version of code...
> ----------------------------------------------------------------
> # Initialize APR and get a POOL.
> core.apr_initialize()
> try:
> pool = core.svn_pool_create(None)
> try:
> repos.svn_repos_open("http://svn.collab.net/repos/svn/trunk/",
> pool)
> finally:
> # Cleanup our POOL, and shut down APR.
> core.svn_pool_destroy(pool)
> finally:
> core.apr_terminate()
> ----------------------------------------------------------------------
> In this case I got the following error
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "C:\Python23\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py"
> , line 310, in RunScript
> exec codeObject in __main__.__dict__
> File "D:\SVNCheckoutFolder\OnStage\test-ag-svn2\trunk\test.py", line
> 61, in ?
> File "D:\SVNCheckoutFolder\OnStage\test-ag-svn2\trunk\test.py", line
> 53, in func3
> core.svn_pool_destroy(pool)
> SystemError: null argument to internal routine

svn_repos_open expects a path to a repository on disk, not a URL. to
use a URL to refer to a repository you need to use the RA or client
interfaces.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 28 17:28:02 2004

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

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