# HG changeset patch # User timeless # Date 1462920345 0 # Node ID c5f9ff302065f1116d42c23a3187e5e6874d9e22 # Parent bdba6a2015d0bc57c6e2beab25d138610dcbf360 debuginstall: add mercurial version diff -r bdba6a2015d0 -r c5f9ff302065 mercurial/commands.py --- a/mercurial/commands.py Mon May 16 04:31:20 2016 +0530 +++ b/mercurial/commands.py Tue May 10 22:45:45 2016 +0000 @@ -2740,6 +2740,13 @@ fm.write('pythonlib', _("checking Python lib (%s)...\n"), os.path.dirname(os.__file__)) + # hg version + hgver = util.version() + fm.write('hgver', _("checking Mercurial version (%s)\n"), + hgver.split('+')[0]) + fm.write('hgverextra', _("checking Mercurial custom build (%s)\n"), + '+'.join(hgver.split('+')[1:])) + # compiled modules fm.write('hgmodules', _("checking installed modules (%s)...\n"), os.path.dirname(__file__)) diff -r bdba6a2015d0 -r c5f9ff302065 tests/test-install.t --- a/tests/test-install.t Mon May 16 04:31:20 2016 +0530 +++ b/tests/test-install.t Tue May 10 22:45:45 2016 +0000 @@ -4,6 +4,8 @@ checking Python executable (*) (glob) checking Python version (2.*) (glob) checking Python lib (*lib*)... (glob) + checking Mercurial version (*) (glob) + checking Mercurial custom build (*) (glob) checking installed modules (*mercurial)... (glob) checking templates (*mercurial?templates)... (glob) checking default template (*mercurial?templates?map-cmdline.default) (glob) @@ -24,6 +26,8 @@ "encodingerror": null, "extensionserror": null, "hgmodules": "*mercurial", (glob) + "hgver": "*", (glob) + "hgverextra": "*", (glob) "problems": 0, "pythonexe": "*", (glob) "pythonlib": "*", (glob) @@ -41,6 +45,8 @@ checking Python executable (*) (glob) checking Python version (2.*) (glob) checking Python lib (*lib*)... (glob) + checking Mercurial version (*) (glob) + checking Mercurial custom build (*) (glob) checking installed modules (*mercurial)... (glob) checking templates (*mercurial?templates)... (glob) checking default template (*mercurial?templates?map-cmdline.default) (glob) @@ -62,6 +68,8 @@ checking Python executable (*) (glob) checking Python version (*) (glob) checking Python lib (*lib*)... (glob) + checking Mercurial version (*) (glob) + checking Mercurial custom build (*) (glob) checking installed modules (*mercurial)... (glob) checking templates (*mercurial?templates)... (glob) checking default template (*mercurial?templates?map-cmdline.default) (glob)