Rev 1310: Fix typos in auth.py. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4

Jelmer Vernooij jelmer at samba.org
Mon Jun 23 04:59:03 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/0.4

------------------------------------------------------------
revno: 1310
revision-id: jelmer at samba.org-20080623035902-7p0sxm1myp2v9p7d
parent: jelmer at samba.org-20080623034400-l7ia3f27u0ddqnpb
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Mon 2008-06-23 05:59:02 +0200
message:
  Fix typos in auth.py.
modified:
  auth.py                        auth.py-20071209174622-w8d42k6nm5yhxvi8-1
=== modified file 'auth.py'
--- a/auth.py	2008-06-23 03:09:11 +0000
+++ b/auth.py	2008-06-23 03:59:02 +0000
@@ -50,6 +50,7 @@
         :param realm: Authentication realm (optional)
         :param may_save: Whether or not the username should be saved.
         """
+        mutter("Obtaining username for SVN connection")
         username = self.get_user(self.scheme, host=self.host, path=self.path, realm=realm)
         return (username, False)
 
@@ -61,11 +62,12 @@
         :param username: Username, if it is already known, or None.
         :param may_save: Whether or not the username should be saved.
         """
+        mutter("Obtaining username and password for SVN connection")
         username = self.get_user(self.scheme, 
                 host=self.host, path=self.path, realm=realm) or username
         password = self.get_password(self.scheme, host=self.host, 
-            path=self.path, user=simple_cred.username, 
-            realm=realm, prompt="%s %s password" % (realm, simple_cred.username))
+            path=self.path, user=username, 
+            realm=realm, prompt="%s %s password" % (realm, username))
         return (username, password, False)
 
     def get_svn_ssl_server_trust(self, realm, failures, cert_info, may_save):




More information about the bazaar-commits mailing list