convert: support windows SVN simple auth provider
authorPatrick Mezard <pmezard@gmail.com>
Thu, 02 Aug 2007 23:38:32 +0200
changeset 5126 117dab48ca99
parent 5125 90be02035993
child 5127 39b6eaee6fd7
convert: support windows SVN simple auth provider
hgext/convert/transport.py
--- a/hgext/convert/transport.py	Mon Aug 06 20:31:15 2007 +0200
+++ b/hgext/convert/transport.py	Thu Aug 02 23:38:32 2007 +0200
@@ -47,6 +47,10 @@
         svn.client.get_ssl_client_cert_pw_file_provider(pool),
         svn.client.get_ssl_server_trust_file_provider(pool),
         ]
+    # Platform-dependant authentication methods
+    if hasattr(svn.client, 'get_windows_simple_provider'):
+        providers.append(svn.client.get_windows_simple_provider(pool))
+
     return svn.core.svn_auth_open(providers, pool)
 
 class NotBranchError(SubversionException):