aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/svn_version/__svn_version.pyx
diff options
context:
space:
mode:
authorspreis <spreis@yandex-team.ru>2022-05-04 16:07:57 +0300
committerspreis <spreis@yandex-team.ru>2022-05-04 16:07:57 +0300
commit2bf267dc25ea20521a562ebca8bf5c57af7be290 (patch)
treef07850976fccf00bd42d90be15c12576eee3b0cf /library/python/svn_version/__svn_version.pyx
parent4b3463e0a8c1b2c11eb8cd38f359e554f63e7a33 (diff)
downloadydb-2bf267dc25ea20521a562ebca8bf5c57af7be290.tar.gz
Introduce method to get vcs in library/python/svn_version
ref:3cdcb0b0558a4896ab20082ec37672275dfe59b9
Diffstat (limited to 'library/python/svn_version/__svn_version.pyx')
-rw-r--r--library/python/svn_version/__svn_version.pyx4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/python/svn_version/__svn_version.pyx b/library/python/svn_version/__svn_version.pyx
index d66bc09d24..95f74f525e 100644
--- a/library/python/svn_version/__svn_version.pyx
+++ b/library/python/svn_version/__svn_version.pyx
@@ -1,6 +1,7 @@
import future.utils as fu
cdef extern from "library/cpp/svnversion/svnversion.h":
+ cdef const char* GetVCS() except +;
cdef const char* GetProgramSvnVersion() except +;
cdef int GetProgramSvnRevision() except +;
cdef int GetArcadiaLastChangeNum() except +;
@@ -33,3 +34,6 @@ def svn_tag():
def patch_number():
return GetArcadiaPatchNumber()
+
+def vcs():
+ return fu.bytes_to_native_str(GetVCS())