repo-mirror.sh: Allow to specify the .hgrc file.
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-bii_scripts/bin/repo-mirror.sh new-bii_scripts/bin/repo-mirror.sh
--- old-bii_scripts/bin/repo-mirror.sh 2022-09-26 06:04:58.593166944 +0200
+++ new-bii_scripts/bin/repo-mirror.sh 2022-09-26 06:04:58.593166944 +0200
@@ -186,6 +186,9 @@
echo " This may be needed to convert repositories that"
echo " are not UTF-8 encoded. Example:"
echo " iso8859-1 : ISO8850-1 encoding"
+ echo "--hgrc HGRCFILE:"
+ echo " Specify the .hgrc file. This sets the environment"
+ echo " variable HGRCPATH (see mercurial documentation)."
echo
echo "-y --yes : Create destination reposity if it doesn't exist"
echo " without prompting the user"
@@ -225,6 +228,10 @@
fi
shift 2
;;
+ --hgrc)
+ export HGRCPATH="$2"
+ shift 2
+ ;;
-y | --yes)
yes="yes"
shift
patch 93f8f162eab92c10e52b319799693d04a5b5a4e7
Author: Goetz.Pfeiffer@helmholtz-berlin.de
Date: Thu Feb 24 15:28:10 CET 2022
* repo-mirror.sh: Allow to specify the .hgrc file.
Since the hggit extension, which is activated in the hgrc file, breaks pulling
repositories by http, hggit is not activated in my personal hgrc file.
For now, the user of repo-mirror.sh can specify a hgrc file at some othet
location which has hggit enabled just for the purpose of mercurial --> git
conversion