mercurial/url.py
branchstable
changeset 10534 a957038218cd
parent 10511 6f61c480f51c
child 10539 fc5908d01ed7
--- a/mercurial/url.py	Tue Feb 23 23:19:09 2010 +0100
+++ b/mercurial/url.py	Tue Feb 23 22:31:54 2010 +0100
@@ -140,6 +140,9 @@
         # Read configuration
         config = dict()
         for key, val in self.ui.configitems('auth'):
+            if '.' not in key:
+                self.ui.warn(_("ignoring invalid [auth] key '%s'\n" % key))
+                continue
             group, setting = key.split('.', 1)
             gdict = config.setdefault(group, dict())
             gdict[setting] = val