tests/test-command-template.t
branchstable
changeset 25862 7316a2847c63
parent 25861 11ab8714f529
child 26105 d67341f55429
child 26502 4ca98a389152
equal deleted inserted replaced
25861:11ab8714f529 25862:7316a2847c63
   118 
   118 
   119   $ hg log > log.out
   119   $ hg log > log.out
   120   $ hg log --style default > style.out
   120   $ hg log --style default > style.out
   121   $ cmp log.out style.out || diff -u log.out style.out
   121   $ cmp log.out style.out || diff -u log.out style.out
   122   $ hg log -T phases > phases.out
   122   $ hg log -T phases > phases.out
   123   $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+'
   123   $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
   124   @@ -2,0 +3 @@
       
   125   +phase:       draft
   124   +phase:       draft
   126   @@ -6,0 +8 @@
       
   127   +phase:       draft
   125   +phase:       draft
   128   @@ -11,0 +14 @@
       
   129   +phase:       draft
   126   +phase:       draft
   130   @@ -17,0 +21 @@
       
   131   +phase:       draft
   127   +phase:       draft
   132   @@ -24,0 +29 @@
       
   133   +phase:       draft
   128   +phase:       draft
   134   @@ -31,0 +37 @@
       
   135   +phase:       draft
   129   +phase:       draft
   136   @@ -36,0 +43 @@
       
   137   +phase:       draft
   130   +phase:       draft
   138   @@ -41,0 +49 @@
       
   139   +phase:       draft
   131   +phase:       draft
   140   @@ -46,0 +55 @@
       
   141   +phase:       draft
   132   +phase:       draft
   142   @@ -51,0 +61 @@
       
   143   +phase:       draft
   133   +phase:       draft
   144 
   134 
   145   $ hg log -v > log.out
   135   $ hg log -v > log.out
   146   $ hg log -v --style default > style.out
   136   $ hg log -v --style default > style.out
   147   $ cmp log.out style.out || diff -u log.out style.out
   137   $ cmp log.out style.out || diff -u log.out style.out
   148   $ hg log -v -T phases > phases.out
   138   $ hg log -v -T phases > phases.out
   149   $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+'
   139   $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
   150   @@ -2,0 +3 @@
       
   151   +phase:       draft
   140   +phase:       draft
   152   @@ -7,0 +9 @@
       
   153   +phase:       draft
   141   +phase:       draft
   154   @@ -15,0 +18 @@
       
   155   +phase:       draft
   142   +phase:       draft
   156   @@ -24,0 +28 @@
       
   157   +phase:       draft
   143   +phase:       draft
   158   @@ -33,0 +38 @@
       
   159   +phase:       draft
   144   +phase:       draft
   160   @@ -43,0 +49 @@
       
   161   +phase:       draft
   145   +phase:       draft
   162   @@ -50,0 +57 @@
       
   163   +phase:       draft
   146   +phase:       draft
   164   @@ -58,0 +66 @@
       
   165   +phase:       draft
   147   +phase:       draft
   166   @@ -66,0 +75 @@
       
   167   +phase:       draft
   148   +phase:       draft
   168   @@ -77,0 +87 @@
       
   169   +phase:       draft
   149   +phase:       draft
   170 
   150 
   171   $ hg log -q > log.out
   151   $ hg log -q > log.out
   172   $ hg log -q --style default > style.out
   152   $ hg log -q --style default > style.out
   173   $ cmp log.out style.out || diff -u log.out style.out
   153   $ cmp log.out style.out || diff -u log.out style.out
   210 
   190 
   211   $ hg --color=debug log > log.out
   191   $ hg --color=debug log > log.out
   212   $ hg --color=debug log --style default > style.out
   192   $ hg --color=debug log --style default > style.out
   213   $ cmp log.out style.out || diff -u log.out style.out
   193   $ cmp log.out style.out || diff -u log.out style.out
   214   $ hg --color=debug log -T phases > phases.out
   194   $ hg --color=debug log -T phases > phases.out
   215   $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+'
   195   $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
   216   @@ -2,0 +3 @@
       
   217   +[log.phase|phase:       draft]
   196   +[log.phase|phase:       draft]
   218   @@ -6,0 +8 @@
       
   219   +[log.phase|phase:       draft]
   197   +[log.phase|phase:       draft]
   220   @@ -11,0 +14 @@
       
   221   +[log.phase|phase:       draft]
   198   +[log.phase|phase:       draft]
   222   @@ -17,0 +21 @@
       
   223   +[log.phase|phase:       draft]
   199   +[log.phase|phase:       draft]
   224   @@ -24,0 +29 @@
       
   225   +[log.phase|phase:       draft]
   200   +[log.phase|phase:       draft]
   226   @@ -31,0 +37 @@
       
   227   +[log.phase|phase:       draft]
   201   +[log.phase|phase:       draft]
   228   @@ -36,0 +43 @@
       
   229   +[log.phase|phase:       draft]
   202   +[log.phase|phase:       draft]
   230   @@ -41,0 +49 @@
       
   231   +[log.phase|phase:       draft]
   203   +[log.phase|phase:       draft]
   232   @@ -46,0 +55 @@
       
   233   +[log.phase|phase:       draft]
   204   +[log.phase|phase:       draft]
   234   @@ -51,0 +61 @@
       
   235   +[log.phase|phase:       draft]
   205   +[log.phase|phase:       draft]
   236 
   206 
   237   $ hg --color=debug -v log > log.out
   207   $ hg --color=debug -v log > log.out
   238   $ hg --color=debug -v log --style default > style.out
   208   $ hg --color=debug -v log --style default > style.out
   239   $ cmp log.out style.out || diff -u log.out style.out
   209   $ cmp log.out style.out || diff -u log.out style.out
   240   $ hg --color=debug -v log -T phases > phases.out
   210   $ hg --color=debug -v log -T phases > phases.out
   241   $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+'
   211   $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
   242   @@ -2,0 +3 @@
       
   243   +[log.phase|phase:       draft]
   212   +[log.phase|phase:       draft]
   244   @@ -7,0 +9 @@
       
   245   +[log.phase|phase:       draft]
   213   +[log.phase|phase:       draft]
   246   @@ -15,0 +18 @@
       
   247   +[log.phase|phase:       draft]
   214   +[log.phase|phase:       draft]
   248   @@ -24,0 +28 @@
       
   249   +[log.phase|phase:       draft]
   215   +[log.phase|phase:       draft]
   250   @@ -33,0 +38 @@
       
   251   +[log.phase|phase:       draft]
   216   +[log.phase|phase:       draft]
   252   @@ -43,0 +49 @@
       
   253   +[log.phase|phase:       draft]
   217   +[log.phase|phase:       draft]
   254   @@ -50,0 +57 @@
       
   255   +[log.phase|phase:       draft]
   218   +[log.phase|phase:       draft]
   256   @@ -58,0 +66 @@
       
   257   +[log.phase|phase:       draft]
   219   +[log.phase|phase:       draft]
   258   @@ -66,0 +75 @@
       
   259   +[log.phase|phase:       draft]
   220   +[log.phase|phase:       draft]
   260   @@ -77,0 +87 @@
       
   261   +[log.phase|phase:       draft]
   221   +[log.phase|phase:       draft]
   262 
   222 
   263   $ hg --color=debug -q log > log.out
   223   $ hg --color=debug -q log > log.out
   264   $ hg --color=debug -q log --style default > style.out
   224   $ hg --color=debug -q log --style default > style.out
   265   $ cmp log.out style.out || diff -u log.out style.out
   225   $ cmp log.out style.out || diff -u log.out style.out