Add command line flag to dump found versions

Add `--debug` command line flag which dumps the detected versions of
Mercurial and Python. This will probably help future debugging when
unexpected versions are used.
This commit is contained in:
Frej Drejhammar
2023-12-27 12:57:56 +01:00
parent 3c694243c4
commit 59675eca22

View File

@@ -86,6 +86,14 @@ case "$1" in
echo ""
echo "$LONG_USAGE"
exit 0
;;
--debug)
echo -n "Using Python: "
"${PYTHON}" --version
echo -n "Using Mercurial: "
hg --version
exit 0
esac
IS_BARE=$(git rev-parse --is-bare-repository) \