diff -r 0132221c25cd -r 876494fd967d mercurial/debugcommands.py --- a/mercurial/debugcommands.py Mon Sep 24 14:46:37 2018 -0700 +++ b/mercurial/debugcommands.py Thu Jan 17 09:17:12 2019 -0800 @@ -745,7 +745,6 @@ nodates = True datesort = opts.get(r'datesort') - timestr = "" if datesort: keyfunc = lambda x: (x[1][3], x[0]) # sort by mtime, then by filename else: @@ -1182,13 +1181,6 @@ ''' opts = pycompat.byteskwargs(opts) - def writetemp(contents): - (fd, name) = pycompat.mkstemp(prefix="hg-debuginstall-") - f = os.fdopen(fd, r"wb") - f.write(contents) - f.close() - return name - problems = 0 fm = ui.formatter('debuginstall', opts) @@ -2569,7 +2561,6 @@ source, branches = hg.parseurl(ui.expandpath(source)) url = util.url(source) - addr = None defaultport = {'https': 443, 'ssh': 22} if url.scheme in defaultport: