tests/test-parse-date.t
author Christian Ebert <blacktrash@gmx.net>
Wed, 01 Dec 2010 10:51:49 +0100
branchstable
changeset 13069 6aff4f144ad3
parent 12365 22f3353bcc36
child 13869 b470894c33f8
permissions -rw-r--r--
keyword: copy: when copied source is a symlink, follow it 1) hg cp symlink copy -> copy is a symlink. 2) cp symlink copy; hg cp -A symlink copy -> copy is a regular file. In the second case we have to follow the symlink to its target to find out whether we have to unexpand keywords in the copy. Add test covering the case where the copied link's target is ignored by keyword but has content which would match the regex for expanded keywords to check whether we indeed leave the destination alone.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
     1
This runs with TZ="GMT"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
     2
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
     3
  $ hg init
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
     4
  $ echo "test-parse-date" > a
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
     5
  $ hg add a
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
     6
  $ hg ci -d "2006-02-01 13:00:30" -m "rev 0"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
     7
  $ echo "hi!" >> a
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
     8
  $ hg ci -d "2006-02-01 13:00:30 -0500" -m "rev 1"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
     9
  $ hg tag -d "2006-04-15 13:30" "Hi"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    10
  $ hg backout --merge -d "2006-04-15 13:30 +0200" -m "rev 3" 1
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    11
  reverting a
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    12
  created new head
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    13
  changeset 3:107ce1ee2b43 backs out changeset 1:25a1420a55f8
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    14
  merging with changeset 3:107ce1ee2b43
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    15
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    16
  (branch merge, don't forget to commit)
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    17
  $ hg ci -d "1150000000 14400" -m "rev 4 (merge)"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    18
  $ echo "fail" >> a
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    19
  $ hg ci -d "should fail" -m "fail"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    20
  abort: invalid date: 'should fail'
12316
4134686b83e1 tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents: 12123
diff changeset
    21
  [255]
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    22
  $ hg ci -d "100000000000000000 1400" -m "fail"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    23
  abort: date exceeds 32 bits: 100000000000000000
12316
4134686b83e1 tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents: 12123
diff changeset
    24
  [255]
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    25
  $ hg ci -d "100000 1400000" -m "fail"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    26
  abort: impossible time zone offset: 1400000
12316
4134686b83e1 tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents: 12123
diff changeset
    27
  [255]
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    28
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    29
Check with local timezone other than GMT and with DST
2522
85f796baab10 Allow the use of human readable dates (issue 251)
Jose M. Prieto <jmprieto@gmx.net>
parents:
diff changeset
    30
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    31
  $ TZ="PST+8PDT"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    32
  $ export TZ
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    33
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    34
PST=UTC-8 / PDT=UTC-7
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    35
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    36
  $ hg debugrebuildstate
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    37
  $ echo "a" > a
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    38
  $ hg ci -d "2006-07-15 13:30" -m "summer@UTC-7"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    39
  $ hg debugrebuildstate
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    40
  $ echo "b" > a
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    41
  $ hg ci -d "2006-07-15 13:30 +0500" -m "summer@UTC+5"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    42
  $ hg debugrebuildstate
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    43
  $ echo "c" > a
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    44
  $ hg ci -d "2006-01-15 13:30" -m "winter@UTC-8"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    45
  $ hg debugrebuildstate
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    46
  $ echo "d" > a
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    47
  $ hg ci -d "2006-01-15 13:30 +0500" -m "winter@UTC+5"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    48
  $ hg log --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    49
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    50
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    51
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    52
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    53
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    54
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    55
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    56
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    57
  Wed Feb 01 13:00:30 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    58
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    59
Test issue1014 (fractional timezones)
3255
e96d2956eb4a util.strdate: compute timestamp using UTC, not local timezone
Jose M. Prieto <jmprieto@gmx.net>
parents: 2524
diff changeset
    60
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    61
  $ hg debugdate "1000000000 -16200" # 0430
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    62
  internal: 1000000000 -16200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    63
  standard: Sun Sep 09 06:16:40 2001 +0430
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    64
  $ hg debugdate "1000000000 -15300" # 0415
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    65
  internal: 1000000000 -15300
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    66
  standard: Sun Sep 09 06:01:40 2001 +0415
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    67
  $ hg debugdate "1000000000 -14400" # 0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    68
  internal: 1000000000 -14400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    69
  standard: Sun Sep 09 05:46:40 2001 +0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    70
  $ hg debugdate "1000000000 0"      # GMT
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    71
  internal: 1000000000 0
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    72
  standard: Sun Sep 09 01:46:40 2001 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    73
  $ hg debugdate "1000000000 14400"  # -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    74
  internal: 1000000000 14400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    75
  standard: Sat Sep 08 21:46:40 2001 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    76
  $ hg debugdate "1000000000 15300"  # -0415
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    77
  internal: 1000000000 15300
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    78
  standard: Sat Sep 08 21:31:40 2001 -0415
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    79
  $ hg debugdate "1000000000 16200"  # -0430
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    80
  internal: 1000000000 16200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    81
  standard: Sat Sep 08 21:16:40 2001 -0430
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    82
  $ hg debugdate "Sat Sep 08 21:16:40 2001 +0430"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    83
  internal: 999967600 -16200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    84
  standard: Sat Sep 08 21:16:40 2001 +0430
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    85
  $ hg debugdate "Sat Sep 08 21:16:40 2001 -0430"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    86
  internal: 1000000000 16200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    87
  standard: Sat Sep 08 21:16:40 2001 -0430
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    88
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    89
Test 12-hours times
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    90
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    91
  $ hg debugdate "2006-02-01 1:00:30PM +0000"
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    92
  internal: 1138798830 0
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    93
  standard: Wed Feb 01 13:00:30 2006 +0000
12365
22f3353bcc36 tests: cleanup exit code handling in unified tests
Matt Mackall <mpm@selenic.com>
parents: 12316
diff changeset
    94
  $ hg debugdate "1:00:30PM" > /dev/null
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    95
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    96
Test date formats with '>' or '<' accompanied by space characters
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    97
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    98
  $ hg log -d '>' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
    99
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   100
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   101
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   102
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   103
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   104
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   105
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   106
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   107
  Wed Feb 01 13:00:30 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   108
  $ hg log -d '<' hg log -d '>' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   109
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   110
  $ hg log -d ' >' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   111
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   112
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   113
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   114
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   115
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   116
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   117
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   118
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   119
  Wed Feb 01 13:00:30 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   120
  $ hg log -d ' <' --template '{date|date}\n'
6236
ad6b123de1c7 Add tests for the fixes to issue1014 (fractional timezones)
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3256
diff changeset
   121
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   122
  $ hg log -d '> ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   123
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   124
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   125
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   126
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   127
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   128
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   129
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   130
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   131
  Wed Feb 01 13:00:30 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   132
  $ hg log -d '< ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   133
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   134
  $ hg log -d ' > ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   135
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   136
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   137
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   138
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   139
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   140
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   141
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   142
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   143
  Wed Feb 01 13:00:30 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   144
  $ hg log -d ' < ' --template '{date|date}\n'
7953
8c6f823efcc9 Correct a bug on date formats with '>' or '<' accompanied by space characters.
Justin Peng <justin.peng.sw@gmail.com>
parents: 6236
diff changeset
   145
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   146
  $ hg log -d '>02/01' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   147
  $ hg log -d '<02/01' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   148
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   149
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   150
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   151
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   152
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   153
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   154
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   155
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   156
  Wed Feb 01 13:00:30 2006 +0000
9384
d91078a2652f test-parse-date: test 12-hours time formats (issue1804)
Patrick Mezard <pmezard@gmail.com>
parents: 7953
diff changeset
   157
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   158
  $ hg log -d ' >02/01' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   159
  $ hg log -d ' <02/01' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   160
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   161
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   162
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   163
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   164
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   165
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   166
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   167
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   168
  Wed Feb 01 13:00:30 2006 +0000
7953
8c6f823efcc9 Correct a bug on date formats with '>' or '<' accompanied by space characters.
Justin Peng <justin.peng.sw@gmail.com>
parents: 6236
diff changeset
   169
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   170
  $ hg log -d '> 02/01' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   171
  $ hg log -d '< 02/01' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   172
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   173
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   174
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   175
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   176
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   177
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   178
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   179
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   180
  Wed Feb 01 13:00:30 2006 +0000
7953
8c6f823efcc9 Correct a bug on date formats with '>' or '<' accompanied by space characters.
Justin Peng <justin.peng.sw@gmail.com>
parents: 6236
diff changeset
   181
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   182
  $ hg log -d ' > 02/01' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   183
  $ hg log -d ' < 02/01' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   184
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   185
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   186
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   187
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   188
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   189
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   190
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   191
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   192
  Wed Feb 01 13:00:30 2006 +0000
7953
8c6f823efcc9 Correct a bug on date formats with '>' or '<' accompanied by space characters.
Justin Peng <justin.peng.sw@gmail.com>
parents: 6236
diff changeset
   193
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   194
  $ hg log -d '>02/01 ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   195
  $ hg log -d '<02/01 ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   196
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   197
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   198
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   199
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   200
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   201
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   202
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   203
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   204
  Wed Feb 01 13:00:30 2006 +0000
7953
8c6f823efcc9 Correct a bug on date formats with '>' or '<' accompanied by space characters.
Justin Peng <justin.peng.sw@gmail.com>
parents: 6236
diff changeset
   205
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   206
  $ hg log -d ' >02/01 ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   207
  $ hg log -d ' <02/01 ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   208
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   209
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   210
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   211
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   212
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   213
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   214
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   215
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   216
  Wed Feb 01 13:00:30 2006 +0000
7953
8c6f823efcc9 Correct a bug on date formats with '>' or '<' accompanied by space characters.
Justin Peng <justin.peng.sw@gmail.com>
parents: 6236
diff changeset
   217
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   218
  $ hg log -d '> 02/01 ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   219
  $ hg log -d '< 02/01 ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   220
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   221
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   222
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   223
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   224
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   225
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   226
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   227
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   228
  Wed Feb 01 13:00:30 2006 +0000
7953
8c6f823efcc9 Correct a bug on date formats with '>' or '<' accompanied by space characters.
Justin Peng <justin.peng.sw@gmail.com>
parents: 6236
diff changeset
   229
12123
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   230
  $ hg log -d ' > 02/01 ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   231
  $ hg log -d ' < 02/01 ' --template '{date|date}\n'
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   232
  Sun Jan 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   233
  Sun Jan 15 13:30:00 2006 -0800
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   234
  Sat Jul 15 13:30:00 2006 +0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   235
  Sat Jul 15 13:30:00 2006 -0700
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   236
  Sun Jun 11 00:26:40 2006 -0400
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   237
  Sat Apr 15 13:30:00 2006 +0200
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   238
  Sat Apr 15 13:30:00 2006 +0000
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   239
  Wed Feb 01 13:00:30 2006 -0500
323292c2e566 tests: unify test-parse-date
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10282
diff changeset
   240
  Wed Feb 01 13:00:30 2006 +0000