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