changeset 664:5c94a86ddd73

version: mention bindings type in version In addition, the version output has been rejiggered a bit to mention the version of hgsubversion first. While at it, `svn' is changed to `Subversion', as this is its the proper name. Before: % hg version --svn ... svn bindings: 1.6.12 hgsubversion: 1.1.2+45-123ac53a6343 After: % hg version --svn ... hgsubversion: 1.1.2+45-123ac53a6343 Subversion: 1.6.12 bindings: SWIG
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Wed, 11 Aug 2010 19:57:34 +0200
parents 1086bd6f6aa4
children b5a231695329
files hgsubversion/svnwrap/svn_swig_wrapper.py hgsubversion/wrappers.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svnwrap/svn_swig_wrapper.py
+++ b/hgsubversion/svnwrap/svn_swig_wrapper.py
@@ -34,7 +34,7 @@ if current_bindings < required_bindings:
                       (required_bindings + current_bindings))
 
 def version():
-    return '%d.%d.%d' % current_bindings
+    return '%d.%d.%d' % current_bindings, 'SWIG'
 
 class SubversionRepoCanNotReplay(Exception):
     """Exception raised when the svn server is too old to have replay.
--- a/hgsubversion/wrappers.py
+++ b/hgsubversion/wrappers.py
@@ -31,8 +31,11 @@ def version(orig, ui, *args, **opts):
     svn = opts.pop('svn', None)
     orig(ui, *args, **opts)
     if svn:
-        ui.status('\nsvn bindings: %s\n' % svnwrap.version())
+        svnversion, bindings = svnwrap.version()
+        ui.status('\n')
         ui.status('hgsubversion: %s\n' % util.version(ui))
+        ui.status('Subversion: %s\n' % svnversion)
+        ui.status('bindings: %s\n' % bindings)
 
 
 def parents(orig, ui, repo, *args, **opts):