changeset 48843:d953a42b157d

automation: run hg with python3 Python 2.7 support will go away soon. Let's use Python 3 as part of the automation. Differential Revision: https://phab.mercurial-scm.org/D12260
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 19 Feb 2022 18:04:49 -0700
parents 649ff7f86f96
children d79f0ce95c47
files contrib/automation/hgautomation/linux.py contrib/automation/hgautomation/windows.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/automation/hgautomation/linux.py	Thu Mar 03 07:53:11 2022 +0100
+++ b/contrib/automation/hgautomation/linux.py	Sat Feb 19 18:04:49 2022 -0700
@@ -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,
--- a/contrib/automation/hgautomation/windows.py	Thu Mar 03 07:53:11 2022 +0100
+++ b/contrib/automation/hgautomation/windows.py	Sat Feb 19 18:04:49 2022 -0700
@@ -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,