tests/test-mq-header-date.t
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Fri, 17 Oct 2014 02:07:05 +0900
changeset 22975 461342e1c8aa
parent 22546 aac5482db318
child 23172 e955549cd045
child 23344 6333412245ec
permissions -rw-r--r--
import-checker: check modules for pure Python build correctly Before this patch, "import-checker.py" just replaces "/" in specified filenames by ".". This makes modules for pure Python build belong to "mercurial.pure" package, and prevents "import-checker.py" from correctly checking about cyclic dependency in them. This patch discards "pure" component from fully qualified name of such modules. To avoid discarding "pure" from the module name of standard libraries unexpectedly, this patch allows "dotted_name_of_path" to discard "pure" only from Mercurial specific modules, which are specified via command line arguments.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5788
4107e823dc2c mq: add --currentdate and --date options to qnew and qrefresh
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
diff changeset
     1
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
     2
  $ echo "[extensions]" >> $HGRCPATH
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
     3
  $ echo "mq=" >> $HGRCPATH
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
     4
  $ echo "[diff]" >> $HGRCPATH
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
     5
  $ echo "nodates=true" >> $HGRCPATH
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
     6
  $ catpatch() {
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
     7
  >     cat .hg/patches/$1.patch | sed -e "s/^diff \-r [0-9a-f]* /diff -r ... /" \
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
     8
  >                                    -e "s/^\(# Parent \).*/\1/"
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
     9
  > }
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    10
  $ catlog() {
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    11
  >     catpatch $1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    12
  >     hg log --template "{rev}: {desc} - {author}\n"
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    13
  > }
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    14
  $ catlogd() {
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    15
  >     catpatch $1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    16
  >     hg log --template "{rev}: {desc} - {author} - {date}\n"
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    17
  > }
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    18
  $ drop() {
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    19
  >     hg qpop
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    20
  >     hg qdel $1.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    21
  > }
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    22
  $ runtest() {
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    23
  >     echo ==== init
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    24
  >     hg init a
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    25
  >     cd a
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    26
  >     hg qinit
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    27
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    28
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    29
  >     echo ==== qnew -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    30
  >     hg qnew -d '3 0' 1.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    31
  >     catlogd 1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    32
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    33
  >     echo ==== qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    34
  >     echo "1" >1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    35
  >     hg add
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    36
  >     hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    37
  >     catlogd 1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    38
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    39
  >     echo ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    40
  >     hg qref -d '4 0'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    41
  >     catlogd 1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    42
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    43
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    44
  >     echo ==== qnew
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    45
  >     hg qnew 2.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    46
  >     echo "2" >2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    47
  >     hg add
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    48
  >     hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    49
  >     catlog 2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    50
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    51
  >     echo ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    52
  >     hg qref -d '5 0'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    53
  >     catlog 2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    54
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    55
  >     drop 2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    56
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    57
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    58
  >     echo ==== qnew -d -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    59
  >     hg qnew -d '6 0' -m "Three" 3.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    60
  >     catlogd 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    61
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    62
  >     echo ==== qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    63
  >     echo "3" >3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    64
  >     hg add
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    65
  >     hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    66
  >     catlogd 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    67
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    68
  >     echo ==== qref -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    69
  >     hg qref -m "Drei"
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    70
  >     catlogd 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    71
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    72
  >     echo ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    73
  >     hg qref -d '7 0'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    74
  >     catlogd 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    75
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    76
  >     echo ==== qref -d -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    77
  >     hg qref -d '8 0' -m "Three (again)"
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    78
  >     catlogd 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    79
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    80
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    81
  >     echo ==== qnew -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    82
  >     hg qnew -m "Four" 4.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    83
  >     echo "4" >4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    84
  >     hg add
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    85
  >     hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    86
  >     catlog 4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    87
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    88
  >     echo ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    89
  >     hg qref -d '9 0'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    90
  >     catlog 4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    91
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    92
  >     drop 4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    93
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    94
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    95
  >     echo ==== qnew with HG header
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    96
  >     hg qnew --config 'mq.plain=true' 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    97
  >     hg qpop
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    98
  >     echo "# HG changeset patch" >>.hg/patches/5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
    99
  >     echo "# Date 10 0" >>.hg/patches/5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   100
  >     hg qpush 2>&1 | grep 'Now at'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   101
  >     catlogd 5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   102
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   103
  >     echo ==== hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   104
  >     echo "5" >5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   105
  >     hg add
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   106
  >     hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   107
  >     catlogd 5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   108
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   109
  >     echo ==== hg qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   110
  >     hg qref -d '11 0'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   111
  >     catlogd 5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   112
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   113
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   114
  >     echo ==== qnew with plain header
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   115
  >     hg qnew --config 'mq.plain=true' -d '12 0' 6.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   116
  >     hg qpop
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   117
  >     hg qpush 2>&1 | grep 'now at'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   118
  >     catlog 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   119
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   120
  >     echo ==== hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   121
  >     echo "6" >6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   122
  >     hg add
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   123
  >     hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   124
  >     catlogd 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   125
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   126
  >     echo ==== hg qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   127
  >     hg qref -d '13 0'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   128
  >     catlogd 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   129
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   130
  >     drop 6
17347
2da47de36b6f check-code: fix check for trailing whitespace on continued lines too
Mads Kiilerich <mads@kiilerich.com>
parents: 12461
diff changeset
   131
  > 
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   132
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   133
  >     echo ==== qnew -u
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   134
  >     hg qnew -u jane 6.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   135
  >     echo "6" >6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   136
  >     hg add
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   137
  >     hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   138
  >     catlog 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   139
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   140
  >     echo ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   141
  >     hg qref -d '12 0'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   142
  >     catlog 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   143
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   144
  >     drop 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   145
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   146
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   147
  >     echo ==== qnew -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   148
  >     hg qnew -d '13 0' 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   149
  >     echo "7" >7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   150
  >     hg add
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   151
  >     hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   152
  >     catlog 7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   153
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   154
  >     echo ==== qref -u
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   155
  >     hg qref -u john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   156
  >     catlogd 7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   157
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   158
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   159
  >     echo ==== qnew
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   160
  >     hg qnew 8.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   161
  >     echo "8" >8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   162
  >     hg add
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   163
  >     hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   164
  >     catlog 8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   165
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   166
  >     echo ==== qref -u -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   167
  >     hg qref -u john -d '14 0'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   168
  >     catlog 8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   169
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   170
  >     drop 8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   171
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   172
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   173
  >     echo ==== qnew -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   174
  >     hg qnew -m "Nine" 9.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   175
  >     echo "9" >9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   176
  >     hg add
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   177
  >     hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   178
  >     catlog 9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   179
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   180
  >     echo ==== qref -u -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   181
  >     hg qref -u john -d '15 0'
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   182
  >     catlog 9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   183
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   184
  >     drop 9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   185
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   186
  > 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   187
  >     echo ==== "qpop -a / qpush -a"
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   188
  >     hg qpop -a
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   189
  >     hg qpush -a
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   190
  >     hg log --template "{rev}: {desc} - {author} - {date}\n"
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   191
  > }
5788
4107e823dc2c mq: add --currentdate and --date options to qnew and qrefresh
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
diff changeset
   192
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   193
======= plain headers
5788
4107e823dc2c mq: add --currentdate and --date options to qnew and qrefresh
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
diff changeset
   194
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   195
  $ echo "[mq]" >> $HGRCPATH
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   196
  $ echo "plain=true" >> $HGRCPATH
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   197
  $ mkdir sandbox
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   198
  $ (cd sandbox ; runtest)
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   199
  ==== init
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   200
  ==== qnew -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   201
  Date: 3 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   202
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   203
  0: [mq]: 1.patch - test - 3.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   204
  ==== qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   205
  adding 1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   206
  Date: 3 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   207
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   208
  diff -r ... 1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   209
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   210
  +++ b/1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   211
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   212
  +1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   213
  0: [mq]: 1.patch - test - 3.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   214
  ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   215
  Date: 4 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   216
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   217
  diff -r ... 1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   218
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   219
  +++ b/1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   220
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   221
  +1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   222
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   223
  ==== qnew
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   224
  adding 2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   225
  diff -r ... 2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   226
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   227
  +++ b/2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   228
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   229
  +2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   230
  1: [mq]: 2.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   231
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   232
  ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   233
  Date: 5 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   234
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   235
  diff -r ... 2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   236
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   237
  +++ b/2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   238
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   239
  +2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   240
  1: [mq]: 2.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   241
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   242
  popping 2.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   243
  now at: 1.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   244
  ==== qnew -d -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   245
  Date: 6 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   246
  Three
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   247
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   248
  1: Three - test - 6.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   249
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   250
  ==== qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   251
  adding 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   252
  Date: 6 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   253
  Three
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   254
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   255
  diff -r ... 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   256
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   257
  +++ b/3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   258
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   259
  +3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   260
  1: Three - test - 6.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   261
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   262
  ==== qref -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   263
  Date: 6 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   264
  Drei
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   265
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   266
  diff -r ... 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   267
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   268
  +++ b/3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   269
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   270
  +3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   271
  1: Drei - test - 6.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   272
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   273
  ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   274
  Date: 7 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   275
  Drei
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   276
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   277
  diff -r ... 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   278
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   279
  +++ b/3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   280
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   281
  +3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   282
  1: Drei - test - 7.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   283
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   284
  ==== qref -d -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   285
  Date: 8 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   286
  Three (again)
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   287
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   288
  diff -r ... 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   289
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   290
  +++ b/3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   291
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   292
  +3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   293
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   294
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   295
  ==== qnew -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   296
  adding 4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   297
  Four
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   298
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   299
  diff -r ... 4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   300
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   301
  +++ b/4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   302
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   303
  +4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   304
  2: Four - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   305
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   306
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   307
  ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   308
  Date: 9 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   309
  Four
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   310
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   311
  diff -r ... 4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   312
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   313
  +++ b/4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   314
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   315
  +4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   316
  2: Four - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   317
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   318
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   319
  popping 4.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   320
  now at: 3.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   321
  ==== qnew with HG header
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   322
  popping 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   323
  now at: 3.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   324
  # HG changeset patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   325
  # Date 10 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   326
  2: imported patch 5.patch - test - 10.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   327
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   328
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   329
  ==== hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   330
  adding 5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   331
  # HG changeset patch
22546
aac5482db318 mq: refactor patchheader header ordering to match export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22520
diff changeset
   332
  # Date 10 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   333
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   334
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   335
  diff -r ... 5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   336
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   337
  +++ b/5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   338
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   339
  +5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   340
  2: [mq]: 5.patch - test - 10.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   341
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   342
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   343
  ==== hg qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   344
  # HG changeset patch
22546
aac5482db318 mq: refactor patchheader header ordering to match export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22520
diff changeset
   345
  # Date 11 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   346
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   347
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   348
  diff -r ... 5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   349
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   350
  +++ b/5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   351
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   352
  +5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   353
  2: [mq]: 5.patch - test - 11.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   354
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   355
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   356
  ==== qnew with plain header
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   357
  popping 6.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   358
  now at: 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   359
  now at: 6.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   360
  Date: 12 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   361
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   362
  3: imported patch 6.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   363
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   364
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   365
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   366
  ==== hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   367
  adding 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   368
  Date: 12 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   369
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   370
  diff -r ... 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   371
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   372
  +++ b/6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   373
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   374
  +6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   375
  3: [mq]: 6.patch - test - 12.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   376
  2: [mq]: 5.patch - test - 11.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   377
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   378
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   379
  ==== hg qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   380
  Date: 13 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   381
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   382
  diff -r ... 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   383
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   384
  +++ b/6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   385
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   386
  +6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   387
  3: [mq]: 6.patch - test - 13.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   388
  2: [mq]: 5.patch - test - 11.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   389
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   390
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   391
  popping 6.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   392
  now at: 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   393
  ==== qnew -u
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   394
  adding 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   395
  From: jane
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   396
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   397
  diff -r ... 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   398
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   399
  +++ b/6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   400
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   401
  +6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   402
  3: [mq]: 6.patch - jane
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   403
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   404
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   405
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   406
  ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   407
  Date: 12 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   408
  From: jane
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   409
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   410
  diff -r ... 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   411
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   412
  +++ b/6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   413
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   414
  +6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   415
  3: [mq]: 6.patch - jane
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   416
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   417
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   418
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   419
  popping 6.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   420
  now at: 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   421
  ==== qnew -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   422
  adding 7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   423
  Date: 13 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   424
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   425
  diff -r ... 7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   426
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   427
  +++ b/7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   428
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   429
  +7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   430
  3: [mq]: 7.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   431
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   432
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   433
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   434
  ==== qref -u
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   435
  From: john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   436
  Date: 13 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   437
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   438
  diff -r ... 7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   439
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   440
  +++ b/7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   441
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   442
  +7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   443
  3: [mq]: 7.patch - john - 13.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   444
  2: [mq]: 5.patch - test - 11.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   445
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   446
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   447
  ==== qnew
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   448
  adding 8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   449
  diff -r ... 8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   450
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   451
  +++ b/8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   452
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   453
  +8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   454
  4: [mq]: 8.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   455
  3: [mq]: 7.patch - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   456
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   457
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   458
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   459
  ==== qref -u -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   460
  Date: 14 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   461
  From: john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   462
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   463
  diff -r ... 8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   464
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   465
  +++ b/8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   466
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   467
  +8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   468
  4: [mq]: 8.patch - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   469
  3: [mq]: 7.patch - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   470
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   471
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   472
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   473
  popping 8.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   474
  now at: 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   475
  ==== qnew -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   476
  adding 9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   477
  Nine
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   478
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   479
  diff -r ... 9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   480
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   481
  +++ b/9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   482
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   483
  +9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   484
  4: Nine - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   485
  3: [mq]: 7.patch - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   486
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   487
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   488
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   489
  ==== qref -u -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   490
  Date: 15 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   491
  From: john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   492
  Nine
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   493
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   494
  diff -r ... 9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   495
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   496
  +++ b/9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   497
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   498
  +9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   499
  4: Nine - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   500
  3: [mq]: 7.patch - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   501
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   502
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   503
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   504
  popping 9.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   505
  now at: 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   506
  ==== qpop -a / qpush -a
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   507
  popping 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   508
  popping 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   509
  popping 3.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   510
  popping 1.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   511
  patch queue now empty
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   512
  applying 1.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   513
  applying 3.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   514
  applying 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   515
  applying 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   516
  now at: 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   517
  3: imported patch 7.patch - john - 13.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   518
  2: imported patch 5.patch - test - 11.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   519
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   520
  0: imported patch 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   521
  $ rm -r sandbox
10397
8cb81d75730c mq: add parent node IDs to MQ patches on qrefresh/qnew
Steve Losh <steve@stevelosh.com>
parents: 5822
diff changeset
   522
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   523
======= hg headers
5788
4107e823dc2c mq: add --currentdate and --date options to qnew and qrefresh
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
diff changeset
   524
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   525
  $ echo "plain=false" >> $HGRCPATH
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   526
  $ mkdir sandbox
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   527
  $ (cd sandbox ; runtest)
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   528
  ==== init
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   529
  ==== qnew -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   530
  # HG changeset patch
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   531
  # Date 3 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   532
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   533
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   534
  0: [mq]: 1.patch - test - 3.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   535
  ==== qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   536
  adding 1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   537
  # HG changeset patch
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   538
  # Date 3 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   539
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   540
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   541
  diff -r ... 1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   542
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   543
  +++ b/1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   544
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   545
  +1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   546
  0: [mq]: 1.patch - test - 3.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   547
  ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   548
  # HG changeset patch
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   549
  # Date 4 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   550
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   551
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   552
  diff -r ... 1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   553
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   554
  +++ b/1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   555
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   556
  +1
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   557
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   558
  ==== qnew
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   559
  adding 2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   560
  # HG changeset patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   561
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   562
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   563
  diff -r ... 2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   564
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   565
  +++ b/2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   566
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   567
  +2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   568
  1: [mq]: 2.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   569
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   570
  ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   571
  # HG changeset patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   572
  # Date 5 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   573
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   574
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   575
  diff -r ... 2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   576
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   577
  +++ b/2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   578
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   579
  +2
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   580
  1: [mq]: 2.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   581
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   582
  popping 2.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   583
  now at: 1.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   584
  ==== qnew -d -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   585
  # HG changeset patch
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   586
  # Date 6 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   587
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   588
  Three
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   589
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   590
  1: Three - test - 6.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   591
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   592
  ==== qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   593
  adding 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   594
  # HG changeset patch
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   595
  # Date 6 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   596
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   597
  Three
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   598
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   599
  diff -r ... 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   600
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   601
  +++ b/3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   602
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   603
  +3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   604
  1: Three - test - 6.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   605
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   606
  ==== qref -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   607
  # HG changeset patch
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   608
  # Date 6 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   609
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   610
  Drei
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   611
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   612
  diff -r ... 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   613
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   614
  +++ b/3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   615
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   616
  +3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   617
  1: Drei - test - 6.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   618
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   619
  ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   620
  # HG changeset patch
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   621
  # Date 7 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   622
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   623
  Drei
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   624
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   625
  diff -r ... 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   626
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   627
  +++ b/3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   628
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   629
  +3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   630
  1: Drei - test - 7.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   631
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   632
  ==== qref -d -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   633
  # HG changeset patch
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   634
  # Date 8 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   635
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   636
  Three (again)
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   637
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   638
  diff -r ... 3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   639
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   640
  +++ b/3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   641
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   642
  +3
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   643
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   644
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   645
  ==== qnew -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   646
  adding 4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   647
  # HG changeset patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   648
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   649
  Four
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   650
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   651
  diff -r ... 4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   652
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   653
  +++ b/4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   654
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   655
  +4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   656
  2: Four - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   657
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   658
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   659
  ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   660
  # HG changeset patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   661
  # Date 9 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   662
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   663
  Four
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   664
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   665
  diff -r ... 4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   666
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   667
  +++ b/4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   668
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   669
  +4
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   670
  2: Four - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   671
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   672
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   673
  popping 4.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   674
  now at: 3.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   675
  ==== qnew with HG header
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   676
  popping 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   677
  now at: 3.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   678
  # HG changeset patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   679
  # Date 10 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   680
  2: imported patch 5.patch - test - 10.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   681
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   682
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   683
  ==== hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   684
  adding 5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   685
  # HG changeset patch
22546
aac5482db318 mq: refactor patchheader header ordering to match export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22520
diff changeset
   686
  # Date 10 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   687
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   688
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   689
  diff -r ... 5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   690
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   691
  +++ b/5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   692
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   693
  +5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   694
  2: [mq]: 5.patch - test - 10.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   695
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   696
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   697
  ==== hg qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   698
  # HG changeset patch
22546
aac5482db318 mq: refactor patchheader header ordering to match export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22520
diff changeset
   699
  # Date 11 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   700
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   701
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   702
  diff -r ... 5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   703
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   704
  +++ b/5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   705
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   706
  +5
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   707
  2: [mq]: 5.patch - test - 11.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   708
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   709
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   710
  ==== qnew with plain header
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   711
  popping 6.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   712
  now at: 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   713
  now at: 6.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   714
  Date: 12 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   715
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   716
  3: imported patch 6.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   717
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   718
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   719
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   720
  ==== hg qref
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   721
  adding 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   722
  Date: 12 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   723
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   724
  diff -r ... 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   725
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   726
  +++ b/6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   727
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   728
  +6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   729
  3: [mq]: 6.patch - test - 12.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   730
  2: [mq]: 5.patch - test - 11.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   731
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   732
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   733
  ==== hg qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   734
  Date: 13 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   735
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   736
  diff -r ... 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   737
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   738
  +++ b/6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   739
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   740
  +6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   741
  3: [mq]: 6.patch - test - 13.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   742
  2: [mq]: 5.patch - test - 11.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   743
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   744
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   745
  popping 6.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   746
  now at: 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   747
  ==== qnew -u
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   748
  adding 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   749
  # HG changeset patch
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   750
  # User jane
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   751
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   752
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   753
  diff -r ... 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   754
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   755
  +++ b/6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   756
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   757
  +6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   758
  3: [mq]: 6.patch - jane
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   759
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   760
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   761
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   762
  ==== qref -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   763
  # HG changeset patch
22546
aac5482db318 mq: refactor patchheader header ordering to match export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22520
diff changeset
   764
  # User jane
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   765
  # Date 12 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   766
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   767
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   768
  diff -r ... 6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   769
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   770
  +++ b/6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   771
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   772
  +6
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   773
  3: [mq]: 6.patch - jane
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   774
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   775
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   776
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   777
  popping 6.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   778
  now at: 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   779
  ==== qnew -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   780
  adding 7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   781
  # HG changeset patch
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   782
  # Date 13 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   783
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   784
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   785
  diff -r ... 7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   786
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   787
  +++ b/7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   788
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   789
  +7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   790
  3: [mq]: 7.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   791
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   792
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   793
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   794
  ==== qref -u
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   795
  # HG changeset patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   796
  # User john
22520
9d4ebb75de53 mq: write headers for new HG patches in the same order as export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22519
diff changeset
   797
  # Date 13 0
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   798
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   799
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   800
  diff -r ... 7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   801
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   802
  +++ b/7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   803
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   804
  +7
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   805
  3: [mq]: 7.patch - john - 13.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   806
  2: [mq]: 5.patch - test - 11.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   807
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   808
  0: [mq]: 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   809
  ==== qnew
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   810
  adding 8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   811
  # HG changeset patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   812
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   813
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   814
  diff -r ... 8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   815
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   816
  +++ b/8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   817
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   818
  +8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   819
  4: [mq]: 8.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   820
  3: [mq]: 7.patch - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   821
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   822
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   823
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   824
  ==== qref -u -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   825
  # HG changeset patch
22546
aac5482db318 mq: refactor patchheader header ordering to match export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22520
diff changeset
   826
  # User john
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   827
  # Date 14 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   828
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   829
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   830
  diff -r ... 8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   831
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   832
  +++ b/8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   833
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   834
  +8
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   835
  4: [mq]: 8.patch - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   836
  3: [mq]: 7.patch - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   837
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   838
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   839
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   840
  popping 8.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   841
  now at: 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   842
  ==== qnew -m
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   843
  adding 9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   844
  # HG changeset patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   845
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   846
  Nine
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   847
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   848
  diff -r ... 9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   849
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   850
  +++ b/9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   851
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   852
  +9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   853
  4: Nine - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   854
  3: [mq]: 7.patch - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   855
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   856
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   857
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   858
  ==== qref -u -d
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   859
  # HG changeset patch
22546
aac5482db318 mq: refactor patchheader header ordering to match export (BC)
Mads Kiilerich <madski@unity3d.com>
parents: 22520
diff changeset
   860
  # User john
12461
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   861
  # Date 15 0
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   862
  # Parent 
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   863
  Nine
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   864
  
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   865
  diff -r ... 9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   866
  --- /dev/null
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   867
  +++ b/9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   868
  @@ -0,0 +1,1 @@
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   869
  +9
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   870
  4: Nine - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   871
  3: [mq]: 7.patch - john
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   872
  2: [mq]: 5.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   873
  1: Three (again) - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   874
  0: [mq]: 1.patch - test
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   875
  popping 9.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   876
  now at: 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   877
  ==== qpop -a / qpush -a
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   878
  popping 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   879
  popping 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   880
  popping 3.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   881
  popping 1.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   882
  patch queue now empty
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   883
  applying 1.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   884
  applying 3.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   885
  applying 5.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   886
  applying 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   887
  now at: 7.patch
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   888
  3: imported patch 7.patch - john - 13.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   889
  2: imported patch 5.patch - test - 11.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   890
  1: Three (again) - test - 8.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   891
  0: imported patch 1.patch - test - 4.00
4a86b30de425 tests: unify test-mq-header-date
Matt Mackall <mpm@selenic.com>
parents: 10397
diff changeset
   892
  $ rm -r sandbox