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

login
register
mail settings
Submitter Pulkit Goyal
Date March 26, 2017, 3:46 p.m.
Message ID <4c20946cc47f4f7e3c40.1490543205@pulkit-goyal>
Download mbox | patch
Permalink /patch/19693/
State Accepted
Headers show

Comments

Pulkit Goyal - March 26, 2017, 3:46 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@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.

Patch

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'