Patchwork py3: use python3 hg in test-py3-commands.t at places where py2 hg was used

login
register
mail settings
Submitter Pulkit Goyal
Date June 12, 2017, 8:30 p.m.
Message ID <f12a51d828c6bac3ed76.1497299432@workspace>
Download mbox | patch
Permalink /patch/21348/
State Accepted
Headers show

Comments

Pulkit Goyal - June 12, 2017, 8:30 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1497297234 -19800
#      Tue Jun 13 01:23:54 2017 +0530
# Node ID f12a51d828c6bac3ed7683bd07f7d04232727da5
# Parent  6f775d10e83b928c99d5d6a7caa559c79fd925e1
py3: use python3 hg in test-py3-commands.t at places where py2 hg was used

This patch fixes my mistakes where I added test in test-py3-commands.t as
`hg ...` where I forgot hg here refers to Python 2 mercurial.
Sean Farley - June 12, 2017, 10:05 p.m.
Pulkit Goyal <7895pulkit@gmail.com> writes:

> # HG changeset patch
> # User Pulkit Goyal <7895pulkit@gmail.com>
> # Date 1497297234 -19800
> #      Tue Jun 13 01:23:54 2017 +0530
> # Node ID f12a51d828c6bac3ed7683bd07f7d04232727da5
> # Parent  6f775d10e83b928c99d5d6a7caa559c79fd925e1
> py3: use python3 hg in test-py3-commands.t at places where py2 hg was used
>
> This patch fixes my mistakes where I added test in test-py3-commands.t as
> `hg ...` where I forgot hg here refers to Python 2 mercurial.

Seems like an obvious step forward, so queued. Thanks!

Patch

diff --git a/tests/test-py3-commands.t b/tests/test-py3-commands.t
--- a/tests/test-py3-commands.t
+++ b/tests/test-py3-commands.t
@@ -183,7 +183,7 @@ 
   summary:     commit performed in Python 3
   
 
-  $ hg log -G
+  $ $PYTHON3 $HGBIN log -G
   @  changeset:   1:e1e9167203d4
   |  tag:         tip
   |  user:        test
@@ -195,7 +195,7 @@ 
      date:        Thu Jan 01 00:00:00 1970 +0000
      summary:     commit performed in Python 3
   
-  $ hg log -Tjson
+  $ $PYTHON3 $HGBIN log -Tjson
   [
    {
     "rev": 1,
@@ -225,7 +225,7 @@ 
 
 Show that update works now!
 
-  $ hg up 0
+  $ $PYTHON3 $HGBIN up 0
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
-  $ hg identify
+  $ $PYTHON3 $HGBIN identify
   71c96e924262