Rev 820: Add client string function for future use with svn_ra_callbacks2_t().get_client_string. in file:///data/jelmer/bzr-svn/0.4/

Jelmer Vernooij jelmer at samba.org
Fri Jan 18 04:05:51 GMT 2008


At file:///data/jelmer/bzr-svn/0.4/

------------------------------------------------------------
revno: 820
revision-id:jelmer at samba.org-20071221214129-9ue7q2ip43zlixbo
parent: jelmer at samba.org-20071221213758-rg5xpgdfe7ny43v1
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2007-12-21 22:41:29 +0100
message:
  Add client string function for future use with svn_ra_callbacks2_t().get_client_string.
modified:
  transport.py                   transport.py-20060406231150-b3472d06b3a0818d
=== modified file 'transport.py'
--- a/transport.py	2007-12-15 02:03:38 +0000
+++ b/transport.py	2007-12-21 21:41:29 +0000
@@ -30,6 +30,10 @@
 
 svn_config = svn.core.svn_config_get_config(None)
 
+def get_client_string():
+    """Return a string that can be send as part of the User Agent string."""
+    return "bzr%s+bzr-svn%s" % (bzrlib.__version__, bzrlib.plugins.svn.__version__)
+
 
 def _create_auth_baton(pool):
     """Create a Subversion authentication baton. """




More information about the bazaar-commits mailing list