diff -r 2c019aac6b99 -r fea71f66ebff mercurial/ui.py --- a/mercurial/ui.py Sun Jun 05 23:36:23 2016 +0200 +++ b/mercurial/ui.py Thu Jun 09 11:41:36 2016 +0200 @@ -29,6 +29,8 @@ util, ) +urlreq = util.urlreq + samplehgrcs = { 'user': """# example user config (see "hg help config" for more info) @@ -124,6 +126,8 @@ self.callhooks = src.callhooks self.insecureconnections = src.insecureconnections self.fixconfig() + + self.httppasswordmgrdb = src.httppasswordmgrdb else: self.fout = sys.stdout self.ferr = sys.stderr @@ -135,6 +139,8 @@ for f in scmutil.rcpath(): self.readconfig(f, trust=True) + self.httppasswordmgrdb = urlreq.httppasswordmgrwithdefaultrealm() + def copy(self): return self.__class__(self) @@ -142,6 +148,7 @@ """Clear internal state that shouldn't persist across commands""" if self._progbar: self._progbar.resetstate() # reset last-print time of progress bar + self.httppasswordmgrdb = urlreq.httppasswordmgrwithdefaultrealm() def formatter(self, topic, opts): return formatter.formatter(self, topic, opts)