diff hgsubversion/wrappers.py @ 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 9cf547fc36e8
children a45365f1492a
line wrap: on
line diff
--- 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):