httpconnection: allow a global auth.cookiefile config entry
authorGregory Szorc <gregory.szorc@gmail.com>
Thu, 09 Mar 2017 22:35:10 -0800
changeset 31935 566cb89050b7
parent 31934 12aca6770046
child 31936 806f9a883b4f
httpconnection: allow a global auth.cookiefile config entry This foreshadows support for defining a cookies file.
mercurial/httpconnection.py
--- a/mercurial/httpconnection.py	Thu Mar 09 21:35:21 2017 -0800
+++ b/mercurial/httpconnection.py	Thu Mar 09 22:35:10 2017 -0800
@@ -69,6 +69,9 @@
     # Read configuration
     groups = {}
     for key, val in ui.configitems('auth'):
+        if key in ('cookiefile',):
+            continue
+
         if '.' not in key:
             ui.warn(_("ignoring invalid [auth] key '%s'\n") % key)
             continue