changeset 19614:1d50c69c1f0a

factotum: clean up keychain for multiple hg repository authentication
author Jeff Sickel <jas@corpus-callosum.com>
date Mon, 12 Aug 2013 17:44:31 -0500
parents 4bfd3c7160d9
children 77d434760857
files hgext/factotum.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/factotum.py	Mon Aug 12 17:36:49 2013 -0500
+++ b/hgext/factotum.py	Mon Aug 12 17:44:31 2013 -0500
@@ -101,7 +101,7 @@
         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)