Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 44230:0b475b0b0344
debugcommands: add Python implementation to debuginstall
This seems like a useful detail to print.
Differential Revision: https://phab.mercurial-scm.org/D7979
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 22 Nov 2019 20:27:09 -0800 |
parents | 52f8b07ad2f9 |
children | d8b53385b1bc |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Fri Nov 22 20:12:10 2019 -0800 +++ b/mercurial/debugcommands.py Fri Nov 22 20:27:09 2019 -0800 @@ -13,6 +13,7 @@ import errno import operator import os +import platform import random import re import socket @@ -1487,6 +1488,11 @@ pycompat.sysexecutable or _(b"unknown"), ) fm.write( + b'pythonimplementation', + _(b"checking Python implementation (%s)\n"), + pycompat.sysbytes(platform.python_implementation()), + ) + fm.write( b'pythonver', _(b"checking Python version (%s)\n"), (b"%d.%d.%d" % sys.version_info[:3]),