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

Pulkit Goyal 7895pulkit at gmail.com
Mon Jun 12 20:30:32 UTC 2017


# HG changeset patch
# User Pulkit Goyal <7895pulkit at 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.

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


More information about the Mercurial-devel mailing list