tests/test-parse-date.t
changeset 45895 fc4fb2f17dd4
parent 38080 0a10f142299d
child 46419 6894c9ef4dcd
equal deleted inserted replaced
45894:9dc1351d0b5f 45895:fc4fb2f17dd4
    16   (branch merge, don't forget to commit)
    16   (branch merge, don't forget to commit)
    17   $ hg ci -d "1150000000 14400" -m "rev 4 (merge)"
    17   $ hg ci -d "1150000000 14400" -m "rev 4 (merge)"
    18   $ echo "fail" >> a
    18   $ echo "fail" >> a
    19   $ hg ci -d "should fail" -m "fail"
    19   $ hg ci -d "should fail" -m "fail"
    20   hg: parse error: invalid date: 'should fail'
    20   hg: parse error: invalid date: 'should fail'
    21   [255]
    21   [10]
    22   $ hg ci -d "100000000000000000 1400" -m "fail"
    22   $ hg ci -d "100000000000000000 1400" -m "fail"
    23   hg: parse error: date exceeds 32 bits: 100000000000000000
    23   hg: parse error: date exceeds 32 bits: 100000000000000000
    24   [255]
    24   [10]
    25   $ hg ci -d "100000 1400000" -m "fail"
    25   $ hg ci -d "100000 1400000" -m "fail"
    26   hg: parse error: impossible time zone offset: 1400000
    26   hg: parse error: impossible time zone offset: 1400000
    27   [255]
    27   [10]
    28 
    28 
    29 Check with local timezone other than GMT and with DST
    29 Check with local timezone other than GMT and with DST
    30 
    30 
    31   $ TZ="PST+8PDT+7,M4.1.0/02:00:00,M10.5.0/02:00:00"
    31   $ TZ="PST+8PDT+7,M4.1.0/02:00:00,M10.5.0/02:00:00"
    32   $ export TZ
    32   $ export TZ