Rev 1376: Implement pyify_lock. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4

Jelmer Vernooij jelmer at samba.org
Sun Jun 29 04:20:08 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/0.4

------------------------------------------------------------
revno: 1376
revision-id: jelmer at samba.org-20080629032007-ufv3bon4atf0tah6
parent: jelmer at samba.org-20080629024613-z1ktz75ujls54u31
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Sun 2008-06-29 05:20:07 +0200
message:
  Implement pyify_lock.
modified:
  ra.c                           ra.pyx-20080313140933-qybkqaxe3m4mcll7-1
=== modified file 'ra.c'
--- a/ra.c	2008-06-28 01:53:01 +0000
+++ b/ra.c	2008-06-29 03:20:07 +0000
@@ -56,7 +56,12 @@
 
 static PyObject *pyify_lock(const svn_lock_t *lock)
 {
-    Py_RETURN_NONE; /* FIXME */
+	return Py_BuildValue("(ssszbLL)", 
+						 lock->path, lock->token, 
+						 lock->owner, lock->comment,
+						 lock->is_dav_comment,
+						 lock->creation_date,
+						 lock->expiration_date);
 }
 
 static svn_error_t *py_lock_func (void *baton, const char *path, int do_lock, 
@@ -71,6 +76,7 @@
     ret = PyObject_CallFunction((PyObject *)baton, "zbOO", path, do_lock, 
 						  py_lock, py_ra_err);
 	Py_DECREF(py_lock);
+	Py_DECREF(py_ra_err);
 	if (ret == NULL)
 		return py_svn_error();
 	Py_DECREF(ret);




More information about the bazaar-commits mailing list