changeset 32644:01a95cbbff56

py3: add a test to show `hg diff` works on Python 3
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 02 Jun 2017 10:14:00 +0530
parents 1df98fc923d4
children 74e9496e4986
files tests/test-py3-commands.t
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-py3-commands.t	Thu Jun 01 02:25:18 2017 +0530
+++ b/tests/test-py3-commands.t	Fri Jun 02 10:14:00 2017 +0530
@@ -118,6 +118,13 @@
   $ $PYTHON3 $HGBIN add iota
   $ $PYTHON3 $HGBIN status
   A iota
+  $ hg diff --nodates --git
+  diff --git a/iota b/iota
+  new file mode 100644
+  --- /dev/null
+  +++ b/iota
+  @@ -0,0 +1,1 @@
+  +This is the file 'iota'.
   $ $PYTHON3 $HGBIN commit --message 'commit performed in Python 3'
   $ $PYTHON3 $HGBIN status