Show More
@@ -90,11 +90,22 b' def find_user_password(self, realm, auth' | |||
|
90 | 90 | parsed_url = urlparse(authuri) |
|
91 | 91 | base_url = "%s://%s%s" % (parsed_url.scheme, parsed_url.netloc, parsed_url.path) |
|
92 | 92 | |
|
93 | # Problem: self.ui describes the *remote* repository, therefore | |
|
94 | # does *not* contain options from local .hg/hgrc. No way | |
|
95 | # to read options from [auth] (username!) using self.ui. | |
|
96 | ||
|
97 | ||
|
93 | 98 | #from mercurial import commands, hg |
|
94 | 99 | #commands.showconfig(self.ui, hg.repository(self.ui, '.')) |
|
100 | #for section, name, value in self.ui.walkconfig(): | |
|
101 | # if not section in [ "merge-tools", "extensions" ]: | |
|
102 | # print "cfg", section, name, value | |
|
95 | 103 | |
|
96 | for section, name, value in self.ui.walkconfig(): | |
|
97 | print "cfg", section, name, value | |
|
104 | print "self", self.__dict__ | |
|
105 | print "self.ui", self.ui.__dict__ | |
|
106 | print "self.ui._tcfg", self.ui._tcfg.__dict__ | |
|
107 | print "self.ui._ocfg", self.ui._ocfg.__dict__ | |
|
108 | print "self.ui._ucfg", self.ui._ucfg.__dict__ | |
|
98 | 109 | |
|
99 | 110 | # Extracting possible username/password stored in repository url |
|
100 | 111 | user, pwd = urllib2.HTTPPasswordMgrWithDefaultRealm.find_user_password(self, realm, authuri) |
General Comments 0
You need to be logged in to leave comments.
Login now