From ac60034ba382fd7ffd2cbe41556944e3069dea8e Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Sat, 11 Aug 2018 15:07:19 +0200 Subject: [PATCH] Adhere to PEP 394 From PEP 394 [1]: * python2 will refer to some version of Python 2.x. * end users should be aware that python refers to python3 on at least Arch Linux (that change is what prompted the creation of this PEP), so python should be used in the shebang line only for scripts that are source compatible with both Python 2 and 3. So to make sure that we run correctly on a system where python refers to python3 and avoid problems like issue #11 we change the shebangs. [1] https://www.python.org/dev/peps/pep-0394/ --- hg-fast-export.py | 2 +- hg-fast-export.sh | 2 +- hg2git.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hg-fast-export.py b/hg-fast-export.py index 2394b2e..a21148e 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Copyright (c) 2007, 2008 Rocco Rutte and others. # License: MIT diff --git a/hg-fast-export.sh b/hg-fast-export.sh index 5f4e4da..531b3c5 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -26,7 +26,7 @@ SFX_MARKS="marks" SFX_HEADS="heads" SFX_STATE="state" GFI_OPTS="" -PYTHON=${PYTHON:-python} +PYTHON=${PYTHON:-python2} USAGE="[--quiet] [-r ] [--force] [-m ] [-s] [--hgtags] [-A ] [-B ] [-T ] [-M ] [-o ] [--hg-hash] [-e ]" LONG_USAGE="Import hg repository up to either tip or diff --git a/hg2git.py b/hg2git.py index ba5cd4c..49368f8 100755 --- a/hg2git.py +++ b/hg2git.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Copyright (c) 2007, 2008 Rocco Rutte and others. # License: MIT -- 2.11.4.GIT