equal
deleted
inserted
replaced
305 mail, |
305 mail, |
306 url, |
306 url, |
307 util, |
307 util, |
308 ) |
308 ) |
309 |
309 |
310 urlparse = util.urlparse |
|
311 xmlrpclib = util.xmlrpclib |
310 xmlrpclib = util.xmlrpclib |
312 |
311 |
313 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
312 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
314 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
313 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
315 # be specifying the version(s) of Mercurial they are tested with, or |
314 # be specifying the version(s) of Mercurial they are tested with, or |
655 login = self.bzproxy.User.login({'login': user, 'password': passwd, |
654 login = self.bzproxy.User.login({'login': user, 'password': passwd, |
656 'restrict_login': True}) |
655 'restrict_login': True}) |
657 self.bztoken = login.get('token', '') |
656 self.bztoken = login.get('token', '') |
658 |
657 |
659 def transport(self, uri): |
658 def transport(self, uri): |
660 if urlparse.urlparse(uri, "http")[0] == "https": |
659 if util.urlreq.urlparse(uri, "http")[0] == "https": |
661 return cookiesafetransport() |
660 return cookiesafetransport() |
662 else: |
661 else: |
663 return cookietransport() |
662 return cookietransport() |
664 |
663 |
665 def get_bug_comments(self, id): |
664 def get_bug_comments(self, id): |