aboutsummaryrefslogtreecommitdiff
path: root/python/version_spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/version_spec.cc')
-rw-r--r--python/version_spec.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/version_spec.cc b/python/version_spec.cc
index b96095e..2581427 100644
--- a/python/version_spec.cc
+++ b/python/version_spec.cc
@@ -58,6 +58,16 @@ void expose_version_spec()
"Are we an -scm package, or something pretending to be one?"
)
+ .add_property("has_scm_part", &VersionSpec::has_scm_part,
+ "[ro] bool\n"
+ "Do we have an -scm part?"
+ )
+
+ .add_property("has_try_part", &VersionSpec::has_try_part,
+ "[ro] bool\n"
+ "Do we have a -try part?"
+ )
+
.def("remove_revision", &VersionSpec::remove_revision,
"remove_revision() -> VersionSpec\n"
"Remove the revision part."