# HG changeset patch # User Jeff Sickel # Date 2013-08-12 22:44:31 # Node ID 1d50c69c1f0a6172ef8850e925a3bd0c67543d16 # Parent 4bfd3c7160d99aba3fc98abcbbf1e86cca8354f0 factotum: clean up keychain for multiple hg repository authentication diff --git a/hgext/factotum.py b/hgext/factotum.py --- a/hgext/factotum.py +++ b/hgext/factotum.py @@ -101,7 +101,7 @@ def find_user_password(self, realm, auth user, passwd = auth.get('username'), auth.get('password') if not user or not passwd: if not prefix: - prefix = '*' + prefix = realm.split(' ')[0].lower() params = 'service=%s prefix=%s' % (_service, prefix) if user: params = '%s user=%s' % (params, user)