# HG changeset patch # User Vadim Gelfer # Date 1150477379 25200 # Node ID 1b2bbb2b49116c7c53cc199f4aeba9444c292037 # Parent e58889a9d3785ee53f4e3d2ba55edb6698e47097 httprepo: fix small bug in authentication. diff --git a/mercurial/httprepo.py b/mercurial/httprepo.py --- a/mercurial/httprepo.py +++ b/mercurial/httprepo.py @@ -23,7 +23,7 @@ class passwordmgr(urllib2.HTTPPasswordMg if authinfo != (None, None): return authinfo - if not ui.interactive: + if not self.ui.interactive: raise util.Abort(_('http authorization required')) self.ui.write(_("http authorization required\n"))