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

RE: client side python APIs to access repos over https

From: Aditya Gandhi <agandhi_at_sapient.com>
Date: 2004-06-30 16:34:09 CEST

Hi Ben,
Thanks for this info.

I have also been trying some of this however it does not seem to have
worked.

I have two questions.
1. What API needs to be used to login (https access). Do we have any
sample scripts available for the same?
2. I am not able to use the svn_client_log method. Do we have some
examples available for the same? In case examples are not available if
somebody can help me complete / correct the code below that will be
great

--------------------------------------------
import sys
from svn import client, core

def TryLog():
  
  print("this is start of testing")

  # Initialize APR and get a POOL.
  core.apr_initialize()
  try:
    pool = core.svn_pool_create(None)

    try:
      src_url = "http://svn.collab.net/repos/svn/trunk/"
      _start_rev = core.svn_opt_revision_t()
      _start_rev.kind = core.svn_opt_revision_head
      _start_rev.number = 1
      _end_rev = core.svn_opt_revision_t()
      _end_rev.kind = core.svn_opt_revision_head
      _end_rev.number = 5
   
      client.svn_client_log(src_url, _start_rev, _end_rev, True, False,
\
        None, None, None, pool )
    finally:
      # Cleanup our POOL, and shut down APR.
      core.svn_pool_destroy(pool)
  finally:
    core.apr_terminate()

TryLog()
---------------------------------------

Regards
- Aditya Gandhi

  -----Original Message-----
  From: Ben Collins-Sussman [mailto:sussman@collab.net]
  Sent: Wednesday, June 30, 2004 7:23 PM
  To: Aditya Gandhi
  Cc: users@subversion.tigris.org
  Subject: Re: client side python APIs to access repos over https
  
  On Wed, 2004-06-30 at 05:56, Aditya Gandhi wrote:
  
> Can the group guide me as to what kinds of client side APIs are
> available for the same. I would prefer if the APIs are in python.
> Once I get these APIs do we also have a framework/ samples available
for
> the same (https access from svn clients)
  
  Sounds like you want the svn_client_log() function, which lives in
  svn_client.h, along with all the other main client APIs. That same
API
  should be available in python too, via the swig-python bindings.
  
  The array of 'targets' passed to that function can be either working
  copy objects or URLs. In your case, you would just pass an https://
URL
  in that array.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 30 16:44:35 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.