D12260: automation: run hg with python3
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Wed Mar 2 15:43:27 UTC 2022
indygreg created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Python 2.7 support will go away soon. Let's use Python 3 as part of
the automation.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D12260
AFFECTED FILES
contrib/automation/hgautomation/linux.py
contrib/automation/hgautomation/windows.py
CHANGE DETAILS
diff --git a/contrib/automation/hgautomation/windows.py b/contrib/automation/hgautomation/windows.py
--- a/contrib/automation/hgautomation/windows.py
+++ b/contrib/automation/hgautomation/windows.py
@@ -261,7 +261,7 @@
hg_bin = hg_repo / 'hg'
res = subprocess.run(
- ['python2.7', str(hg_bin), 'log', '-r', revision, '-T', '{node}'],
+ ['python3', str(hg_bin), 'log', '-r', revision, '-T', '{node}'],
cwd=str(hg_repo),
env=env,
check=True,
@@ -271,7 +271,7 @@
full_revision = res.stdout.decode('ascii')
args = [
- 'python2.7',
+ 'python3',
hg_bin,
'--config',
'ui.ssh=ssh -F %s' % ssh_config,
diff --git a/contrib/automation/hgautomation/linux.py b/contrib/automation/hgautomation/linux.py
--- a/contrib/automation/hgautomation/linux.py
+++ b/contrib/automation/hgautomation/linux.py
@@ -532,7 +532,7 @@
hg_bin = source_path / 'hg'
res = subprocess.run(
- ['python2.7', str(hg_bin), 'log', '-r', revision, '-T', '{node}'],
+ ['python3', str(hg_bin), 'log', '-r', revision, '-T', '{node}'],
cwd=str(source_path),
env=env,
check=True,
@@ -542,7 +542,7 @@
full_revision = res.stdout.decode('ascii')
args = [
- 'python2.7',
+ 'python3',
str(hg_bin),
'--config',
'ui.ssh=ssh -F %s' % ssh_config,
To: indygreg, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list