Show More
@@ -795,7 +795,9 b' class bzxmlrpc(bzaccess):' | |||
|
795 | 795 | self.fixstatus = self.ui.config(b'bugzilla', b'fixstatus') |
|
796 | 796 | self.fixresolution = self.ui.config(b'bugzilla', b'fixresolution') |
|
797 | 797 | |
|
798 |
self.bzproxy = xmlrpclib.ServerProxy( |
|
|
798 | self.bzproxy = xmlrpclib.ServerProxy( | |
|
799 | pycompat.strurl(bzweb), self.transport(bzweb) | |
|
800 | ) | |
|
799 | 801 | ver = self.bzproxy.Bugzilla.version()[b'version'].split(b'.') |
|
800 | 802 | self.bzvermajor = int(ver[0]) |
|
801 | 803 | self.bzverminor = int(ver[1]) |
@@ -1247,4 +1249,4 b' def hook(ui, repo, hooktype, node=None, ' | |||
|
1247 | 1249 | bz.update(bug, bugs[bug], ctx) |
|
1248 | 1250 | bz.notify(bugs, stringutil.email(ctx.user())) |
|
1249 | 1251 | except Exception as e: |
|
1250 | raise error.Abort(_(b'Bugzilla error: %s') % e) | |
|
1252 | raise error.Abort(_(b'Bugzilla error: %s') % stringutil.forcebytestr(e)) |
@@ -3850,9 +3850,7 b' def debugtemplate(ui, repo, tmpl, **opts' | |||
|
3850 | 3850 | def debuguigetpass(ui, prompt=b''): |
|
3851 | 3851 | """show prompt to type password""" |
|
3852 | 3852 | r = ui.getpass(prompt) |
|
3853 |
if r is |
|
|
3854 | r = encoding.strtolocal(r) | |
|
3855 | else: | |
|
3853 | if r is None: | |
|
3856 | 3854 | r = b"<default response>" |
|
3857 | 3855 | ui.writenoi18n(b'response: %s\n' % r) |
|
3858 | 3856 |
General Comments 0
You need to be logged in to leave comments.
Login now