[PATCH 3 of 6] factotum: clean up keychain for multiple hg repository authentication

Jeff Sickel jas at corpus-callosum.com
Mon Aug 12 18:01:09 CDT 2013


# HG changeset patch
# User Jeff Sickel <jas at corpus-callosum.com>
# Date 1376347471 18000
#      Mon Aug 12 17:44:31 2013 -0500
# Branch stable
# Node ID c92381647a5b63b85355bf62a60df8d13fc5f858
# Parent  c0fa3b1baa4c1fc968390c37400b08314808d115
factotum: clean up keychain for multiple hg repository authentication

diff -r c0fa3b1baa4c -r c92381647a5b hgext/factotum.py
--- a/hgext/factotum.py	Mon Aug 12 17:39:55 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)


More information about the Mercurial-devel mailing list