Show More
@@ -1,34 +1,45 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | # This runs with TZ="GMT" |
|
4 | 4 | hg init |
|
5 | 5 | echo "test-parse-date" > a |
|
6 | 6 | hg add a |
|
7 | 7 | hg ci -d "2006-02-01 13:00:30" -m "rev 0" |
|
8 | 8 | echo "hi!" >> a |
|
9 | 9 | hg ci -d "2006-02-01 13:00:30 -0500" -m "rev 1" |
|
10 | 10 | hg tag -d "2006-04-15 13:30" "Hi" |
|
11 | 11 | hg backout --merge -d "2006-04-15 13:30 +0200" -m "rev 3" 1 |
|
12 | 12 | hg ci -d "1150000000 14400" -m "rev 4 (merge)" |
|
13 | 13 | echo "fail" >> a |
|
14 | 14 | hg ci -d "should fail" -m "fail" |
|
15 | 15 | hg ci -d "100000000000000000 1400" -m "fail" |
|
16 | 16 | hg ci -d "100000 1400000" -m "fail" |
|
17 | 17 | |
|
18 | 18 | # Check with local timezone other than GMT and with DST |
|
19 | 19 | TZ="PST+8PDT" |
|
20 | 20 | export TZ |
|
21 | 21 | # PST=UTC-8 / PDT=UTC-7 |
|
22 | 22 | hg debugrebuildstate |
|
23 | 23 | echo "a" > a |
|
24 | 24 | hg ci -d "2006-07-15 13:30" -m "summer@UTC-7" |
|
25 | 25 | hg debugrebuildstate |
|
26 | 26 | echo "b" > a |
|
27 | 27 | hg ci -d "2006-07-15 13:30 +0500" -m "summer@UTC+5" |
|
28 | 28 | hg debugrebuildstate |
|
29 | 29 | echo "c" > a |
|
30 | 30 | hg ci -d "2006-01-15 13:30" -m "winter@UTC-8" |
|
31 | 31 | hg debugrebuildstate |
|
32 | 32 | echo "d" > a |
|
33 | 33 | hg ci -d "2006-01-15 13:30 +0500" -m "winter@UTC+5" |
|
34 | 34 | hg log --template '{date|date}\n' |
|
35 | ||
|
36 | # Test issue1014 (fractional timezones) | |
|
37 | hg debugdate "1000000000 -16200" # 0430 | |
|
38 | hg debugdate "1000000000 -15300" # 0415 | |
|
39 | hg debugdate "1000000000 -14400" # 0400 | |
|
40 | hg debugdate "1000000000 0" # GMT | |
|
41 | hg debugdate "1000000000 14400" # -0400 | |
|
42 | hg debugdate "1000000000 15300" # -0415 | |
|
43 | hg debugdate "1000000000 16200" # -0430 | |
|
44 | hg debugdate "Sat Sep 08 21:16:40 2001 +0430" | |
|
45 | hg debugdate "Sat Sep 08 21:16:40 2001 -0430" |
@@ -1,17 +1,35 b'' | |||
|
1 | 1 | reverting a |
|
2 | 2 | changeset 3:107ce1ee2b43 backs out changeset 1:25a1420a55f8 |
|
3 | 3 | merging with changeset 3:107ce1ee2b43 |
|
4 | 4 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
5 | 5 | (branch merge, don't forget to commit) |
|
6 | 6 | abort: invalid date: 'should fail' |
|
7 | 7 | abort: date exceeds 32 bits: 100000000000000000 |
|
8 | 8 | abort: impossible time zone offset: 1400000 |
|
9 | 9 | Sun Jan 15 13:30:00 2006 +0500 |
|
10 | 10 | Sun Jan 15 13:30:00 2006 -0800 |
|
11 | 11 | Sat Jul 15 13:30:00 2006 +0500 |
|
12 | 12 | Sat Jul 15 13:30:00 2006 -0700 |
|
13 | 13 | Sun Jun 11 00:26:40 2006 -0400 |
|
14 | 14 | Sat Apr 15 13:30:00 2006 +0200 |
|
15 | 15 | Sat Apr 15 13:30:00 2006 +0000 |
|
16 | 16 | Wed Feb 01 13:00:30 2006 -0500 |
|
17 | 17 | Wed Feb 01 13:00:30 2006 +0000 |
|
18 | internal: 1000000000 -16200 | |
|
19 | standard: Sun Sep 09 06:16:40 2001 +0430 | |
|
20 | internal: 1000000000 -15300 | |
|
21 | standard: Sun Sep 09 06:01:40 2001 +0415 | |
|
22 | internal: 1000000000 -14400 | |
|
23 | standard: Sun Sep 09 05:46:40 2001 +0400 | |
|
24 | internal: 1000000000 0 | |
|
25 | standard: Sun Sep 09 01:46:40 2001 +0000 | |
|
26 | internal: 1000000000 14400 | |
|
27 | standard: Sat Sep 08 21:46:40 2001 -0400 | |
|
28 | internal: 1000000000 15300 | |
|
29 | standard: Sat Sep 08 21:31:40 2001 -0415 | |
|
30 | internal: 1000000000 16200 | |
|
31 | standard: Sat Sep 08 21:16:40 2001 -0430 | |
|
32 | internal: 999967600 -16200 | |
|
33 | standard: Sat Sep 08 21:16:40 2001 +0430 | |
|
34 | internal: 1000000000 16200 | |
|
35 | standard: Sat Sep 08 21:16:40 2001 -0430 |
General Comments 0
You need to be logged in to leave comments.
Login now