Rev 885: Support using platform-specific auth providers when available. in file:///data/jelmer/bzr-svn/0.4.8/

Jelmer Vernooij jelmer at samba.org
Tue Mar 11 17:12:13 GMT 2008


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

------------------------------------------------------------
revno: 885
revision-id:jelmer at samba.org-20080311171204-azsnckdest9kjmzj
parent: jelmer at samba.org-20080311171054-x5br3r07r8v3s845
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4.8
timestamp: Tue 2008-03-11 18:12:04 +0100
message:
  Support using platform-specific auth providers when available.
modified:
  NEWS                           news-20061231030336-h9fhq245ie0de8bs-1
  transport.py                   transport.py-20060406231150-b3472d06b3a0818d
=== modified file 'NEWS'
--- a/NEWS	2008-03-11 17:10:54 +0000
+++ b/NEWS	2008-03-11 17:12:04 +0000
@@ -8,6 +8,8 @@
 
    * Allow specifying path inside repository in svn-branching-scheme. (#190331)
 
+   * Support using platform-specific auth providers when available.
+
   FEATURES
 
    * Add progress bar to fetch initialization code. 

=== modified file 'transport.py'
--- a/transport.py	2007-12-21 21:41:29 +0000
+++ b/transport.py	2008-03-11 17:12:04 +0000
@@ -54,6 +54,15 @@
         svn.client.get_ssl_server_trust_file_provider(pool),
         ]
 
+    if hasattr(svn.client, 'get_windows_simple_provider'):
+        providers.append(svn.client.get_windows_simple_provider(pool))
+
+    if hasattr(svn.client, 'get_keychain_simple_provider'):
+        providers.append(svn.client.get_keychain_simple_provider(pool))
+
+    if hasattr(svn.client, 'get_windows_ssl_server_trust_provider'):
+        providers.append(svn.client.get_windows_ssl_server_trust_provider(pool))
+
     return svn.core.svn_auth_open(providers, pool)
 
 




More information about the bazaar-commits mailing list