You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2012/02/07 21:32:11 UTC

svn commit: r1241600 - /subversion/trunk/tools/examples/get-location-segments.py

Author: danielsh
Date: Tue Feb  7 20:32:11 2012
New Revision: 1241600

URL: http://svn.apache.org/viewvc?rev=1241600&view=rev
Log:
Let the get-location-segments.py example pass a proper config to
svn_auth_get_platform_specific_client_providers.

This call was introduced in r1241530, but it did not properly pass a
configuration option.

* tools/examples/get-location-segments.py
  (main): Pass config to
    svn_auth_get_platform_specific_client_providers.

Modified:
    subversion/trunk/tools/examples/get-location-segments.py

Modified: subversion/trunk/tools/examples/get-location-segments.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/examples/get-location-segments.py?rev=1241600&r1=1241599&r2=1241600&view=diff
==============================================================================
--- subversion/trunk/tools/examples/get-location-segments.py (original)
+++ subversion/trunk/tools/examples/get-location-segments.py Tue Feb  7 20:32:11 2012
@@ -128,12 +128,11 @@ ERROR: %s
 
   core.svn_config_ensure(None)
   ctx = client.svn_client_create_context()
+  ctx.config = core.svn_config_get_config(None)
 
   # Make sure that these are at the start of the list, so passwords from
   # gnome-keyring / kwallet are checked before asking for new passwords.
-  # Note that we don't pass our config here, since we can't seem to access
-  # ctx.config.config (ctx.config is opaque).
-  providers = core.svn_auth_get_platform_specific_client_providers(None, None)
+  providers = core.svn_auth_get_platform_specific_client_providers(ctx.config['config'], None)
   providers.extend([
     client.get_simple_provider(),
     core.svn_auth_get_ssl_server_trust_file_provider(),
@@ -146,7 +145,6 @@ ERROR: %s
   ])
 
   ctx.auth_baton = core.svn_auth_open(providers)
-  ctx.config = core.svn_config_get_config(None)
 
   if hasattr(core, 'svn_auth_set_gnome_keyring_unlock_prompt_func'):
     core.svn_auth_set_gnome_keyring_unlock_prompt_func(ctx.auth_baton, prompt_func_gnome_keyring_prompt)