Commit 9786513d authored by Matt Harbison's avatar Matt Harbison
Browse files

bugreport: include the extension versions, when available

We've been doing this in core for a couple of releases, and it's convenient to
know when an old version of evolve/topics may be causing the issue.

--HG--
branch : stable
parent 8bfc227708b4
Pipeline #21367 failed with stage
in 25 minutes and 29 seconds
......@@ -116,6 +116,13 @@ class BugReport(QDialog):
self.download_url_lbl.setText(_('Your TortoiseHg is up to date.'))
def gettext(self, opts):
def ext_with_ver(x):
ext = x[0]
ver = extensions.moduleversion(x[1])
if ver:
ext += b' ' + ver
return hglib.tounicode(ext)
# TODO: make this more uniformly unicode safe
text = '#!python\n' # Bitbucket wiki marker for python code
text += '** Mercurial version (%s). TortoiseHg version (%s)\n' % (
......@@ -123,7 +130,7 @@ class BugReport(QDialog):
text += '** Command: %s\n' % (hglib.tounicode(opts.get('cmd', 'N/A')))
text += '** CWD: %s\n' % hglib.tounicode(_safegetcwd())
text += '** Encoding: %s\n' % hglib._encoding
extlist = [hglib.tounicode(x[0]) for x in extensions.extensions()]
extlist = [ext_with_ver(x) for x in sorted(extensions.extensions())]
text += '** Extensions loaded: %s\n' % ', '.join(extlist)
text += '** Python version: %s\n' % sys.version.replace('\n', '')
if os.name == 'nt':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment