/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Aaron Bentley
  • Date: 2008-10-16 18:26:57 UTC
  • mto: (3777.1.13 launchpad-login)
  • mto: This revision was merged to the branch mainline in revision 3783.
  • Revision ID: aaron@aaronbentley.com-20081016182657-1xi0vmda0iffc2g8
Update docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1066
1066
 
1067
1067
    def set_credentials(self, name, host, user, password=None, scheme=None,
1068
1068
                        port=None, path=None, verify_certificates=None):
 
1069
        """Set authentication credentials for a host.
 
1070
 
 
1071
        Any existing credentials with matching scheme, host, port and path
 
1072
        will be deleted, regardless of name.
 
1073
 
 
1074
        :param name: An arbitrary name to describe this set of credentials.
 
1075
        :param host: Name of the host that accepts these credentials.
 
1076
        :param user: The username portion of these credentials.
 
1077
        :param password: Password portion of these credentials.
 
1078
        :param scheme: The URL scheme (e.g. ssh, http) the credentials apply
 
1079
            to.
 
1080
        :param port: The IP port on the host that these credentials apply to.
 
1081
        :param path: A filesystem path on the host that these credentials
 
1082
            apply to.
 
1083
        :param verify_certificates: On https, verify server certificates if
 
1084
            True.
 
1085
        """
1069
1086
        values = {'host': host, 'user': user}
1070
1087
        if password is not None:
1071
1088
            values['password'] = password