comparison tests/test-update-reverse @ 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 3a0b69ea5708
children
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 commit -m "Added a" -d "0 0" 6 hg commit -m "Added a" -d "1000000 0"
7 7
8 touch main 8 touch main
9 hg add main 9 hg add main
10 hg commit -m "Added main" -d "0 0" 10 hg commit -m "Added main" -d "1000000 0"
11 hg checkout 0 11 hg checkout 0
12 12
13 echo Main should be gone 13 echo Main should be gone
14 ls 14 ls
15 15
16 touch side1 16 touch side1
17 hg add side1 17 hg add side1
18 hg commit -m "Added side1" -d "0 0" 18 hg commit -m "Added side1" -d "1000000 0"
19 touch side2 19 touch side2
20 hg add side2 20 hg add side2
21 hg commit -m "Added side2" -d "0 0" 21 hg commit -m "Added side2" -d "1000000 0"
22 22
23 hg log 23 hg log
24 24
25 echo Should have two heads, side2 and main 25 echo Should have two heads, side2 and main
26 hg heads 26 hg heads