[PATCH 2 of 2 py3] tests: add check to make sure summary works on Python 2

Pulkit Goyal 7895pulkit at gmail.com
Wed Mar 29 15:51:39 EDT 2017


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1490779618 -19800
#      Wed Mar 29 14:56:58 2017 +0530
# Node ID 61f9c295463e713241d8265e20ad8208af6fe22a
# Parent  7339bf21508131c90a44317ff16214b81ebe62c1
tests: add check to make sure summary works on Python 2

diff -r 7339bf215081 -r 61f9c295463e tests/test-check-py3-commands.t
--- a/tests/test-check-py3-commands.t	Wed Mar 29 14:47:52 2017 +0530
+++ b/tests/test-check-py3-commands.t	Wed Mar 29 14:56:58 2017 +0530
@@ -111,6 +111,7 @@
 
 `hg init` can create empty repos
 `hg status works fine`
+`hg summary` also works!
 
   $ $PYTHON3 `which hg` init py3repo
   $ cd py3repo
@@ -131,6 +132,13 @@
   A A/mu
   $ HGEDITOR='echo message > ' $PYTHON3 $HGBIN commit
   $ $PYTHON3 $HGBIN status
+  $ $PYHON3 $HGBIN summary
+  parent: 1:e1e9167203d4 tip
+   message
+  branch: default
+  commit: (clean)
+  update: (current)
+  phases: 2 draft
 
 Prove the repo is valid using the Python 2 `hg`:
   $ hg verify


More information about the Mercurial-devel mailing list