diff --git a/hg-fast-export.sh b/hg-fast-export.sh index 5d5674a..f9d1dd6 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -10,6 +10,7 @@ SFX_MARKS="marks" SFX_HEADS="heads" SFX_STATE="state" QUIET="" +PYTHON=${PYTHON:python} USAGE="[--quiet] [-r ] [-m ] [-s] [-A ]" LONG_USAGE="Import hg repository up to either tip or @@ -62,7 +63,7 @@ if [ ! -f "$GIT_DIR/$PFX-$SFX_MARKS" ] ; then touch "$GIT_DIR/$PFX-$SFX_MARKS" fi -GIT_DIR="$GIT_DIR" python "$ROOT/hg-fast-export.py" \ +GIT_DIR="$GIT_DIR" $PYTHON "$ROOT/hg-fast-export.py" \ --repo "$REPO" \ --marks "$GIT_DIR/$PFX-$SFX_MARKS" \ --heads "$GIT_DIR/$PFX-$SFX_HEADS" \ diff --git a/hg-reset.sh b/hg-reset.sh index 4204005..63d7fe1 100755 --- a/hg-reset.sh +++ b/hg-reset.sh @@ -10,6 +10,7 @@ SFX_MARKS="marks" SFX_HEADS="heads" SFX_STATE="state" QUIET="" +PYTHON=${PYTHON:python} USAGE="[-r ] -R " LONG_USAGE="Print SHA1s of latest changes per branch up to useful @@ -54,7 +55,7 @@ if [ ! -f "$GIT_DIR/$PFX-$SFX_MARKS" ] ; then touch "$GIT_DIR/$PFX-$SFX_MARKS" fi -GIT_DIR="$GIT_DIR" python "$ROOT/hg-reset.py" \ +GIT_DIR="$GIT_DIR" $PYTHON "$ROOT/hg-reset.py" \ --repo "$REPO" \ --marks "$GIT_DIR/$PFX-$SFX_MARKS" \ --heads "$GIT_DIR/$PFX-$SFX_HEADS" \