diff --git a/tests/test-command-template.t b/tests/test-command-template.t
index 11ab8714f52982cfbf7f2610dab5e596daabe848_dGVzdHMvdGVzdC1jb21tYW5kLXRlbXBsYXRlLnQ=..7316a2847c632612fb190d598798a75d3ea652f5_dGVzdHMvdGVzdC1jb21tYW5kLXRlbXBsYXRlLnQ= 100644
--- a/tests/test-command-template.t
+++ b/tests/test-command-template.t
@@ -120,6 +120,5 @@
   $ hg log --style default > style.out
   $ cmp log.out style.out || diff -u log.out style.out
   $ hg log -T phases > phases.out
-  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+'
-  @@ -2,0 +3 @@
+  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
   +phase:       draft
@@ -125,3 +124,2 @@
   +phase:       draft
-  @@ -6,0 +8 @@
   +phase:       draft
@@ -127,3 +125,2 @@
   +phase:       draft
-  @@ -11,0 +14 @@
   +phase:       draft
@@ -129,3 +126,2 @@
   +phase:       draft
-  @@ -17,0 +21 @@
   +phase:       draft
@@ -131,3 +127,2 @@
   +phase:       draft
-  @@ -24,0 +29 @@
   +phase:       draft
@@ -133,3 +128,2 @@
   +phase:       draft
-  @@ -31,0 +37 @@
   +phase:       draft
@@ -135,3 +129,2 @@
   +phase:       draft
-  @@ -36,0 +43 @@
   +phase:       draft
@@ -137,3 +130,2 @@
   +phase:       draft
-  @@ -41,0 +49 @@
   +phase:       draft
@@ -139,3 +131,2 @@
   +phase:       draft
-  @@ -46,0 +55 @@
   +phase:       draft
@@ -141,8 +132,7 @@
   +phase:       draft
-  @@ -51,0 +61 @@
   +phase:       draft
 
   $ hg log -v > log.out
   $ hg log -v --style default > style.out
   $ cmp log.out style.out || diff -u log.out style.out
   $ hg log -v -T phases > phases.out
@@ -143,9 +133,8 @@
   +phase:       draft
 
   $ hg log -v > log.out
   $ hg log -v --style default > style.out
   $ cmp log.out style.out || diff -u log.out style.out
   $ hg log -v -T phases > phases.out
-  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+'
-  @@ -2,0 +3 @@
+  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
   +phase:       draft
@@ -151,3 +140,2 @@
   +phase:       draft
-  @@ -7,0 +9 @@
   +phase:       draft
@@ -153,3 +141,2 @@
   +phase:       draft
-  @@ -15,0 +18 @@
   +phase:       draft
@@ -155,3 +142,2 @@
   +phase:       draft
-  @@ -24,0 +28 @@
   +phase:       draft
@@ -157,3 +143,2 @@
   +phase:       draft
-  @@ -33,0 +38 @@
   +phase:       draft
@@ -159,3 +144,2 @@
   +phase:       draft
-  @@ -43,0 +49 @@
   +phase:       draft
@@ -161,3 +145,2 @@
   +phase:       draft
-  @@ -50,0 +57 @@
   +phase:       draft
@@ -163,3 +146,2 @@
   +phase:       draft
-  @@ -58,0 +66 @@
   +phase:       draft
@@ -165,3 +147,2 @@
   +phase:       draft
-  @@ -66,0 +75 @@
   +phase:       draft
@@ -167,5 +148,4 @@
   +phase:       draft
-  @@ -77,0 +87 @@
   +phase:       draft
 
   $ hg log -q > log.out
@@ -212,6 +192,5 @@
   $ hg --color=debug log --style default > style.out
   $ cmp log.out style.out || diff -u log.out style.out
   $ hg --color=debug log -T phases > phases.out
-  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+'
-  @@ -2,0 +3 @@
+  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
   +[log.phase|phase:       draft]
@@ -217,3 +196,2 @@
   +[log.phase|phase:       draft]
-  @@ -6,0 +8 @@
   +[log.phase|phase:       draft]
@@ -219,3 +197,2 @@
   +[log.phase|phase:       draft]
-  @@ -11,0 +14 @@
   +[log.phase|phase:       draft]
@@ -221,3 +198,2 @@
   +[log.phase|phase:       draft]
-  @@ -17,0 +21 @@
   +[log.phase|phase:       draft]
@@ -223,3 +199,2 @@
   +[log.phase|phase:       draft]
-  @@ -24,0 +29 @@
   +[log.phase|phase:       draft]
@@ -225,3 +200,2 @@
   +[log.phase|phase:       draft]
-  @@ -31,0 +37 @@
   +[log.phase|phase:       draft]
@@ -227,3 +201,2 @@
   +[log.phase|phase:       draft]
-  @@ -36,0 +43 @@
   +[log.phase|phase:       draft]
@@ -229,3 +202,2 @@
   +[log.phase|phase:       draft]
-  @@ -41,0 +49 @@
   +[log.phase|phase:       draft]
@@ -231,3 +203,2 @@
   +[log.phase|phase:       draft]
-  @@ -46,0 +55 @@
   +[log.phase|phase:       draft]
@@ -233,8 +204,7 @@
   +[log.phase|phase:       draft]
-  @@ -51,0 +61 @@
   +[log.phase|phase:       draft]
 
   $ hg --color=debug -v log > log.out
   $ hg --color=debug -v log --style default > style.out
   $ cmp log.out style.out || diff -u log.out style.out
   $ hg --color=debug -v log -T phases > phases.out
@@ -235,9 +205,8 @@
   +[log.phase|phase:       draft]
 
   $ hg --color=debug -v log > log.out
   $ hg --color=debug -v log --style default > style.out
   $ cmp log.out style.out || diff -u log.out style.out
   $ hg --color=debug -v log -T phases > phases.out
-  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+'
-  @@ -2,0 +3 @@
+  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
   +[log.phase|phase:       draft]
@@ -243,3 +212,2 @@
   +[log.phase|phase:       draft]
-  @@ -7,0 +9 @@
   +[log.phase|phase:       draft]
@@ -245,3 +213,2 @@
   +[log.phase|phase:       draft]
-  @@ -15,0 +18 @@
   +[log.phase|phase:       draft]
@@ -247,3 +214,2 @@
   +[log.phase|phase:       draft]
-  @@ -24,0 +28 @@
   +[log.phase|phase:       draft]
@@ -249,3 +215,2 @@
   +[log.phase|phase:       draft]
-  @@ -33,0 +38 @@
   +[log.phase|phase:       draft]
@@ -251,3 +216,2 @@
   +[log.phase|phase:       draft]
-  @@ -43,0 +49 @@
   +[log.phase|phase:       draft]
@@ -253,3 +217,2 @@
   +[log.phase|phase:       draft]
-  @@ -50,0 +57 @@
   +[log.phase|phase:       draft]
@@ -255,3 +218,2 @@
   +[log.phase|phase:       draft]
-  @@ -58,0 +66 @@
   +[log.phase|phase:       draft]
@@ -257,3 +219,2 @@
   +[log.phase|phase:       draft]
-  @@ -66,0 +75 @@
   +[log.phase|phase:       draft]
@@ -259,5 +220,4 @@
   +[log.phase|phase:       draft]
-  @@ -77,0 +87 @@
   +[log.phase|phase:       draft]
 
   $ hg --color=debug -q log > log.out