diff tests/test-diff-unified.t @ 30807:6381a6dbc325

patch: use opt.showsimilarity to calculate and show the similarity Tests have been added.
author Sean Farley <sean@farley.io>
date Mon, 09 Jan 2017 11:24:18 -0800
parents e40343ce9c4c
children 897726622877
line wrap: on
line diff
--- a/tests/test-diff-unified.t	Mon Jan 09 10:51:44 2017 -0800
+++ b/tests/test-diff-unified.t	Mon Jan 09 11:24:18 2017 -0800
@@ -229,6 +229,20 @@
   -a
   +b
 
+Git diff, adding extended headers
+
+  $ hg diff --git --config experimental.extendedheader.index=7 --config experimental.extendedheader.similarity=True
+  diff --git a/f1 b/f 1
+  similarity index 0%
+  rename from f1
+  rename to f 1
+  index 7898192..6178079 100644
+  --- a/f1
+  +++ b/f 1	
+  @@ -1,1 +1,1 @@
+  -a
+  +b
+
 Git diff with noprefix
 
   $ hg --config diff.noprefix=True diff --git --nodates