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

Re: Learning the Python API - early questions

From: Russell Yanofsky <rey4_at_columbia.edu>
Date: 2003-10-14 23:36:28 CEST

Barry Scott wrote:
> ...
> But status looks like it will not work until we wrap the status func.
>
> TypeError: Type error. Expected _p_svn_wc_status_func_t
>
> Here is the code I'm testing with:
> ..

This should be fixed in revision 7349. You don't get to use the baton,
though, so you need the following change:

--- test.py Wed Oct 08 00:32:50 2003
+++ test.py.fix1 Wed Oct 08 01:38:24 2003
@@ -21,7 +21,6 @@
              path, # const char *path,
              None, # svn_opt_revision_t *revision,
              status_func, # svn_wc_status_func_t status_func,
- None, # void *status_baton,
              0, # svn_boolean_t descend,
              0, # svn_boolean_t get_all,
              0, # svn_boolean_t update,
@@ -34,8 +33,7 @@

      return 0

-def status_func( baton, path, status ):
- print 'baton:', repr(baton)
+def status_func( path, status ):
      print 'path:',repr(path)
      print 'status:',repr(status)

- Russ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 15 00:11:26 2003

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.