[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: Aditya Gandhi <agandhi_at_sapient.com>
Date: 2004-06-28 17:34:51 CEST

Hi Garrett,
Thanks for your response..

I am fairly new to subversion and I do not think I have understood all
that you have said..

It will be great if you can elaborate on some of the point below to help
me understand this better
- What is a client interface / RA.. I thought these python scripts were
client side bindings ..
- Is there different API that I need to use if I am mentioning URLs?
- I will be using these APIs on a client machine and the only access
method open to my repository is https:// .. so based on this what API/
binding will I have to use..
- My aim is to get the log message for a set of files/ folders and then
process them... Right now I am just focusing on the first step - get the
logs. .. as I mentioned this script will run on the client side
therefore what APIS do you suggest
- Are there any samples available for the same?

Thanks once again for your response.

- Aditya Gandhi

  -----Original Message-----
  From: Garrett Rooney [mailto:rooneg@gmail.com]
  Sent: Monday, June 28, 2004 8:56 PM
  To: Aditya Gandhi
  Cc: Max Bowsher; users@subversion.tigris.org
  Subject: Re: sample python scripts to get logs from the repository
  On Mon, 28 Jun 2004 20:46:25 +0530, Aditya Gandhi
> 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
> , line 310, in RunScript
> exec codeObject in __main__.__dict__
> File "D:\SVNCheckoutFolder\OnStage\test-ag-svn2\trunk\test.py",
> 61, in ?
> File "D:\SVNCheckoutFolder\OnStage\test-ag-svn2\trunk\test.py",
> 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

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:39:39 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.