comparison tests/test-diffdir @ 1933:7544700fd931

Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. Some systems show "Thu Jan 01" instead of "Thu Jan 1", which breaks tests. Using "1000000" yields "Mon Jan 12 13:46:40 1970", which looks the same on all systems.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 13 Mar 2006 13:05:41 +0100
parents fde8fb2cbede
children 096f1c73cdc3
comparison
equal deleted inserted replaced
1932:82995896d5af 1933:7544700fd931
1 #!/bin/sh 1 #!/bin/sh
2 2
3 hg init 3 hg init
4 touch a 4 touch a
5 hg add a 5 hg add a
6 hg ci -m "a" -d "0 0" 6 hg ci -m "a" -d "1000000 0"
7 7
8 echo 123 > b 8 echo 123 > b
9 hg add b 9 hg add b
10 hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ 10 hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
11 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" 11 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"