Rev 1493: use svn_revnum_t rather than long. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk

Jelmer Vernooij jelmer at samba.org
Wed Jul 23 02:48:27 BST 2008


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

------------------------------------------------------------
revno: 1493
revision-id: jelmer at samba.org-20080723014826-cmhkjswah5grzwug
parent: jelmer at samba.org-20080723004804-ix01c0x2a7dccg0e
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Wed 2008-07-23 03:48:26 +0200
message:
  use svn_revnum_t rather than long.
modified:
  editor.c                       editor.c-20080602191336-frj7az1sdk13o1tw-1
  ra.c                           ra.pyx-20080313140933-qybkqaxe3m4mcll7-1
  util.c                         util.c-20080531154025-s8ef6ej9tytsnkkw-1
  wc.c                           wc.pyx-20080313142018-10l8l23vha2j9e6b-1
=== modified file 'editor.c'
--- a/editor.c	2008-07-01 23:36:39 +0000
+++ b/editor.c	2008-07-23 01:48:26 +0000
@@ -398,7 +398,7 @@
 static PyObject *py_dir_editor_add_file(PyObject *self, PyObject *args)
 {
 	char *path, *copy_path=NULL;
-	long copy_rev=-1;
+	svn_revnum_t copy_rev=-1;
 	void *file_baton = NULL;
 	EditorObject *editor = (EditorObject *)self;
 

=== modified file 'ra.c'
--- a/ra.c	2008-07-04 20:32:31 +0000
+++ b/ra.c	2008-07-23 01:48:26 +0000
@@ -299,7 +299,7 @@
 	return NULL;
 }
 
-static svn_error_t *py_cb_editor_delete_entry(const char *path, long revision, void *parent_baton, apr_pool_t *pool)
+static svn_error_t *py_cb_editor_delete_entry(const char *path, svn_revnum_t revision, void *parent_baton, apr_pool_t *pool)
 {
 	PyObject *self = (PyObject *)parent_baton, *ret;
 	ret = PyObject_CallMethod(self, "delete_entry", "sl", path, revision);
@@ -309,7 +309,7 @@
 	return NULL;
 }
 
-static svn_error_t *py_cb_editor_add_directory(const char *path, void *parent_baton, const char *copyfrom_path, long copyfrom_revision, apr_pool_t *pool, void **child_baton)
+static svn_error_t *py_cb_editor_add_directory(const char *path, void *parent_baton, const char *copyfrom_path, svn_revnum_t copyfrom_revision, apr_pool_t *pool, void **child_baton)
 {
 	PyObject *self = (PyObject *)parent_baton, *ret;
 	*child_baton = NULL;
@@ -324,7 +324,7 @@
 	return NULL;
 }
 
-static svn_error_t *py_cb_editor_open_directory(const char *path, void *parent_baton, long base_revision, apr_pool_t *pool, void **child_baton)
+static svn_error_t *py_cb_editor_open_directory(const char *path, void *parent_baton, svn_revnum_t base_revision, apr_pool_t *pool, void **child_baton)
 {
 	PyObject *self = (PyObject *)parent_baton, *ret;
 	*child_baton = NULL;
@@ -371,7 +371,7 @@
 	return NULL;
 }
 
-static svn_error_t *py_cb_editor_add_file(const char *path, void *parent_baton, const char *copy_path, long copy_revision, apr_pool_t *file_pool, void **file_baton)
+static svn_error_t *py_cb_editor_add_file(const char *path, void *parent_baton, const char *copy_path, svn_revnum_t copy_revision, apr_pool_t *file_pool, void **file_baton)
 {
 	PyObject *self = (PyObject *)parent_baton, *ret;
 	if (copy_path == NULL) {
@@ -386,7 +386,7 @@
 	return NULL;
 }
 
-static svn_error_t *py_cb_editor_open_file(const char *path, void *parent_baton, long base_revision, apr_pool_t *file_pool, void **file_baton)
+static svn_error_t *py_cb_editor_open_file(const char *path, void *parent_baton, svn_revnum_t base_revision, apr_pool_t *file_pool, void **file_baton)
 {
 	PyObject *self = (PyObject *)parent_baton, *ret;
 	ret = PyObject_CallMethod(self, "open_file", "sl", path, base_revision);

=== modified file 'util.c'
--- a/util.c	2008-07-04 04:46:58 +0000
+++ b/util.c	2008-07-23 01:48:26 +0000
@@ -199,7 +199,7 @@
 }
 #endif
 
-svn_error_t *py_svn_log_wrapper(void *baton, apr_hash_t *changed_paths, long revision, const char *author, const char *date, const char *message, apr_pool_t *pool)
+svn_error_t *py_svn_log_wrapper(void *baton, apr_hash_t *changed_paths, svn_revnum_t revision, const char *author, const char *date, const char *message, apr_pool_t *pool)
 {
 	PyObject *revprops, *py_changed_paths, *ret;
 

=== modified file 'wc.c'
--- a/wc.c	2008-07-08 00:57:39 +0000
+++ b/wc.c	2008-07-23 01:48:26 +0000
@@ -31,7 +31,7 @@
 
 static PyObject *py_entry(const svn_wc_entry_t *entry);
 
-static svn_error_t *py_ra_report_set_path(void *baton, const char *path, long revision, int start_empty, const char *lock_token, apr_pool_t *pool)
+static svn_error_t *py_ra_report_set_path(void *baton, const char *path, svn_revnum_t revision, int start_empty, const char *lock_token, apr_pool_t *pool)
 {
 	PyObject *self = (PyObject *)baton, *py_lock_token, *ret;
 	if (lock_token == NULL) {
@@ -54,7 +54,7 @@
 	return NULL;
 }
 
-static svn_error_t *py_ra_report_link_path(void *report_baton, const char *path, const char *url, long revision, int start_empty, const char *lock_token, apr_pool_t *pool)
+static svn_error_t *py_ra_report_link_path(void *report_baton, const char *path, const char *url, svn_revnum_t revision, int start_empty, const char *lock_token, apr_pool_t *pool)
 {
 	PyObject *self = (PyObject *)report_baton, *ret, *py_lock_token;
 	if (lock_token == NULL) {




More information about the bazaar-commits mailing list