From 59675eca225b779b8bdea797bd58c96bd0e3df71 Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Wed, 27 Dec 2023 12:57:56 +0100 Subject: [PATCH] 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. --- hg-fast-export.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hg-fast-export.sh b/hg-fast-export.sh index be52c5d..81339ab 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -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) \