← Back to team overview

subvertpy-users team mailing list archive

[PATCH] Add version fields to _ra for the version of Subversion compiled against

 

# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr@xxxxxxxxx>
# Date 1285247033 -7200
# Node ID de1e4e44b03054a50e6f772305f33b76aaf68057
# Parent  028e04fcf8cc408ccf56d2335c9ab94da3f8207b
Add version fields to _ra for the version of Subversion compiled against.

diff --git a/subvertpy/_ra.c b/subvertpy/_ra.c
--- a/subvertpy/_ra.c
+++ b/subvertpy/_ra.c
@@ -3367,4 +3367,10 @@ void init_ra(void)
 #ifdef SVN_VER_REVISION
 	PyModule_AddIntConstant(mod, "SVN_REVISION", SVN_VER_REVISION);
 #endif
+
+	PyModule_AddIntConstant(mod, "SVN_VER_MAJOR", SVN_VER_MAJOR);
+	PyModule_AddIntConstant(mod, "SVN_VER_MINOR", SVN_VER_MINOR);
+	PyModule_AddIntConstant(mod, "SVN_VER_PATCH", SVN_VER_PATCH);
+	PyModule_AddStringConstant(mod, "SVN_VER_TAG", SVN_VER_TAG);
+	PyModule_AddStringConstant(mod, "SVN_VER_NUMTAG", SVN_VER_NUMTAG);
 }



Follow ups