[PATCH 6 of 6 py3] test-check-py3-commands.t: add test to check `hg diff`

Pulkit Goyal 7895pulkit at gmail.com
Sun Mar 26 11:46:45 EDT 2017


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1490543035 -19800
#      Sun Mar 26 21:13:55 2017 +0530
# Node ID 4c20946cc47f4f7e3c40fcfb56a2f6ce69984506
# Parent  d0daada30518fb8fb12948c61e1eabb6494148cf
test-check-py3-commands.t: add test to check `hg diff`

`hg diff` now works on Python 3.

diff -r d0daada30518 -r 4c20946cc47f tests/test-check-py3-commands.t
--- a/tests/test-check-py3-commands.t	Sun Mar 26 21:10:25 2017 +0530
+++ b/tests/test-check-py3-commands.t	Sun Mar 26 21:13:55 2017 +0530
@@ -118,6 +118,12 @@
   $ $PYTHON3 $HGBIN status
   ? iota
   $ $PYTHON3 $HGBIN add iota
+  $ $PYTHON3 $HGBIN diff
+  diff -r 000000000000 iota
+  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+  +++ b/iota	Sun Mar 26 15:42:01 2017 +0000
+  @@ -0,0 +1,1 @@
+  +This is the file 'iota'.
   $ $PYTHON3 $HGBIN status
   A iota
   $ $PYTHON3 $HGBIN commit --message 'commit performed in Python 3'


More information about the Mercurial-devel mailing list