[PATCH] test-hgweb-*: replace remaining "XX years ago" by a fixed string

Gilles Moris gilles.moris at free.fr
Wed Dec 24 05:12:27 CST 2008


6 files changed, 23 insertions(+), 23 deletions(-)
tests/test-hgweb-diffs       |    8 ++++----
tests/test-hgweb-diffs.out   |    8 ++++----
tests/test-hgweb-filelog     |   10 +++++-----
tests/test-hgweb-filelog.out |   12 ++++++------
tests/test-hgweb-removed     |    4 ++--
tests/test-hgweb-removed.out |    4 ++--


# HG changeset patch
# User Gilles Moris <gilles.moris at free.fr>
# Date 1230113685 -3600
# Node ID 56f97bdad4158843496b92bca57202175d671945
# Parent  73268e317ad3d422850b85925253cd186fe6303c
test-hgweb-*: replace remaining "XX years ago" by a fixed string

diff -r 73268e317ad3 -r 56f97bdad415 tests/test-hgweb-diffs
--- a/tests/test-hgweb-diffs	Sun Dec 21 12:19:12 2008 -0800
+++ b/tests/test-hgweb-diffs	Wed Dec 24 11:14:45 2008 +0100
@@ -14,10 +14,10 @@
 cat hg.pid >> $DAEMON_PIDS
 
 echo % revision
-"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/0'
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/0' | sed "s/[0-9]* years ago/long ago/g"
 
 echo % diff removed file
-"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a'
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a' | sed "s/[0-9]* years ago/long ago/g"
 
 echo % set up hgweb with git diffs
 "$TESTDIR/killdaemons.py"
@@ -25,10 +25,10 @@
 cat hg.pid >> $DAEMON_PIDS
 
 echo % revision
-"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/0'
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/0' | sed "s/[0-9]* years ago/long ago/g"
 
 echo % diff removed file
-"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a'
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a' | sed "s/[0-9]* years ago/long ago/g"
 
 echo % errors
 cat errors.log
diff -r 73268e317ad3 -r 56f97bdad415 tests/test-hgweb-diffs.out
--- a/tests/test-hgweb-diffs.out	Sun Dec 21 12:19:12 2008 -0800
+++ b/tests/test-hgweb-diffs.out	Wed Dec 24 11:14:45 2008 +0100
@@ -59,7 +59,7 @@
 </tr>
 <tr>
  <th class="date">date</th>
- <td class="date">Thu Jan 01 00:00:00 1970 +0000 (38 years ago)</td></tr>
+ <td class="date">Thu Jan 01 00:00:00 1970 +0000 (long ago)</td></tr>
 <tr>
  <th class="author">parents</th>
  <td class="author"></td>
@@ -154,7 +154,7 @@
 </tr>
 <tr>
  <th>date</th>
- <td>Thu Jan 01 00:00:00 1970 +0000 (38 years ago)</td>
+ <td>Thu Jan 01 00:00:00 1970 +0000 (long ago)</td>
 </tr>
 <tr>
  <th>parents</th>
@@ -241,7 +241,7 @@
 </tr>
 <tr>
  <th class="date">date</th>
- <td class="date">Thu Jan 01 00:00:00 1970 +0000 (38 years ago)</td></tr>
+ <td class="date">Thu Jan 01 00:00:00 1970 +0000 (long ago)</td></tr>
 <tr>
  <th class="author">parents</th>
  <td class="author"></td>
@@ -338,7 +338,7 @@
 </tr>
 <tr>
  <th>date</th>
- <td>Thu Jan 01 00:00:00 1970 +0000 (38 years ago)</td>
+ <td>Thu Jan 01 00:00:00 1970 +0000 (long ago)</td>
 </tr>
 <tr>
  <th>parents</th>
diff -r 73268e317ad3 -r 56f97bdad415 tests/test-hgweb-filelog
--- a/tests/test-hgweb-filelog	Sun Dec 21 12:19:12 2008 -0800
+++ b/tests/test-hgweb-filelog	Wed Dec 24 11:14:45 2008 +0100
@@ -22,19 +22,19 @@
 cat hg.pid >> $DAEMON_PIDS
 
 echo % tip - two revisions
-("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/a')
+("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/a' | sed "s/[0-9]* years/old/g")
 
 echo % second version - two revisions
-("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/3/a')
+("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/3/a' | sed "s/[0-9]* years/old/g")
 
 echo % first deleted - one revision
-("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/2/a')
+("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/2/a' | sed "s/[0-9]* years/old/g")
 
 echo % first version - one revision
-("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/1/a')
+("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/1/a' | sed "s/[0-9]* years/old/g")
 
 echo % before addition - error
-("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a')
+("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a' | sed "s/[0-9]* years/old/g")
 
 echo % errors
 cat errors.log
diff -r 73268e317ad3 -r 56f97bdad415 tests/test-hgweb-filelog.out
--- a/tests/test-hgweb-filelog.out	Sun Dec 21 12:19:12 2008 -0800
+++ b/tests/test-hgweb-filelog.out	Wed Dec 24 11:14:45 2008 +0100
@@ -120,12 +120,12 @@
   <th class="description">description</th>
  </tr>
  <tr class="parity0">
-  <td class="age">38 years</td>
+  <td class="age">old</td>
   <td class="author">test</td>
   <td class="description"><a href="/rev/01de2d66a28d">second a</a></td>
  </tr>
  <tr class="parity1">
-  <td class="age">38 years</td>
+  <td class="age">old</td>
   <td class="author">test</td>
   <td class="description"><a href="/rev/5ed941583260">first a</a></td>
  </tr>
@@ -203,12 +203,12 @@
   <th class="description">description</th>
  </tr>
  <tr class="parity0">
-  <td class="age">38 years</td>
+  <td class="age">old</td>
   <td class="author">test</td>
   <td class="description"><a href="/rev/01de2d66a28d">second a</a></td>
  </tr>
  <tr class="parity1">
-  <td class="age">38 years</td>
+  <td class="age">old</td>
   <td class="author">test</td>
   <td class="description"><a href="/rev/5ed941583260">first a</a></td>
  </tr>
@@ -286,7 +286,7 @@
   <th class="description">description</th>
  </tr>
  <tr class="parity0">
-  <td class="age">38 years</td>
+  <td class="age">old</td>
   <td class="author">test</td>
   <td class="description"><a href="/rev/5ed941583260">first a</a></td>
  </tr>
@@ -364,7 +364,7 @@
   <th class="description">description</th>
  </tr>
  <tr class="parity0">
-  <td class="age">38 years</td>
+  <td class="age">old</td>
   <td class="author">test</td>
   <td class="description"><a href="/rev/5ed941583260">first a</a></td>
  </tr>
diff -r 73268e317ad3 -r 56f97bdad415 tests/test-hgweb-removed
--- a/tests/test-hgweb-removed	Sun Dec 21 12:19:12 2008 -0800
+++ b/tests/test-hgweb-removed	Wed Dec 24 11:14:45 2008 +0100
@@ -11,7 +11,7 @@
 cat hg.pid >> $DAEMON_PIDS
 
 echo % revision
-"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip'
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip' | sed "s/[0-9]* years ago/long ago/g"
 
 echo % diff removed file
-"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a'
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a' | sed "s/[0-9]* years ago/long ago/g"
diff -r 73268e317ad3 -r 56f97bdad415 tests/test-hgweb-removed.out
--- a/tests/test-hgweb-removed.out	Sun Dec 21 12:19:12 2008 -0800
+++ b/tests/test-hgweb-removed.out	Wed Dec 24 11:14:45 2008 +0100
@@ -57,7 +57,7 @@
 </tr>
 <tr>
  <th class="date">date</th>
- <td class="date">Thu Jan 01 00:00:00 1970 +0000 (38 years ago)</td></tr>
+ <td class="date">Thu Jan 01 00:00:00 1970 +0000 (long ago)</td></tr>
 <tr>
  <th class="author">parents</th>
  <td class="author"><a href="/rev/cb9a9f314b8b">cb9a9f314b8b</a> </td>
@@ -148,7 +148,7 @@
 </tr>
 <tr>
  <th>date</th>
- <td>Thu Jan 01 00:00:00 1970 +0000 (38 years ago)</td>
+ <td>Thu Jan 01 00:00:00 1970 +0000 (long ago)</td>
 </tr>
 <tr>
  <th>parents</th>


More information about the Mercurial-devel mailing list