tests/test-template-map.t
author Manuel Jacob <me@manueljacob.de>
Thu, 15 Sep 2022 01:48:38 +0200
changeset 49494 c96ed4029fda
parent 48876 42d2b31cee0b
child 50320 adecb1ab4a0d
permissions -rw-r--r--
templates: add filter to reverse list The filter supports only lists because for lists, it’s straightforward to implement. Reversing text doesn’t seem very useful and is hard to implement. Reversing the bytes would break multi-bytes encodings. Reversing the code points would break characters consisting of multiple code points. Reversing graphemes is non-trivial without using a library not included in the standard library.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
38433
ddce7bdf7f3c tests: extract test-template-map.t from test-command-template.t
Yuya Nishihara <yuya@tcha.org>
parents: 38427
diff changeset
     1
Test template map files and styles
ddce7bdf7f3c tests: extract test-template-map.t from test-command-template.t
Yuya Nishihara <yuya@tcha.org>
parents: 38427
diff changeset
     2
==================================
ddce7bdf7f3c tests: extract test-template-map.t from test-command-template.t
Yuya Nishihara <yuya@tcha.org>
parents: 38427
diff changeset
     3
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
     4
  $ hg init a
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
     5
  $ cd a
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
     6
  $ echo a > a
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
     7
  $ hg add a
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
     8
  $ echo line 1 > b
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
     9
  $ echo line 2 >> b
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    10
  $ hg commit -l b -d '1000000 0' -u 'User Name <user@hostname>'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    11
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    12
  $ hg add b
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    13
  $ echo other 1 > c
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    14
  $ echo other 2 >> c
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    15
  $ echo >> c
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    16
  $ echo other 3 >> c
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    17
  $ hg commit -l c -d '1100000 0' -u 'A. N. Other <other@place>'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    18
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    19
  $ hg add c
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    20
  $ hg commit -m 'no person' -d '1200000 0' -u 'other@place'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    21
  $ echo c >> c
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    22
  $ hg commit -m 'no user, no domain' -d '1300000 0' -u 'person'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    23
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    24
  $ echo foo > .hg/branch
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    25
  $ hg commit -m 'new branch' -d '1400000 0' -u 'person'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    26
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    27
  $ hg co -q 3
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    28
  $ echo other 4 >> d
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    29
  $ hg add d
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    30
  $ hg commit -m 'new head' -d '1500000 0' -u 'person'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    31
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    32
  $ hg merge -q foo
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    33
  $ hg commit -m 'merge' -d '1500001 0' -u 'person'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    34
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    35
Second branch starting at nullrev:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    36
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    37
  $ hg update null
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    38
  0 files updated, 0 files merged, 4 files removed, 0 files unresolved
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    39
  $ echo second > second
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    40
  $ hg add second
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    41
  $ hg commit -m second -d '1000000 0' -u 'User Name <user@hostname>'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    42
  created new head
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    43
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    44
  $ echo third > third
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    45
  $ hg add third
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    46
  $ hg mv second fourth
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    47
  $ hg commit -m third -d "2020-01-01 10:01"
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    48
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    49
Make sure user/global hgrc does not affect tests
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    50
45765
ed84a4d48910 config: add a new [command-templates] section for templates defined by hg
Martin von Zweigbergk <martinvonz@google.com>
parents: 45259
diff changeset
    51
  $ echo '[command-templates]' > .hg/hgrc
ed84a4d48910 config: add a new [command-templates] section for templates defined by hg
Martin von Zweigbergk <martinvonz@google.com>
parents: 45259
diff changeset
    52
  $ echo 'log =' >> .hg/hgrc
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    53
  $ echo '[ui]' > .hg/hgrc
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    54
  $ echo 'style =' >> .hg/hgrc
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
    55
20668
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    56
Add some simple styles to settings
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    57
32875
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    58
  $ cat <<'EOF' >> .hg/hgrc
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    59
  > [templates]
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    60
  > simple = "{rev}\n"
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    61
  > simple2 = {rev}\n
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    62
  > rev = "should not precede {rev} keyword\n"
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    63
  > EOF
20668
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    64
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    65
  $ hg log -l1 -Tsimple
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    66
  8
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    67
  $ hg log -l1 -Tsimple2
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    68
  8
32875
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    69
  $ hg log -l1 -Trev
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    70
  should not precede 8 keyword
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    71
  $ hg log -l1 -T '{simple}'
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    72
  8
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    73
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    74
Map file shouldn't see user templates:
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    75
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    76
  $ cat <<EOF > tmpl
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    77
  > changeset = 'nothing expanded:{simple}\n'
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    78
  > EOF
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    79
  $ hg log -l1 --style ./tmpl
c8f2cf18b82e formatter: load templates section like a map file
Yuya Nishihara <yuya@tcha.org>
parents: 32874
diff changeset
    80
  nothing expanded:
20668
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    81
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    82
Test templates and style maps in files:
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    83
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    84
  $ echo "{rev}" > tmpl
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    85
  $ hg log -l1 -T./tmpl
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    86
  8
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    87
  $ hg log -l1 -Tblah/blah
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    88
  blah/blah (no-eol)
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    89
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    90
  $ printf 'changeset = "{rev}\\n"\n' > map-simple
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    91
  $ hg log -l1 -T./map-simple
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    92
  8
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
    93
34715
f17a0e18c47e templater: load aliases from [templatealias] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34714
diff changeset
    94
 a map file may have [templates] and [templatealias] sections:
34714
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
    95
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
    96
  $ cat <<'EOF' > map-simple
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
    97
  > [templates]
34715
f17a0e18c47e templater: load aliases from [templatealias] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34714
diff changeset
    98
  > changeset = "{a}\n"
f17a0e18c47e templater: load aliases from [templatealias] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34714
diff changeset
    99
  > [templatealias]
f17a0e18c47e templater: load aliases from [templatealias] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34714
diff changeset
   100
  > a = rev
34714
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   101
  > EOF
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   102
  $ hg log -l1 -T./map-simple
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   103
  8
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   104
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   105
 so it can be included in hgrc
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   106
37418
afd7b0afe4a6 tests: don't drop global hgrc
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37404
diff changeset
   107
  $ cat <<EOF > myhgrc
afd7b0afe4a6 tests: don't drop global hgrc
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37404
diff changeset
   108
  > %include $HGRCPATH
34714
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   109
  > %include map-simple
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   110
  > [templates]
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   111
  > foo = "{changeset}"
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   112
  > EOF
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   113
  $ HGRCPATH=./myhgrc hg log -l1 -Tfoo
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   114
  8
34715
f17a0e18c47e templater: load aliases from [templatealias] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34714
diff changeset
   115
  $ HGRCPATH=./myhgrc hg log -l1 -T'{a}\n'
f17a0e18c47e templater: load aliases from [templatealias] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34714
diff changeset
   116
  8
34714
f4aeb952ab77 templater: load template fragments from [templates] section in map file
Yuya Nishihara <yuya@tcha.org>
parents: 34659
diff changeset
   117
29848
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   118
Test template map inheritance
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   119
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   120
  $ echo "__base__ = map-cmdline.default" > map-simple
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   121
  $ printf 'cset = "changeset: ***{rev}***\\n"\n' >> map-simple
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   122
  $ hg log -l1 -T./map-simple
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   123
  changeset: ***8***
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   124
  tag:         tip
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   125
  user:        test
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   126
  date:        Wed Jan 01 10:01:00 2020 +0000
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   127
  summary:     third
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   128
  
45207
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   129
Test map inheritance with non-existent base
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   130
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   131
  $ echo "__base__ = non-existent" > map-base-nonexistent
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   132
  $ hg log -l1 -T./map-base-nonexistent
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   133
  abort: style '$TESTTMP/a/non-existent' not found
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   134
  (available styles: bisect, changelog, compact, default, phases, show, status, xml)
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   135
  [255]
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   136
45222
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   137
Test map inheritance with directory as base
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   138
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   139
  $ mkdir somedir
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   140
  $ echo "__base__ = somedir" > map-base-dir
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   141
  $ hg log -l1 -T./map-base-dir
46073
b2a743c3abbb tests: conditionalize a few Windows specific error messages
Matt Harbison <matt_harbison@yahoo.com>
parents: 45895
diff changeset
   142
  abort: Is a directory: '$TESTTMP/a/somedir' (no-windows !)
b2a743c3abbb tests: conditionalize a few Windows specific error messages
Matt Harbison <matt_harbison@yahoo.com>
parents: 45895
diff changeset
   143
  abort: $TESTTMP/a/somedir: Access is denied (windows !)
45222
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   144
  [255]
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   145
45206
db0be4678399 tests: add test for unqualified include of a built-in template map
Martin von Zweigbergk <martinvonz@google.com>
parents: 45055
diff changeset
   146
Test including a built-in template map
db0be4678399 tests: add test for unqualified include of a built-in template map
Martin von Zweigbergk <martinvonz@google.com>
parents: 45055
diff changeset
   147
db0be4678399 tests: add test for unqualified include of a built-in template map
Martin von Zweigbergk <martinvonz@google.com>
parents: 45055
diff changeset
   148
  $ cat <<'EOF' > map-include-builtin
db0be4678399 tests: add test for unqualified include of a built-in template map
Martin von Zweigbergk <martinvonz@google.com>
parents: 45055
diff changeset
   149
  > %include map-cmdline.default
db0be4678399 tests: add test for unqualified include of a built-in template map
Martin von Zweigbergk <martinvonz@google.com>
parents: 45055
diff changeset
   150
  > [templates]
db0be4678399 tests: add test for unqualified include of a built-in template map
Martin von Zweigbergk <martinvonz@google.com>
parents: 45055
diff changeset
   151
  > changeset = "{changeset_quiet}\n"
db0be4678399 tests: add test for unqualified include of a built-in template map
Martin von Zweigbergk <martinvonz@google.com>
parents: 45055
diff changeset
   152
  > EOF
db0be4678399 tests: add test for unqualified include of a built-in template map
Martin von Zweigbergk <martinvonz@google.com>
parents: 45055
diff changeset
   153
  $ hg log -l1 -T./map-include-builtin
db0be4678399 tests: add test for unqualified include of a built-in template map
Martin von Zweigbergk <martinvonz@google.com>
parents: 45055
diff changeset
   154
  8:95c24699272e
db0be4678399 tests: add test for unqualified include of a built-in template map
Martin von Zweigbergk <martinvonz@google.com>
parents: 45055
diff changeset
   155
  
29848
b1f69dbdd76b templater: add template path to __base__ search
Matt Mackall <mpm@selenic.com>
parents: 29817
diff changeset
   156
45207
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   157
Test including a nonexistent template map
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   158
BROKEN: This should probably be an error just like the bad __base__ above
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   159
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   160
  $ cat <<'EOF' > map-include-nonexistent
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   161
  > %include nonexistent
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   162
  > [templates]
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   163
  > changeset = "test\n"
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   164
  > EOF
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   165
  $ hg log -l1 -T./map-include-nonexistent
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   166
  test
4489e9a22763 tests: add test for bad template %include and __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45206
diff changeset
   167
45222
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   168
Test including a directory as template map
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   169
BROKEN: This should probably be an error just like the bad __base__ above
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   170
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   171
  $ cat <<'EOF' > map-include-dir
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   172
  > %include somedir
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   173
  > [templates]
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   174
  > changeset = "test\n"
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   175
  > EOF
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   176
  $ hg log -l1 -T./map-include-dir
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   177
  test
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
   178
32951
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   179
Test docheader, docfooter and separator in template map
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   180
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   181
  $ cat <<'EOF' > map-myjson
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   182
  > docheader = '\{\n'
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   183
  > docfooter = '\n}\n'
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   184
  > separator = ',\n'
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   185
  > changeset = ' {dict(rev, node|short)|json}'
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   186
  > EOF
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   187
  $ hg log -l2 -T./map-myjson
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   188
  {
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   189
   {"node": "95c24699272e", "rev": 8},
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   190
   {"node": "29114dbae42b", "rev": 7}
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   191
  }
050efe9a1644 changeset_templater: backport separator template from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32875
diff changeset
   192
32953
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   193
Test docheader, docfooter and separator in [templates] section
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   194
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   195
  $ cat <<'EOF' >> .hg/hgrc
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   196
  > [templates]
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   197
  > myjson = ' {dict(rev, node|short)|json}'
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   198
  > myjson:docheader = '\{\n'
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   199
  > myjson:docfooter = '\n}\n'
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   200
  > myjson:separator = ',\n'
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   201
  > :docheader = 'should not be selected as a docheader for literal templates\n'
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   202
  > EOF
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   203
  $ hg log -l2 -Tmyjson
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   204
  {
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   205
   {"node": "95c24699272e", "rev": 8},
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   206
   {"node": "29114dbae42b", "rev": 7}
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   207
  }
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   208
  $ hg log -l1 -T'{rev}\n'
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   209
  8
6d79e9109908 changeset_templater: backport parts map of [templates] section from formatter
Yuya Nishihara <yuya@tcha.org>
parents: 32951
diff changeset
   210
22582
4fe5fa49eac8 templater: fix precedence of --style and --template options
Yuya Nishihara <yuya@tcha.org>
parents: 21944
diff changeset
   211
Template should precede style option
4fe5fa49eac8 templater: fix precedence of --style and --template options
Yuya Nishihara <yuya@tcha.org>
parents: 21944
diff changeset
   212
4fe5fa49eac8 templater: fix precedence of --style and --template options
Yuya Nishihara <yuya@tcha.org>
parents: 21944
diff changeset
   213
  $ hg log -l1 --style default -T '{rev}\n'
4fe5fa49eac8 templater: fix precedence of --style and --template options
Yuya Nishihara <yuya@tcha.org>
parents: 21944
diff changeset
   214
  8
4fe5fa49eac8 templater: fix precedence of --style and --template options
Yuya Nishihara <yuya@tcha.org>
parents: 21944
diff changeset
   215
24852
515cd710df95 test-command-template: add a short description of a temporary snippet
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24637
diff changeset
   216
Add a commit with empty description, to ensure that the templates
24930
0e06c9fc84ea test-command-template: minor clarification in comment
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24929
diff changeset
   217
below will omit the description line.
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   218
24637
c1cb6523e968 templates-default: do not show description or summary if empty
Yuya Nishihara <yuya@tcha.org>
parents: 24566
diff changeset
   219
  $ echo c >> c
c1cb6523e968 templates-default: do not show description or summary if empty
Yuya Nishihara <yuya@tcha.org>
parents: 24566
diff changeset
   220
  $ hg add c
c1cb6523e968 templates-default: do not show description or summary if empty
Yuya Nishihara <yuya@tcha.org>
parents: 24566
diff changeset
   221
  $ hg commit -qm ' '
c1cb6523e968 templates-default: do not show description or summary if empty
Yuya Nishihara <yuya@tcha.org>
parents: 24566
diff changeset
   222
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   223
Default style is like normal output. Phases style should be the same
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   224
as default style, except for extra phase lines.
24852
515cd710df95 test-command-template: add a short description of a temporary snippet
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24637
diff changeset
   225
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   226
  $ hg log > log.out
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   227
  $ hg log --style default > style.out
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   228
  $ cmp log.out style.out || diff -u log.out style.out
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   229
  $ hg log -T phases > phases.out
25862
7316a2847c63 tests: work around differing hunk headers between GNU and Solaris diff
Danek Duvall <danek.duvall@oracle.com>
parents: 25861
diff changeset
   230
  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   231
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   232
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   233
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   234
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   235
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   236
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   237
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   238
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   239
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   240
  +phase:       draft
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   241
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   242
  $ hg log -v > log.out
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   243
  $ hg log -v --style default > style.out
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   244
  $ cmp log.out style.out || diff -u log.out style.out
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   245
  $ hg log -v -T phases > phases.out
25862
7316a2847c63 tests: work around differing hunk headers between GNU and Solaris diff
Danek Duvall <danek.duvall@oracle.com>
parents: 25861
diff changeset
   246
  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   247
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   248
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   249
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   250
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   251
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   252
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   253
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   254
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   255
  +phase:       draft
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   256
  +phase:       draft
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   257
24304
6136704b975d templates: fix "log -q" output of default style
Yuya Nishihara <yuya@tcha.org>
parents: 24157
diff changeset
   258
  $ hg log -q > log.out
6136704b975d templates: fix "log -q" output of default style
Yuya Nishihara <yuya@tcha.org>
parents: 24157
diff changeset
   259
  $ hg log -q --style default > style.out
6136704b975d templates: fix "log -q" output of default style
Yuya Nishihara <yuya@tcha.org>
parents: 24157
diff changeset
   260
  $ cmp log.out style.out || diff -u log.out style.out
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   261
  $ hg log -q -T phases > phases.out
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   262
  $ cmp log.out phases.out || diff -u log.out phases.out
24304
6136704b975d templates: fix "log -q" output of default style
Yuya Nishihara <yuya@tcha.org>
parents: 24157
diff changeset
   263
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   264
  $ hg log --debug > log.out
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   265
  $ hg log --debug --style default > style.out
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   266
  $ cmp log.out style.out || diff -u log.out style.out
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   267
  $ hg log --debug -T phases > phases.out
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   268
  $ cmp log.out phases.out || diff -u log.out phases.out
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   269
25762
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   270
Default style of working-directory revision should also be the same (but
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   271
date may change while running tests):
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   272
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   273
  $ hg log -r 'wdir()' | sed 's|^date:.*|date:|' > log.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   274
  $ hg log -r 'wdir()' --style default | sed 's|^date:.*|date:|' > style.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   275
  $ cmp log.out style.out || diff -u log.out style.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   276
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   277
  $ hg log -r 'wdir()' -v | sed 's|^date:.*|date:|' > log.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   278
  $ hg log -r 'wdir()' -v --style default | sed 's|^date:.*|date:|' > style.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   279
  $ cmp log.out style.out || diff -u log.out style.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   280
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   281
  $ hg log -r 'wdir()' -q > log.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   282
  $ hg log -r 'wdir()' -q --style default > style.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   283
  $ cmp log.out style.out || diff -u log.out style.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   284
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   285
  $ hg log -r 'wdir()' --debug | sed 's|^date:.*|date:|' > log.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   286
  $ hg log -r 'wdir()' --debug --style default \
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   287
  > | sed 's|^date:.*|date:|' > style.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   288
  $ cmp log.out style.out || diff -u log.out style.out
f4412380d357 changeset_printer: display wdirrev/wdirnode values for workingctx
Yuya Nishihara <yuya@tcha.org>
parents: 25740
diff changeset
   289
22766
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   290
Default style should also preserve color information (issue2866):
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   291
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   292
  $ cp $HGRCPATH $HGRCPATH-bak
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   293
  $ cat <<EOF >> $HGRCPATH
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   294
  > [extensions]
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   295
  > color=
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   296
  > EOF
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   297
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   298
  $ hg --color=debug log > log.out
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   299
  $ hg --color=debug log --style default > style.out
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   300
  $ cmp log.out style.out || diff -u log.out style.out
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   301
  $ hg --color=debug log -T phases > phases.out
25862
7316a2847c63 tests: work around differing hunk headers between GNU and Solaris diff
Danek Duvall <danek.duvall@oracle.com>
parents: 25861
diff changeset
   302
  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   303
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   304
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   305
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   306
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   307
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   308
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   309
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   310
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   311
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   312
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   313
22766
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   314
  $ hg --color=debug -v log > log.out
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   315
  $ hg --color=debug -v log --style default > style.out
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   316
  $ cmp log.out style.out || diff -u log.out style.out
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   317
  $ hg --color=debug -v log -T phases > phases.out
25862
7316a2847c63 tests: work around differing hunk headers between GNU and Solaris diff
Danek Duvall <danek.duvall@oracle.com>
parents: 25861
diff changeset
   318
  $ diff -U 0 log.out phases.out | egrep -v '^---|^\+\+\+|^@@'
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   319
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   320
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   321
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   322
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   323
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   324
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   325
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   326
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   327
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   328
  +[log.phase|phase:       draft]
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   329
24304
6136704b975d templates: fix "log -q" output of default style
Yuya Nishihara <yuya@tcha.org>
parents: 24157
diff changeset
   330
  $ hg --color=debug -q log > log.out
6136704b975d templates: fix "log -q" output of default style
Yuya Nishihara <yuya@tcha.org>
parents: 24157
diff changeset
   331
  $ hg --color=debug -q log --style default > style.out
6136704b975d templates: fix "log -q" output of default style
Yuya Nishihara <yuya@tcha.org>
parents: 24157
diff changeset
   332
  $ cmp log.out style.out || diff -u log.out style.out
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   333
  $ hg --color=debug -q log -T phases > phases.out
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   334
  $ cmp log.out phases.out || diff -u log.out phases.out
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   335
22766
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   336
  $ hg --color=debug --debug log > log.out
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   337
  $ hg --color=debug --debug log --style default > style.out
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   338
  $ cmp log.out style.out || diff -u log.out style.out
24853
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   339
  $ hg --color=debug --debug log -T phases > phases.out
6518880de1b3 template-phases: do not show description or summary if empty
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24852
diff changeset
   340
  $ cmp log.out phases.out || diff -u log.out phases.out
22766
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   341
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   342
  $ mv $HGRCPATH-bak $HGRCPATH
0ded0f0b1c04 log: rewrite default template to use labels (issue2866)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22764
diff changeset
   343
24852
515cd710df95 test-command-template: add a short description of a temporary snippet
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24637
diff changeset
   344
Remove commit with empty commit message, so as to not pollute further
515cd710df95 test-command-template: add a short description of a temporary snippet
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24637
diff changeset
   345
tests.
515cd710df95 test-command-template: add a short description of a temporary snippet
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24637
diff changeset
   346
24637
c1cb6523e968 templates-default: do not show description or summary if empty
Yuya Nishihara <yuya@tcha.org>
parents: 24566
diff changeset
   347
  $ hg --config extensions.strip= strip -q .
c1cb6523e968 templates-default: do not show description or summary if empty
Yuya Nishihara <yuya@tcha.org>
parents: 24566
diff changeset
   348
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   349
Revision with no copies (used to print a traceback):
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   350
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   351
  $ hg tip -v --template '\n'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   352
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   353
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   354
Compact style works:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   355
20668
3a35ba2681ec templating: make -T much more flexible
Matt Mackall <mpm@selenic.com>
parents: 20665
diff changeset
   356
  $ hg log -Tcompact
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   357
  8[tip]   95c24699272e   2020-01-01 10:01 +0000   test
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   358
    third
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   359
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   360
  7:-1   29114dbae42b   1970-01-12 13:46 +0000   user
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   361
    second
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   362
  
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   363
  6:5,4   d41e714fe50d   1970-01-18 08:40 +0000   person
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   364
    merge
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   365
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   366
  5:3   13207e5a10d9   1970-01-18 08:40 +0000   person
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   367
    new head
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   368
  
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   369
  4   bbe44766e73d   1970-01-17 04:53 +0000   person
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   370
    new branch
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   371
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   372
  3   10e46f2dcbf4   1970-01-16 01:06 +0000   person
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   373
    no user, no domain
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   374
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   375
  2   97054abb4ab8   1970-01-14 21:20 +0000   other
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   376
    no person
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   377
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   378
  1   b608e9d1a3f0   1970-01-13 17:33 +0000   other
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   379
    other 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   380
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   381
  0   1e4e1b8f71e0   1970-01-12 13:46 +0000   user
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   382
    line 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   383
  
1915
9598cde4756d add tests for command line template.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff changeset
   384
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   385
  $ hg log -v --style compact
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   386
  8[tip]   95c24699272e   2020-01-01 10:01 +0000   test
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   387
    third
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   388
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   389
  7:-1   29114dbae42b   1970-01-12 13:46 +0000   User Name <user@hostname>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   390
    second
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   391
  
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   392
  6:5,4   d41e714fe50d   1970-01-18 08:40 +0000   person
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   393
    merge
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   394
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   395
  5:3   13207e5a10d9   1970-01-18 08:40 +0000   person
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   396
    new head
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   397
  
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   398
  4   bbe44766e73d   1970-01-17 04:53 +0000   person
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   399
    new branch
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   400
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   401
  3   10e46f2dcbf4   1970-01-16 01:06 +0000   person
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   402
    no user, no domain
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   403
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   404
  2   97054abb4ab8   1970-01-14 21:20 +0000   other@place
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   405
    no person
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   406
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   407
  1   b608e9d1a3f0   1970-01-13 17:33 +0000   A. N. Other <other@place>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   408
    other 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   409
  other 2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   410
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   411
  other 3
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   412
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   413
  0   1e4e1b8f71e0   1970-01-12 13:46 +0000   User Name <user@hostname>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   414
    line 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   415
  line 2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   416
  
1915
9598cde4756d add tests for command line template.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff changeset
   417
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   418
  $ hg log --debug --style compact
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   419
  8[tip]:7,-1   95c24699272e   2020-01-01 10:01 +0000   test
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   420
    third
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   421
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   422
  7:-1,-1   29114dbae42b   1970-01-12 13:46 +0000   User Name <user@hostname>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   423
    second
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   424
  
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   425
  6:5,4   d41e714fe50d   1970-01-18 08:40 +0000   person
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   426
    merge
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   427
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   428
  5:3,-1   13207e5a10d9   1970-01-18 08:40 +0000   person
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   429
    new head
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   430
  
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   431
  4:3,-1   bbe44766e73d   1970-01-17 04:53 +0000   person
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   432
    new branch
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   433
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   434
  3:2,-1   10e46f2dcbf4   1970-01-16 01:06 +0000   person
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   435
    no user, no domain
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   436
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   437
  2:1,-1   97054abb4ab8   1970-01-14 21:20 +0000   other@place
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   438
    no person
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   439
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   440
  1:0,-1   b608e9d1a3f0   1970-01-13 17:33 +0000   A. N. Other <other@place>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   441
    other 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   442
  other 2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   443
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   444
  other 3
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   445
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   446
  0:-1,-1   1e4e1b8f71e0   1970-01-12 13:46 +0000   User Name <user@hostname>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   447
    line 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   448
  line 2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   449
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   450
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   451
Test xml styles:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   452
26222
3095b1027661 templater: add new docheader/footer components for XML (issue4135)
Matt Mackall <mpm@selenic.com>
parents: 26215
diff changeset
   453
  $ hg log --style xml -r 'not all()'
3095b1027661 templater: add new docheader/footer components for XML (issue4135)
Matt Mackall <mpm@selenic.com>
parents: 26215
diff changeset
   454
  <?xml version="1.0"?>
3095b1027661 templater: add new docheader/footer components for XML (issue4135)
Matt Mackall <mpm@selenic.com>
parents: 26215
diff changeset
   455
  <log>
3095b1027661 templater: add new docheader/footer components for XML (issue4135)
Matt Mackall <mpm@selenic.com>
parents: 26215
diff changeset
   456
  </log>
3095b1027661 templater: add new docheader/footer components for XML (issue4135)
Matt Mackall <mpm@selenic.com>
parents: 26215
diff changeset
   457
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   458
  $ hg log --style xml
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   459
  <?xml version="1.0"?>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   460
  <log>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   461
  <logentry revision="8" node="95c24699272ef57d062b8bccc32c878bf841784a">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   462
  <tag>tip</tag>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   463
  <author email="test">test</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   464
  <date>2020-01-01T10:01:00+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   465
  <msg xml:space="preserve">third</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   466
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   467
  <logentry revision="7" node="29114dbae42b9f078cf2714dbe3a86bba8ec7453">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   468
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   469
  <author email="user@hostname">User Name</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   470
  <date>1970-01-12T13:46:40+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   471
  <msg xml:space="preserve">second</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   472
  </logentry>
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   473
  <logentry revision="6" node="d41e714fe50d9e4a5f11b4d595d543481b5f980b">
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   474
  <parent revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f" />
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   475
  <parent revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74" />
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   476
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   477
  <date>1970-01-18T08:40:01+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   478
  <msg xml:space="preserve">merge</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   479
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   480
  <logentry revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   481
  <parent revision="3" node="10e46f2dcbf4823578cf180f33ecf0b957964c47" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   482
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   483
  <date>1970-01-18T08:40:00+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   484
  <msg xml:space="preserve">new head</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   485
  </logentry>
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   486
  <logentry revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74">
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   487
  <branch>foo</branch>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   488
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   489
  <date>1970-01-17T04:53:20+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   490
  <msg xml:space="preserve">new branch</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   491
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   492
  <logentry revision="3" node="10e46f2dcbf4823578cf180f33ecf0b957964c47">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   493
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   494
  <date>1970-01-16T01:06:40+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   495
  <msg xml:space="preserve">no user, no domain</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   496
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   497
  <logentry revision="2" node="97054abb4ab824450e9164180baf491ae0078465">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   498
  <author email="other@place">other</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   499
  <date>1970-01-14T21:20:00+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   500
  <msg xml:space="preserve">no person</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   501
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   502
  <logentry revision="1" node="b608e9d1a3f0273ccf70fb85fd6866b3482bf965">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   503
  <author email="other@place">A. N. Other</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   504
  <date>1970-01-13T17:33:20+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   505
  <msg xml:space="preserve">other 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   506
  other 2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   507
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   508
  other 3</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   509
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   510
  <logentry revision="0" node="1e4e1b8f71e05681d422154f5421e385fec3454f">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   511
  <author email="user@hostname">User Name</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   512
  <date>1970-01-12T13:46:40+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   513
  <msg xml:space="preserve">line 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   514
  line 2</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   515
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   516
  </log>
1915
9598cde4756d add tests for command line template.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff changeset
   517
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   518
  $ hg log -v --style xml
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   519
  <?xml version="1.0"?>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   520
  <log>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   521
  <logentry revision="8" node="95c24699272ef57d062b8bccc32c878bf841784a">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   522
  <tag>tip</tag>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   523
  <author email="test">test</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   524
  <date>2020-01-01T10:01:00+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   525
  <msg xml:space="preserve">third</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   526
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   527
  <path action="A">fourth</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   528
  <path action="A">third</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   529
  <path action="R">second</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   530
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   531
  <copies>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   532
  <copy source="second">fourth</copy>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   533
  </copies>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   534
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   535
  <logentry revision="7" node="29114dbae42b9f078cf2714dbe3a86bba8ec7453">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   536
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   537
  <author email="user@hostname">User Name</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   538
  <date>1970-01-12T13:46:40+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   539
  <msg xml:space="preserve">second</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   540
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   541
  <path action="A">second</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   542
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   543
  </logentry>
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   544
  <logentry revision="6" node="d41e714fe50d9e4a5f11b4d595d543481b5f980b">
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   545
  <parent revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f" />
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   546
  <parent revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74" />
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   547
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   548
  <date>1970-01-18T08:40:01+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   549
  <msg xml:space="preserve">merge</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   550
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   551
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   552
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   553
  <logentry revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   554
  <parent revision="3" node="10e46f2dcbf4823578cf180f33ecf0b957964c47" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   555
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   556
  <date>1970-01-18T08:40:00+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   557
  <msg xml:space="preserve">new head</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   558
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   559
  <path action="A">d</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   560
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   561
  </logentry>
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   562
  <logentry revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74">
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   563
  <branch>foo</branch>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   564
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   565
  <date>1970-01-17T04:53:20+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   566
  <msg xml:space="preserve">new branch</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   567
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   568
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   569
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   570
  <logentry revision="3" node="10e46f2dcbf4823578cf180f33ecf0b957964c47">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   571
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   572
  <date>1970-01-16T01:06:40+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   573
  <msg xml:space="preserve">no user, no domain</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   574
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   575
  <path action="M">c</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   576
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   577
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   578
  <logentry revision="2" node="97054abb4ab824450e9164180baf491ae0078465">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   579
  <author email="other@place">other</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   580
  <date>1970-01-14T21:20:00+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   581
  <msg xml:space="preserve">no person</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   582
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   583
  <path action="A">c</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   584
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   585
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   586
  <logentry revision="1" node="b608e9d1a3f0273ccf70fb85fd6866b3482bf965">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   587
  <author email="other@place">A. N. Other</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   588
  <date>1970-01-13T17:33:20+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   589
  <msg xml:space="preserve">other 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   590
  other 2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   591
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   592
  other 3</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   593
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   594
  <path action="A">b</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   595
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   596
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   597
  <logentry revision="0" node="1e4e1b8f71e05681d422154f5421e385fec3454f">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   598
  <author email="user@hostname">User Name</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   599
  <date>1970-01-12T13:46:40+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   600
  <msg xml:space="preserve">line 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   601
  line 2</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   602
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   603
  <path action="A">a</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   604
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   605
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   606
  </log>
10160
48653dea23dd Bugfix and test for hg log XML output
Robert Bachmann <rbachm@gmail.com>
parents: 10061
diff changeset
   607
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   608
  $ hg log --debug --style xml
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   609
  <?xml version="1.0"?>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   610
  <log>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   611
  <logentry revision="8" node="95c24699272ef57d062b8bccc32c878bf841784a">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   612
  <tag>tip</tag>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   613
  <parent revision="7" node="29114dbae42b9f078cf2714dbe3a86bba8ec7453" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   614
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   615
  <author email="test">test</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   616
  <date>2020-01-01T10:01:00+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   617
  <msg xml:space="preserve">third</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   618
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   619
  <path action="A">fourth</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   620
  <path action="A">third</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   621
  <path action="R">second</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   622
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   623
  <copies>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   624
  <copy source="second">fourth</copy>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   625
  </copies>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   626
  <extra key="branch">default</extra>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   627
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   628
  <logentry revision="7" node="29114dbae42b9f078cf2714dbe3a86bba8ec7453">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   629
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   630
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   631
  <author email="user@hostname">User Name</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   632
  <date>1970-01-12T13:46:40+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   633
  <msg xml:space="preserve">second</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   634
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   635
  <path action="A">second</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   636
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   637
  <extra key="branch">default</extra>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   638
  </logentry>
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   639
  <logentry revision="6" node="d41e714fe50d9e4a5f11b4d595d543481b5f980b">
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   640
  <parent revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f" />
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   641
  <parent revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74" />
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   642
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   643
  <date>1970-01-18T08:40:01+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   644
  <msg xml:space="preserve">merge</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   645
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   646
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   647
  <extra key="branch">default</extra>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   648
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   649
  <logentry revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   650
  <parent revision="3" node="10e46f2dcbf4823578cf180f33ecf0b957964c47" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   651
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   652
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   653
  <date>1970-01-18T08:40:00+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   654
  <msg xml:space="preserve">new head</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   655
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   656
  <path action="A">d</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   657
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   658
  <extra key="branch">default</extra>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   659
  </logentry>
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
   660
  <logentry revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74">
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   661
  <branch>foo</branch>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   662
  <parent revision="3" node="10e46f2dcbf4823578cf180f33ecf0b957964c47" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   663
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   664
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   665
  <date>1970-01-17T04:53:20+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   666
  <msg xml:space="preserve">new branch</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   667
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   668
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   669
  <extra key="branch">foo</extra>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   670
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   671
  <logentry revision="3" node="10e46f2dcbf4823578cf180f33ecf0b957964c47">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   672
  <parent revision="2" node="97054abb4ab824450e9164180baf491ae0078465" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   673
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   674
  <author email="person">person</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   675
  <date>1970-01-16T01:06:40+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   676
  <msg xml:space="preserve">no user, no domain</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   677
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   678
  <path action="M">c</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   679
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   680
  <extra key="branch">default</extra>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   681
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   682
  <logentry revision="2" node="97054abb4ab824450e9164180baf491ae0078465">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   683
  <parent revision="1" node="b608e9d1a3f0273ccf70fb85fd6866b3482bf965" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   684
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   685
  <author email="other@place">other</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   686
  <date>1970-01-14T21:20:00+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   687
  <msg xml:space="preserve">no person</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   688
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   689
  <path action="A">c</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   690
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   691
  <extra key="branch">default</extra>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   692
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   693
  <logentry revision="1" node="b608e9d1a3f0273ccf70fb85fd6866b3482bf965">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   694
  <parent revision="0" node="1e4e1b8f71e05681d422154f5421e385fec3454f" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   695
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   696
  <author email="other@place">A. N. Other</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   697
  <date>1970-01-13T17:33:20+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   698
  <msg xml:space="preserve">other 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   699
  other 2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   700
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   701
  other 3</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   702
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   703
  <path action="A">b</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   704
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   705
  <extra key="branch">default</extra>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   706
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   707
  <logentry revision="0" node="1e4e1b8f71e05681d422154f5421e385fec3454f">
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   708
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   709
  <parent revision="-1" node="0000000000000000000000000000000000000000" />
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   710
  <author email="user@hostname">User Name</author>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   711
  <date>1970-01-12T13:46:40+00:00</date>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   712
  <msg xml:space="preserve">line 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   713
  line 2</msg>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   714
  <paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   715
  <path action="A">a</path>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   716
  </paths>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   717
  <extra key="branch">default</extra>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   718
  </logentry>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   719
  </log>
1915
9598cde4756d add tests for command line template.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff changeset
   720
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
   721
41996
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   722
test CBOR style:
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   723
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   724
  $ cat <<'EOF' > "$TESTTMP/decodecborarray.py"
42000
a66965406528 test-template: fix stdio mode on Windows
Yuya Nishihara <yuya@tcha.org>
parents: 41996
diff changeset
   725
  > from mercurial import (
a66965406528 test-template: fix stdio mode on Windows
Yuya Nishihara <yuya@tcha.org>
parents: 41996
diff changeset
   726
  >     dispatch,
a66965406528 test-template: fix stdio mode on Windows
Yuya Nishihara <yuya@tcha.org>
parents: 41996
diff changeset
   727
  > )
41996
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   728
  > from mercurial.utils import (
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   729
  >     cborutil,
45055
4c1b4805db57 pycompat: change users of pycompat.{stdin,stdout,stderr} to use procutil.std*
Manuel Jacob <me@manueljacob.de>
parents: 43102
diff changeset
   730
  >     procutil,
41996
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   731
  >     stringutil,
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   732
  > )
42000
a66965406528 test-template: fix stdio mode on Windows
Yuya Nishihara <yuya@tcha.org>
parents: 41996
diff changeset
   733
  > dispatch.initstdio()
45055
4c1b4805db57 pycompat: change users of pycompat.{stdin,stdout,stderr} to use procutil.std*
Manuel Jacob <me@manueljacob.de>
parents: 43102
diff changeset
   734
  > data = procutil.stdin.read()
41996
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   735
  > # our CBOR decoder doesn't support parsing indefinite-length arrays,
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   736
  > # but the log output is indefinite stream by nature.
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   737
  > assert data[:1] == cborutil.BEGIN_INDEFINITE_ARRAY
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   738
  > assert data[-1:] == cborutil.BREAK
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   739
  > items = cborutil.decodeall(data[1:-1])
45055
4c1b4805db57 pycompat: change users of pycompat.{stdin,stdout,stderr} to use procutil.std*
Manuel Jacob <me@manueljacob.de>
parents: 43102
diff changeset
   740
  > procutil.stdout.write(stringutil.pprint(items, indent=1) + b'\n')
41996
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   741
  > EOF
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   742
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   743
  $ hg log -k nosuch -Tcbor | "$PYTHON" "$TESTTMP/decodecborarray.py"
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   744
  []
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   745
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   746
  $ hg log -qr0:1 -Tcbor | "$PYTHON" "$TESTTMP/decodecborarray.py"
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   747
  [
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   748
   {
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   749
    'node': '1e4e1b8f71e05681d422154f5421e385fec3454f',
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   750
    'rev': 0
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   751
   },
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   752
   {
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   753
    'node': 'b608e9d1a3f0273ccf70fb85fd6866b3482bf965',
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   754
    'rev': 1
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   755
   }
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   756
  ]
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   757
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   758
  $ hg log -vpr . -Tcbor --stat | "$PYTHON" "$TESTTMP/decodecborarray.py"
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   759
  [
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   760
   {
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   761
    'bookmarks': [],
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   762
    'branch': 'default',
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   763
    'date': [
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   764
     1577872860,
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   765
     0
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   766
    ],
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   767
    'desc': 'third',
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   768
    'diff': 'diff -r 29114dbae42b -r 95c24699272e fourth\n--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n+++ b/fourth\tWed Jan 01 10:01:00 2020 +0000\n@@ -0,0 +1,1 @@\n+second\ndiff -r 29114dbae42b -r 95c24699272e second\n--- a/second\tMon Jan 12 13:46:40 1970 +0000\n+++ /dev/null\tThu Jan 01 00:00:00 1970 +0000\n@@ -1,1 +0,0 @@\n-second\ndiff -r 29114dbae42b -r 95c24699272e third\n--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n+++ b/third\tWed Jan 01 10:01:00 2020 +0000\n@@ -0,0 +1,1 @@\n+third\n',
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   769
    'diffstat': ' fourth |  1 +\n second |  1 -\n third  |  1 +\n 3 files changed, 2 insertions(+), 1 deletions(-)\n',
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   770
    'files': [
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   771
     'fourth',
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   772
     'second',
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   773
     'third'
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   774
    ],
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   775
    'node': '95c24699272ef57d062b8bccc32c878bf841784a',
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   776
    'parents': [
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   777
     '29114dbae42b9f078cf2714dbe3a86bba8ec7453'
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   778
    ],
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   779
    'phase': 'draft',
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   780
    'rev': 8,
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   781
    'tags': [
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   782
     'tip'
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   783
    ],
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   784
    'user': 'test'
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   785
   }
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   786
  ]
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   787
43101
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   788
  $ hg log -r . -T'cbor(rev, node|short)' | "$PYTHON" "$TESTTMP/decodecborarray.py"
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   789
  [
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   790
   {
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   791
    'node': '95c24699272e',
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   792
    'rev': 8
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   793
   }
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   794
  ]
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   795
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   796
  $ hg log -r . -T'cbor()' | "$PYTHON" "$TESTTMP/decodecborarray.py"
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   797
  [
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   798
   {}
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
   799
  ]
41996
77ef3498ceb3 template: add CBOR output format
Yuya Nishihara <yuya@tcha.org>
parents: 41420
diff changeset
   800
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   801
Test JSON style:
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   802
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   803
  $ hg log -k nosuch -Tjson
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   804
  [
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   805
  ]
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   806
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   807
  $ hg log -qr . -Tjson
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   808
  [
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   809
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   810
    "node": "95c24699272ef57d062b8bccc32c878bf841784a",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   811
    "rev": 8
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   812
   }
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   813
  ]
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   814
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   815
  $ hg log -vpr . -Tjson --stat
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   816
  [
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   817
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   818
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   819
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   820
    "date": [1577872860, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   821
    "desc": "third",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   822
    "diff": "diff -r 29114dbae42b -r 95c24699272e fourth\n--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n+++ b/fourth\tWed Jan 01 10:01:00 2020 +0000\n@@ -0,0 +1,1 @@\n+second\ndiff -r 29114dbae42b -r 95c24699272e second\n--- a/second\tMon Jan 12 13:46:40 1970 +0000\n+++ /dev/null\tThu Jan 01 00:00:00 1970 +0000\n@@ -1,1 +0,0 @@\n-second\ndiff -r 29114dbae42b -r 95c24699272e third\n--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n+++ b/third\tWed Jan 01 10:01:00 2020 +0000\n@@ -0,0 +1,1 @@\n+third\n",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   823
    "diffstat": " fourth |  1 +\n second |  1 -\n third  |  1 +\n 3 files changed, 2 insertions(+), 1 deletions(-)\n",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   824
    "files": ["fourth", "second", "third"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   825
    "node": "95c24699272ef57d062b8bccc32c878bf841784a",
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   826
    "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   827
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   828
    "rev": 8,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   829
    "tags": ["tip"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   830
    "user": "test"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   831
   }
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   832
  ]
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   833
23453
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   834
honor --git but not format-breaking diffopts
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   835
  $ hg --config diff.noprefix=True log --git -vpr . -Tjson
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   836
  [
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   837
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   838
    "bookmarks": [],
23453
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   839
    "branch": "default",
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   840
    "date": [1577872860, 0],
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   841
    "desc": "third",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   842
    "diff": "diff --git a/second b/fourth\nrename from second\nrename to fourth\ndiff --git a/third b/third\nnew file mode 100644\n--- /dev/null\n+++ b/third\n@@ -0,0 +1,1 @@\n+third\n",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   843
    "files": ["fourth", "second", "third"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   844
    "node": "95c24699272ef57d062b8bccc32c878bf841784a",
23453
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   845
    "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   846
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   847
    "rev": 8,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   848
    "tags": ["tip"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   849
    "user": "test"
23453
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   850
   }
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   851
  ]
341e4798c24d jsonchangeset: don't honor whitespace and format-changing diffopts
Siddharth Agarwal <sid0@fb.com>
parents: 22844
diff changeset
   852
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   853
  $ hg log -T json
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   854
  [
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   855
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   856
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   857
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   858
    "date": [1577872860, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   859
    "desc": "third",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   860
    "node": "95c24699272ef57d062b8bccc32c878bf841784a",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   861
    "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   862
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   863
    "rev": 8,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   864
    "tags": ["tip"],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   865
    "user": "test"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   866
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   867
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   868
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   869
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   870
    "date": [1000000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   871
    "desc": "second",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   872
    "node": "29114dbae42b9f078cf2714dbe3a86bba8ec7453",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   873
    "parents": ["0000000000000000000000000000000000000000"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   874
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   875
    "rev": 7,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   876
    "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   877
    "user": "User Name <user@hostname>"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   878
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   879
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   880
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   881
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   882
    "date": [1500001, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   883
    "desc": "merge",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   884
    "node": "d41e714fe50d9e4a5f11b4d595d543481b5f980b",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   885
    "parents": ["13207e5a10d9fd28ec424934298e176197f2c67f", "bbe44766e73d5f11ed2177f1838de10c53ef3e74"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   886
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   887
    "rev": 6,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   888
    "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   889
    "user": "person"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   890
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   891
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   892
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   893
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   894
    "date": [1500000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   895
    "desc": "new head",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   896
    "node": "13207e5a10d9fd28ec424934298e176197f2c67f",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   897
    "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   898
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   899
    "rev": 5,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   900
    "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   901
    "user": "person"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   902
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   903
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   904
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   905
    "branch": "foo",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   906
    "date": [1400000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   907
    "desc": "new branch",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   908
    "node": "bbe44766e73d5f11ed2177f1838de10c53ef3e74",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   909
    "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   910
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   911
    "rev": 4,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   912
    "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   913
    "user": "person"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   914
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   915
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   916
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   917
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   918
    "date": [1300000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   919
    "desc": "no user, no domain",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   920
    "node": "10e46f2dcbf4823578cf180f33ecf0b957964c47",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   921
    "parents": ["97054abb4ab824450e9164180baf491ae0078465"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   922
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   923
    "rev": 3,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   924
    "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   925
    "user": "person"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   926
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   927
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   928
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   929
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   930
    "date": [1200000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   931
    "desc": "no person",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   932
    "node": "97054abb4ab824450e9164180baf491ae0078465",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   933
    "parents": ["b608e9d1a3f0273ccf70fb85fd6866b3482bf965"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   934
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   935
    "rev": 2,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   936
    "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   937
    "user": "other@place"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   938
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   939
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   940
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   941
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   942
    "date": [1100000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   943
    "desc": "other 1\nother 2\n\nother 3",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   944
    "node": "b608e9d1a3f0273ccf70fb85fd6866b3482bf965",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   945
    "parents": ["1e4e1b8f71e05681d422154f5421e385fec3454f"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   946
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   947
    "rev": 1,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   948
    "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   949
    "user": "A. N. Other <other@place>"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   950
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   951
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   952
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   953
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   954
    "date": [1000000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   955
    "desc": "line 1\nline 2",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   956
    "node": "1e4e1b8f71e05681d422154f5421e385fec3454f",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   957
    "parents": ["0000000000000000000000000000000000000000"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   958
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   959
    "rev": 0,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   960
    "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   961
    "user": "User Name <user@hostname>"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   962
   }
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   963
  ]
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   964
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   965
  $ hg heads -v -Tjson
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   966
  [
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   967
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   968
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   969
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   970
    "date": [1577872860, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   971
    "desc": "third",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   972
    "files": ["fourth", "second", "third"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   973
    "node": "95c24699272ef57d062b8bccc32c878bf841784a",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   974
    "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   975
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   976
    "rev": 8,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   977
    "tags": ["tip"],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   978
    "user": "test"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   979
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   980
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   981
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   982
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   983
    "date": [1500001, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   984
    "desc": "merge",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   985
    "files": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   986
    "node": "d41e714fe50d9e4a5f11b4d595d543481b5f980b",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   987
    "parents": ["13207e5a10d9fd28ec424934298e176197f2c67f", "bbe44766e73d5f11ed2177f1838de10c53ef3e74"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   988
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   989
    "rev": 6,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   990
    "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   991
    "user": "person"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   992
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   993
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   994
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   995
    "branch": "foo",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   996
    "date": [1400000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
   997
    "desc": "new branch",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   998
    "files": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
   999
    "node": "bbe44766e73d5f11ed2177f1838de10c53ef3e74",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1000
    "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1001
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1002
    "rev": 4,
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1003
    "tags": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1004
    "user": "person"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1005
   }
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1006
  ]
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1007
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1008
  $ hg log --debug -Tjson
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1009
  [
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1010
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1011
    "added": ["fourth", "third"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1012
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1013
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1014
    "date": [1577872860, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1015
    "desc": "third",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1016
    "extra": {"branch": "default"},
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1017
    "manifest": "94961b75a2da554b4df6fb599e5bfc7d48de0c64",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1018
    "modified": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1019
    "node": "95c24699272ef57d062b8bccc32c878bf841784a",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1020
    "parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1021
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1022
    "removed": ["second"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1023
    "rev": 8,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1024
    "tags": ["tip"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1025
    "user": "test"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1026
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1027
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1028
    "added": ["second"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1029
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1030
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1031
    "date": [1000000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1032
    "desc": "second",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1033
    "extra": {"branch": "default"},
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1034
    "manifest": "f2dbc354b94e5ec0b4f10680ee0cee816101d0bf",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1035
    "modified": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1036
    "node": "29114dbae42b9f078cf2714dbe3a86bba8ec7453",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1037
    "parents": ["0000000000000000000000000000000000000000"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1038
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1039
    "removed": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1040
    "rev": 7,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1041
    "tags": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1042
    "user": "User Name <user@hostname>"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1043
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1044
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1045
    "added": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1046
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1047
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1048
    "date": [1500001, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1049
    "desc": "merge",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1050
    "extra": {"branch": "default"},
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1051
    "manifest": "4dc3def4f9b4c6e8de820f6ee74737f91e96a216",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1052
    "modified": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1053
    "node": "d41e714fe50d9e4a5f11b4d595d543481b5f980b",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1054
    "parents": ["13207e5a10d9fd28ec424934298e176197f2c67f", "bbe44766e73d5f11ed2177f1838de10c53ef3e74"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1055
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1056
    "removed": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1057
    "rev": 6,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1058
    "tags": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1059
    "user": "person"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1060
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1061
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1062
    "added": ["d"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1063
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1064
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1065
    "date": [1500000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1066
    "desc": "new head",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1067
    "extra": {"branch": "default"},
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1068
    "manifest": "4dc3def4f9b4c6e8de820f6ee74737f91e96a216",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1069
    "modified": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1070
    "node": "13207e5a10d9fd28ec424934298e176197f2c67f",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1071
    "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1072
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1073
    "removed": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1074
    "rev": 5,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1075
    "tags": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1076
    "user": "person"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1077
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1078
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1079
    "added": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1080
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1081
    "branch": "foo",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1082
    "date": [1400000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1083
    "desc": "new branch",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1084
    "extra": {"branch": "foo"},
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1085
    "manifest": "cb5a1327723bada42f117e4c55a303246eaf9ccc",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1086
    "modified": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1087
    "node": "bbe44766e73d5f11ed2177f1838de10c53ef3e74",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1088
    "parents": ["10e46f2dcbf4823578cf180f33ecf0b957964c47"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1089
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1090
    "removed": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1091
    "rev": 4,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1092
    "tags": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1093
    "user": "person"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1094
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1095
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1096
    "added": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1097
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1098
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1099
    "date": [1300000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1100
    "desc": "no user, no domain",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1101
    "extra": {"branch": "default"},
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1102
    "manifest": "cb5a1327723bada42f117e4c55a303246eaf9ccc",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1103
    "modified": ["c"],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1104
    "node": "10e46f2dcbf4823578cf180f33ecf0b957964c47",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1105
    "parents": ["97054abb4ab824450e9164180baf491ae0078465"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1106
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1107
    "removed": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1108
    "rev": 3,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1109
    "tags": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1110
    "user": "person"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1111
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1112
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1113
    "added": ["c"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1114
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1115
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1116
    "date": [1200000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1117
    "desc": "no person",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1118
    "extra": {"branch": "default"},
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1119
    "manifest": "6e0e82995c35d0d57a52aca8da4e56139e06b4b1",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1120
    "modified": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1121
    "node": "97054abb4ab824450e9164180baf491ae0078465",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1122
    "parents": ["b608e9d1a3f0273ccf70fb85fd6866b3482bf965"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1123
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1124
    "removed": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1125
    "rev": 2,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1126
    "tags": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1127
    "user": "other@place"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1128
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1129
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1130
    "added": ["b"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1131
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1132
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1133
    "date": [1100000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1134
    "desc": "other 1\nother 2\n\nother 3",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1135
    "extra": {"branch": "default"},
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1136
    "manifest": "4e8d705b1e53e3f9375e0e60dc7b525d8211fe55",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1137
    "modified": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1138
    "node": "b608e9d1a3f0273ccf70fb85fd6866b3482bf965",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1139
    "parents": ["1e4e1b8f71e05681d422154f5421e385fec3454f"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1140
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1141
    "removed": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1142
    "rev": 1,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1143
    "tags": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1144
    "user": "A. N. Other <other@place>"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1145
   },
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1146
   {
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1147
    "added": ["a"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1148
    "bookmarks": [],
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1149
    "branch": "default",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1150
    "date": [1000000, 0],
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1151
    "desc": "line 1\nline 2",
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1152
    "extra": {"branch": "default"},
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1153
    "manifest": "a0c8bcbbb45c63b90b70ad007bf38961f64f2af0",
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1154
    "modified": [],
37772
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1155
    "node": "1e4e1b8f71e05681d422154f5421e385fec3454f",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1156
    "parents": ["0000000000000000000000000000000000000000"],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1157
    "phase": "draft",
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1158
    "removed": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1159
    "rev": 0,
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1160
    "tags": [],
814151cd8c4a logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter
Yuya Nishihara <yuya@tcha.org>
parents: 37709
diff changeset
  1161
    "user": "User Name <user@hostname>"
22427
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1162
   }
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1163
  ]
bd15932846a4 cmdutil: add json style to log-like commands
Matt Mackall <mpm@selenic.com>
parents: 22304
diff changeset
  1164
43101
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1165
  $ hg log -l2 -T'json(rev, parents)'
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1166
  [
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1167
   {"parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], "rev": 8},
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1168
   {"parents": ["0000000000000000000000000000000000000000"], "rev": 7}
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1169
  ]
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1170
43102
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1171
  $ hg log -qr. -T'json(rev, parents)'
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1172
  [
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1173
   {"parents": ["29114dbae42b9f078cf2714dbe3a86bba8ec7453"], "rev": 8}
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1174
  ]
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1175
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1176
  $ hg log -r. -T'json(diff)'
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1177
  [
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1178
   {"diff": "diff -r 29114dbae42b -r 95c24699272e fourth\n--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n+++ b/fourth\tWed Jan 01 10:01:00 2020 +0000\n@@ -0,0 +1,1 @@\n+second\ndiff -r 29114dbae42b -r 95c24699272e second\n--- a/second\tMon Jan 12 13:46:40 1970 +0000\n+++ /dev/null\tThu Jan 01 00:00:00 1970 +0000\n@@ -1,1 +0,0 @@\n-second\ndiff -r 29114dbae42b -r 95c24699272e third\n--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n+++ b/third\tWed Jan 01 10:01:00 2020 +0000\n@@ -0,0 +1,1 @@\n+third\n"}
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1179
  ]
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1180
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1181
  $ hg log -r. -T'json(diffstat)'
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1182
  [
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1183
   {"diffstat": " fourth |  1 +\n second |  1 -\n third  |  1 +\n 3 files changed, 2 insertions(+), 1 deletions(-)\n"}
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1184
  ]
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1185
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1186
  $ hg log -r. -T'json(manifest)'
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1187
  [
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1188
   {"manifest": "94961b75a2da554b4df6fb599e5bfc7d48de0c64"}
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1189
  ]
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1190
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1191
  $ hg log -r. -T'json(extra)'
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1192
  [
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1193
   {"extra": {"branch": "default"}}
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1194
  ]
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1195
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1196
  $ hg log -r3 -T'json(modified)'
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1197
  [
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1198
   {"modified": ["c"]}
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1199
  ]
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1200
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1201
  $ hg log -r. -T'json(added)'
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1202
  [
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1203
   {"added": ["fourth", "third"]}
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1204
  ]
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1205
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1206
  $ hg log -r. -T'json(removed)'
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1207
  [
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1208
   {"removed": ["second"]}
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1209
  ]
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1210
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1211
  $ hg log -r. -T'json(files)'
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1212
  [
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1213
   {"files": ["fourth", "second", "third"]}
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1214
  ]
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1215
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1216
 --copies is the exception. copies dict is built only when --copies switch
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1217
 is on:
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1218
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1219
  $ hg log -r'.^:' -T'json(copies)' --copies
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1220
  [
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1221
   {"copies": {}},
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1222
   {"copies": {"fourth": "second"}}
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1223
  ]
829088e87032 log: populate keywords if specified in custom -Tjson(...) or -Tcbor(...)
Yuya Nishihara <yuya@tcha.org>
parents: 43101
diff changeset
  1224
43101
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1225
  $ hg log -r. -T'json()'
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1226
  [
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1227
   {}
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1228
  ]
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1229
43100
90b9a7e06c2c formatter: parse name of built-in formatter templates in standard way
Yuya Nishihara <yuya@tcha.org>
parents: 42000
diff changeset
  1230
Other unsupported formatter styles:
90b9a7e06c2c formatter: parse name of built-in formatter templates in standard way
Yuya Nishihara <yuya@tcha.org>
parents: 42000
diff changeset
  1231
90b9a7e06c2c formatter: parse name of built-in formatter templates in standard way
Yuya Nishihara <yuya@tcha.org>
parents: 42000
diff changeset
  1232
  $ hg log -qr . -Tpickle
90b9a7e06c2c formatter: parse name of built-in formatter templates in standard way
Yuya Nishihara <yuya@tcha.org>
parents: 42000
diff changeset
  1233
  abort: "pickle" not in template map
90b9a7e06c2c formatter: parse name of built-in formatter templates in standard way
Yuya Nishihara <yuya@tcha.org>
parents: 42000
diff changeset
  1234
  [255]
90b9a7e06c2c formatter: parse name of built-in formatter templates in standard way
Yuya Nishihara <yuya@tcha.org>
parents: 42000
diff changeset
  1235
  $ hg log -qr . -Tdebug
90b9a7e06c2c formatter: parse name of built-in formatter templates in standard way
Yuya Nishihara <yuya@tcha.org>
parents: 42000
diff changeset
  1236
  abort: "debug" not in template map
90b9a7e06c2c formatter: parse name of built-in formatter templates in standard way
Yuya Nishihara <yuya@tcha.org>
parents: 42000
diff changeset
  1237
  [255]
90b9a7e06c2c formatter: parse name of built-in formatter templates in standard way
Yuya Nishihara <yuya@tcha.org>
parents: 42000
diff changeset
  1238
43101
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1239
Unparsable function-style references:
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1240
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1241
  $ hg log -qr . -T'json(-)'
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1242
  hg: parse error at 6: not a prefix: )
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1243
  (json(-)
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1244
         ^ here)
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
  1245
  [10]
43101
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1246
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1247
For backward compatibility, the following examples are not parsed as
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1248
function-style references:
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1249
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1250
  $ hg log -qr . -T'cbor(rev'
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1251
  cbor(rev (no-eol)
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1252
  $ hg log -qr . -T'json (rev)'
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1253
  json (rev) (no-eol)
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1254
  $ hg log -qr . -T'json(x="{rev}")'
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1255
  json(x="8") (no-eol)
1d12ae5096d1 formatter: map -Tjson(...) and -Tcbor(...) to templater
Yuya Nishihara <yuya@tcha.org>
parents: 43100
diff changeset
  1256
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1257
Error if style not readable:
1915
9598cde4756d add tests for command line template.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff changeset
  1258
20008
e54a078153f7 tests: skip tests that require not having root (issue4089)
Matt Mackall <mpm@selenic.com>
parents: 19989
diff changeset
  1259
#if unix-permissions no-root
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1260
  $ touch q
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1261
  $ chmod 0 q
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1262
  $ hg log --style ./q
41420
b6673e9bdcf6 dispatch: quote filename in IOError as well
Yuya Nishihara <yuya@tcha.org>
parents: 39623
diff changeset
  1263
  abort: Permission denied: './q'
12316
4134686b83e1 tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents: 12283
diff changeset
  1264
  [255]
16917
bebe376b938f test-command-template: enable for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents: 16678
diff changeset
  1265
#endif
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1266
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1267
Error if no style:
1915
9598cde4756d add tests for command line template.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff changeset
  1268
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1269
  $ hg log --style notexist
19127
d982edcfe7f0 templater: fix output instability from gsoc patches
Augie Fackler <raf@durin42.com>
parents: 19058
diff changeset
  1270
  abort: style 'notexist' not found
31765
264baeef3588 show: new extension for displaying various repository data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31521
diff changeset
  1271
  (available styles: bisect, changelog, compact, default, phases, show, status, xml)
12316
4134686b83e1 tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents: 12283
diff changeset
  1272
  [255]
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1273
21944
0483ff40e326 templates: re-add template listing support
Matt Mackall <mpm@selenic.com>
parents: 21896
diff changeset
  1274
  $ hg log -T list
31765
264baeef3588 show: new extension for displaying various repository data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31521
diff changeset
  1275
  available styles: bisect, changelog, compact, default, phases, show, status, xml
21944
0483ff40e326 templates: re-add template listing support
Matt Mackall <mpm@selenic.com>
parents: 21896
diff changeset
  1276
  abort: specify a template
0483ff40e326 templates: re-add template listing support
Matt Mackall <mpm@selenic.com>
parents: 21896
diff changeset
  1277
  [255]
0483ff40e326 templates: re-add template listing support
Matt Mackall <mpm@selenic.com>
parents: 21896
diff changeset
  1278
45222
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
  1279
Error if style is a directory:
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
  1280
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
  1281
  $ hg log --style somedir
46073
b2a743c3abbb tests: conditionalize a few Windows specific error messages
Matt Harbison <matt_harbison@yahoo.com>
parents: 45895
diff changeset
  1282
  abort: Is a directory: 'somedir' (no-windows !)
b2a743c3abbb tests: conditionalize a few Windows specific error messages
Matt Harbison <matt_harbison@yahoo.com>
parents: 45895
diff changeset
  1283
  abort: somedir: Access is denied (windows !)
45222
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
  1284
  [255]
f512708a9ea8 tests: add tests trying to use dir as style, as %include, and as __base__
Martin von Zweigbergk <martinvonz@google.com>
parents: 45221
diff changeset
  1285
45258
46c8db8d4e03 tests: show unusual error message for `hg log --style coal`
Martin von Zweigbergk <martinvonz@google.com>
parents: 45222
diff changeset
  1286
Error if style is a directory whose name is a built-in style:
46c8db8d4e03 tests: show unusual error message for `hg log --style coal`
Martin von Zweigbergk <martinvonz@google.com>
parents: 45222
diff changeset
  1287
46c8db8d4e03 tests: show unusual error message for `hg log --style coal`
Martin von Zweigbergk <martinvonz@google.com>
parents: 45222
diff changeset
  1288
  $ hg log --style coal
45259
9a308336fe41 templater: make templatepath() not return directory paths
Martin von Zweigbergk <martinvonz@google.com>
parents: 45258
diff changeset
  1289
  abort: style 'coal' not found
9a308336fe41 templater: make templatepath() not return directory paths
Martin von Zweigbergk <martinvonz@google.com>
parents: 45258
diff changeset
  1290
  (available styles: bisect, changelog, compact, default, phases, show, status, xml)
45258
46c8db8d4e03 tests: show unusual error message for `hg log --style coal`
Martin von Zweigbergk <martinvonz@google.com>
parents: 45222
diff changeset
  1291
  [255]
46c8db8d4e03 tests: show unusual error message for `hg log --style coal`
Martin von Zweigbergk <martinvonz@google.com>
parents: 45222
diff changeset
  1292
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1293
Error if style missing key:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1294
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1295
  $ echo 'q = q' > t
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1296
  $ hg log --style ./t
13175
09cde75e0613 templater: give slightly nicer error for unknown map entries
Matt Mackall <mpm@selenic.com>
parents: 13156
diff changeset
  1297
  abort: "changeset" not in template map
12316
4134686b83e1 tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents: 12283
diff changeset
  1298
  [255]
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1299
17334
39c01f8e7b39 templater: handle a missing value correctly
Ross Lagerwall <rosslagerwall@gmail.com>
parents: 16917
diff changeset
  1300
Error if style missing value:
39c01f8e7b39 templater: handle a missing value correctly
Ross Lagerwall <rosslagerwall@gmail.com>
parents: 16917
diff changeset
  1301
39c01f8e7b39 templater: handle a missing value correctly
Ross Lagerwall <rosslagerwall@gmail.com>
parents: 16917
diff changeset
  1302
  $ echo 'changeset =' > t
39c01f8e7b39 templater: handle a missing value correctly
Ross Lagerwall <rosslagerwall@gmail.com>
parents: 16917
diff changeset
  1303
  $ hg log --style t
28628
ed1d90f6e921 templater: do not abuse SyntaxError to report errors in template map file
Yuya Nishihara <yuya@tcha.org>
parents: 28548
diff changeset
  1304
  hg: parse error at t:1: missing value
45895
fc4fb2f17dd4 errors: use exit code 10 for parse errors
Martin von Zweigbergk <martinvonz@google.com>
parents: 45765
diff changeset
  1305
  [10]
17334
39c01f8e7b39 templater: handle a missing value correctly
Ross Lagerwall <rosslagerwall@gmail.com>
parents: 16917
diff changeset
  1306
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1307
Error if include fails:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1308
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1309
  $ echo 'changeset = q' >> t
20008
e54a078153f7 tests: skip tests that require not having root (issue4089)
Matt Mackall <mpm@selenic.com>
parents: 19989
diff changeset
  1310
#if unix-permissions no-root
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1311
  $ hg log --style ./t
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1312
  abort: template file ./q: Permission denied
12316
4134686b83e1 tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents: 12283
diff changeset
  1313
  [255]
27994
90cff855ae1c tests: remove protected file forcibly for portability
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 27940
diff changeset
  1314
  $ rm -f q
16917
bebe376b938f test-command-template: enable for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents: 16678
diff changeset
  1315
#endif
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1316
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1317
Include works:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1318
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1319
  $ echo '{rev}' > q
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1320
  $ hg log --style ./t
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1321
  8
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1322
  7
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1323
  6
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1324
  5
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1325
  4
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1326
  3
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1327
  2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1328
  1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1329
  0
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1330
22764
1e2f54a149e8 templater: set the correct phase for parents
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22668
diff changeset
  1331
  $ hg phase -r 5 --public
1e2f54a149e8 templater: set the correct phase for parents
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22668
diff changeset
  1332
  $ hg phase -r 7 --secret --force
1e2f54a149e8 templater: set the correct phase for parents
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 22668
diff changeset
  1333
19770
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1334
Missing non-standard names give no error (backward compatibility):
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1335
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1336
  $ echo "changeset = '{c}'" > t
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1337
  $ hg log --style ./t
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1338
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1339
Defining non-standard name works:
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1340
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1341
  $ cat <<EOF > t
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1342
  > changeset = '{c}'
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1343
  > c = q
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1344
  > EOF
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1345
  $ hg log --style ./t
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1346
  8
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1347
  7
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1348
  6
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1349
  5
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1350
  4
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1351
  3
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1352
  2
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1353
  1
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1354
  0
0361163efbaf templater: support using templates with non-standard names from map file
Alexander Plavin <alexander@plav.in>
parents: 19330
diff changeset
  1355
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1356
ui.style works:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1357
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1358
  $ echo '[ui]' > .hg/hgrc
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1359
  $ echo 'style = t' >> .hg/hgrc
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1360
  $ hg log
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1361
  8
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1362
  7
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1363
  6
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1364
  5
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1365
  4
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1366
  3
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1367
  2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1368
  1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1369
  0
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1370
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1371
Issue338:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1372
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1373
  $ hg log --style=changelog > changelog
1915
9598cde4756d add tests for command line template.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff changeset
  1374
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1375
  $ cat changelog
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1376
  2020-01-01  test  <test>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1377
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1378
  	* fourth, second, third:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1379
  	third
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1380
  	[95c24699272e] [tip]
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1381
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1382
  1970-01-12  User Name  <user@hostname>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1383
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1384
  	* second:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1385
  	second
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1386
  	[29114dbae42b]
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1387
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1388
  1970-01-18  person  <person>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1389
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1390
  	* merge
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
  1391
  	[d41e714fe50d]
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1392
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1393
  	* d:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1394
  	new head
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1395
  	[13207e5a10d9]
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1396
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1397
  1970-01-17  person  <person>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1398
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1399
  	* new branch
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
  1400
  	[bbe44766e73d] <foo>
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1401
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1402
  1970-01-16  person  <person>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1403
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1404
  	* c:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1405
  	no user, no domain
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1406
  	[10e46f2dcbf4]
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1407
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1408
  1970-01-14  other  <other@place>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1409
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1410
  	* c:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1411
  	no person
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1412
  	[97054abb4ab8]
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1413
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1414
  1970-01-13  A. N. Other  <other@place>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1415
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1416
  	* b:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1417
  	other 1 other 2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1418
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1419
  	other 3
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1420
  	[b608e9d1a3f0]
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1421
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1422
  1970-01-12  User Name  <user@hostname>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1423
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1424
  	* a:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1425
  	line 1 line 2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1426
  	[1e4e1b8f71e0]
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1427
  
1915
9598cde4756d add tests for command line template.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff changeset
  1428
12399
4fee1fd3de9a tests: added a short description to issue numbers
Martin Geisler <mg@aragost.com>
parents: 12316
diff changeset
  1429
Issue2130: xml output for 'hg heads' is malformed
3193
a6d0cd63068c Make "hg log --style=changelog > changelog" work (issue338)
Thomas Arendsen Hein <thomas@intevation.de>
parents: 1939
diff changeset
  1430
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1431
  $ hg heads --style changelog
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1432
  2020-01-01  test  <test>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1433
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1434
  	* fourth, second, third:
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1435
  	third
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1436
  	[95c24699272e] [tip]
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1437
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1438
  1970-01-18  person  <person>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1439
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1440
  	* merge
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
  1441
  	[d41e714fe50d]
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1442
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1443
  1970-01-17  person  <person>
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1444
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1445
  	* new branch
14162
301725c3df9a localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 13666
diff changeset
  1446
  	[bbe44766e73d] <foo>
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1447
  
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1448
25005
5ddbb024c2e9 tests: fix hidden repeatability problem with age filter test
Matt Mackall <mpm@selenic.com>
parents: 25003
diff changeset
  1449
Add a dummy commit to make up for the instability of the above:
5ddbb024c2e9 tests: fix hidden repeatability problem with age filter test
Matt Mackall <mpm@selenic.com>
parents: 25003
diff changeset
  1450
5ddbb024c2e9 tests: fix hidden repeatability problem with age filter test
Matt Mackall <mpm@selenic.com>
parents: 25003
diff changeset
  1451
  $ echo a > a
5ddbb024c2e9 tests: fix hidden repeatability problem with age filter test
Matt Mackall <mpm@selenic.com>
parents: 25003
diff changeset
  1452
  $ hg add a
5ddbb024c2e9 tests: fix hidden repeatability problem with age filter test
Matt Mackall <mpm@selenic.com>
parents: 25003
diff changeset
  1453
  $ hg ci -m future
5ddbb024c2e9 tests: fix hidden repeatability problem with age filter test
Matt Mackall <mpm@selenic.com>
parents: 25003
diff changeset
  1454
24985
20bff5d09018 tests: add a new commit to test-commandline-template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24966
diff changeset
  1455
Add a commit that does all possible modifications at once
20bff5d09018 tests: add a new commit to test-commandline-template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24966
diff changeset
  1456
20bff5d09018 tests: add a new commit to test-commandline-template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24966
diff changeset
  1457
  $ echo modify >> third
20bff5d09018 tests: add a new commit to test-commandline-template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24966
diff changeset
  1458
  $ touch b
20bff5d09018 tests: add a new commit to test-commandline-template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24966
diff changeset
  1459
  $ hg add b
20bff5d09018 tests: add a new commit to test-commandline-template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24966
diff changeset
  1460
  $ hg mv fourth fifth
20bff5d09018 tests: add a new commit to test-commandline-template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24966
diff changeset
  1461
  $ hg rm a
20bff5d09018 tests: add a new commit to test-commandline-template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24966
diff changeset
  1462
  $ hg ci -m "Modify, add, remove, rename"
20bff5d09018 tests: add a new commit to test-commandline-template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 24966
diff changeset
  1463
25006
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1464
Check the status template
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1465
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1466
  $ cat <<EOF >> $HGRCPATH
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1467
  > [extensions]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1468
  > color=
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1469
  > EOF
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1470
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1471
  $ hg log -T status -r 10
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1472
  changeset:   10:0f9759ec227a
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1473
  tag:         tip
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1474
  user:        test
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1475
  date:        Thu Jan 01 00:00:00 1970 +0000
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1476
  summary:     Modify, add, remove, rename
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1477
  files:
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1478
  M third
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1479
  A b
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1480
  A fifth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1481
  R a
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1482
  R fourth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1483
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1484
  $ hg log -T status -C -r 10
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1485
  changeset:   10:0f9759ec227a
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1486
  tag:         tip
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1487
  user:        test
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1488
  date:        Thu Jan 01 00:00:00 1970 +0000
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1489
  summary:     Modify, add, remove, rename
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1490
  files:
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1491
  M third
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1492
  A b
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1493
  A fifth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1494
    fourth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1495
  R a
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1496
  R fourth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1497
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1498
  $ hg log -T status -C -r 10 -v
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1499
  changeset:   10:0f9759ec227a
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1500
  tag:         tip
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1501
  user:        test
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1502
  date:        Thu Jan 01 00:00:00 1970 +0000
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1503
  description:
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1504
  Modify, add, remove, rename
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1505
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1506
  files:
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1507
  M third
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1508
  A b
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1509
  A fifth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1510
    fourth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1511
  R a
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1512
  R fourth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1513
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1514
  $ hg log -T status -C -r 10 --debug
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1515
  changeset:   10:0f9759ec227a4859c2014a345cd8a859022b7c6c
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1516
  tag:         tip
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1517
  phase:       secret
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1518
  parent:      9:bf9dfba36635106d6a73ccc01e28b762da60e066
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1519
  parent:      -1:0000000000000000000000000000000000000000
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1520
  manifest:    8:89dd546f2de0a9d6d664f58d86097eb97baba567
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1521
  user:        test
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1522
  date:        Thu Jan 01 00:00:00 1970 +0000
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1523
  extra:       branch=default
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1524
  description:
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1525
  Modify, add, remove, rename
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1526
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1527
  files:
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1528
  M third
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1529
  A b
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1530
  A fifth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1531
    fourth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1532
  R a
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1533
  R fourth
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1534
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1535
  $ hg log -T status -C -r 10 --quiet
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1536
  10:0f9759ec227a
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1537
  $ hg --color=debug log -T status -r 10
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1538
  [log.changeset changeset.secret|changeset:   10:0f9759ec227a]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1539
  [log.tag|tag:         tip]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1540
  [log.user|user:        test]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1541
  [log.date|date:        Thu Jan 01 00:00:00 1970 +0000]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1542
  [log.summary|summary:     Modify, add, remove, rename]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1543
  [ui.note log.files|files:]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1544
  [status.modified|M third]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1545
  [status.added|A b]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1546
  [status.added|A fifth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1547
  [status.removed|R a]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1548
  [status.removed|R fourth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1549
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1550
  $ hg --color=debug log -T status -C -r 10
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1551
  [log.changeset changeset.secret|changeset:   10:0f9759ec227a]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1552
  [log.tag|tag:         tip]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1553
  [log.user|user:        test]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1554
  [log.date|date:        Thu Jan 01 00:00:00 1970 +0000]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1555
  [log.summary|summary:     Modify, add, remove, rename]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1556
  [ui.note log.files|files:]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1557
  [status.modified|M third]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1558
  [status.added|A b]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1559
  [status.added|A fifth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1560
  [status.copied|  fourth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1561
  [status.removed|R a]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1562
  [status.removed|R fourth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1563
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1564
  $ hg --color=debug log -T status -C -r 10 -v
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1565
  [log.changeset changeset.secret|changeset:   10:0f9759ec227a]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1566
  [log.tag|tag:         tip]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1567
  [log.user|user:        test]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1568
  [log.date|date:        Thu Jan 01 00:00:00 1970 +0000]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1569
  [ui.note log.description|description:]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1570
  [ui.note log.description|Modify, add, remove, rename]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1571
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1572
  [ui.note log.files|files:]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1573
  [status.modified|M third]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1574
  [status.added|A b]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1575
  [status.added|A fifth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1576
  [status.copied|  fourth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1577
  [status.removed|R a]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1578
  [status.removed|R fourth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1579
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1580
  $ hg --color=debug log -T status -C -r 10 --debug
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1581
  [log.changeset changeset.secret|changeset:   10:0f9759ec227a4859c2014a345cd8a859022b7c6c]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1582
  [log.tag|tag:         tip]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1583
  [log.phase|phase:       secret]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1584
  [log.parent changeset.secret|parent:      9:bf9dfba36635106d6a73ccc01e28b762da60e066]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1585
  [log.parent changeset.public|parent:      -1:0000000000000000000000000000000000000000]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1586
  [ui.debug log.manifest|manifest:    8:89dd546f2de0a9d6d664f58d86097eb97baba567]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1587
  [log.user|user:        test]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1588
  [log.date|date:        Thu Jan 01 00:00:00 1970 +0000]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1589
  [ui.debug log.extra|extra:       branch=default]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1590
  [ui.note log.description|description:]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1591
  [ui.note log.description|Modify, add, remove, rename]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1592
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1593
  [ui.note log.files|files:]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1594
  [status.modified|M third]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1595
  [status.added|A b]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1596
  [status.added|A fifth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1597
  [status.copied|  fourth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1598
  [status.removed|R a]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1599
  [status.removed|R fourth]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1600
  
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1601
  $ hg --color=debug log -T status -C -r 10 --quiet
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1602
  [log.node|10:0f9759ec227a]
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1603
25007
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1604
Check the bisect template
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1605
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1606
  $ hg bisect -g 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1607
  $ hg bisect -b 3 --noupdate
46798
f51ff655d338 bisect: use standard one-line commit summary
Martin von Zweigbergk <martinvonz@google.com>
parents: 46092
diff changeset
  1608
  Testing changeset 2:97054abb4ab8 "no person" (2 changesets remaining, ~1 tests)
25007
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1609
  $ hg log -T bisect -r 0:4
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1610
  changeset:   0:1e4e1b8f71e0
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1611
  bisect:      good (implicit)
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1612
  user:        User Name <user@hostname>
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1613
  date:        Mon Jan 12 13:46:40 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1614
  summary:     line 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1615
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1616
  changeset:   1:b608e9d1a3f0
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1617
  bisect:      good
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1618
  user:        A. N. Other <other@place>
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1619
  date:        Tue Jan 13 17:33:20 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1620
  summary:     other 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1621
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1622
  changeset:   2:97054abb4ab8
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1623
  bisect:      untested
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1624
  user:        other@place
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1625
  date:        Wed Jan 14 21:20:00 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1626
  summary:     no person
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1627
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1628
  changeset:   3:10e46f2dcbf4
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1629
  bisect:      bad
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1630
  user:        person
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1631
  date:        Fri Jan 16 01:06:40 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1632
  summary:     no user, no domain
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1633
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1634
  changeset:   4:bbe44766e73d
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1635
  bisect:      bad (implicit)
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1636
  branch:      foo
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1637
  user:        person
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1638
  date:        Sat Jan 17 04:53:20 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1639
  summary:     new branch
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1640
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1641
  $ hg log --debug -T bisect -r 0:4
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1642
  changeset:   0:1e4e1b8f71e05681d422154f5421e385fec3454f
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1643
  bisect:      good (implicit)
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1644
  phase:       public
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1645
  parent:      -1:0000000000000000000000000000000000000000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1646
  parent:      -1:0000000000000000000000000000000000000000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1647
  manifest:    0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1648
  user:        User Name <user@hostname>
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1649
  date:        Mon Jan 12 13:46:40 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1650
  files+:      a
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1651
  extra:       branch=default
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1652
  description:
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1653
  line 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1654
  line 2
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1655
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1656
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1657
  changeset:   1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1658
  bisect:      good
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1659
  phase:       public
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1660
  parent:      0:1e4e1b8f71e05681d422154f5421e385fec3454f
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1661
  parent:      -1:0000000000000000000000000000000000000000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1662
  manifest:    1:4e8d705b1e53e3f9375e0e60dc7b525d8211fe55
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1663
  user:        A. N. Other <other@place>
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1664
  date:        Tue Jan 13 17:33:20 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1665
  files+:      b
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1666
  extra:       branch=default
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1667
  description:
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1668
  other 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1669
  other 2
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1670
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1671
  other 3
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1672
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1673
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1674
  changeset:   2:97054abb4ab824450e9164180baf491ae0078465
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1675
  bisect:      untested
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1676
  phase:       public
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1677
  parent:      1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1678
  parent:      -1:0000000000000000000000000000000000000000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1679
  manifest:    2:6e0e82995c35d0d57a52aca8da4e56139e06b4b1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1680
  user:        other@place
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1681
  date:        Wed Jan 14 21:20:00 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1682
  files+:      c
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1683
  extra:       branch=default
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1684
  description:
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1685
  no person
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1686
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1687
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1688
  changeset:   3:10e46f2dcbf4823578cf180f33ecf0b957964c47
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1689
  bisect:      bad
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1690
  phase:       public
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1691
  parent:      2:97054abb4ab824450e9164180baf491ae0078465
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1692
  parent:      -1:0000000000000000000000000000000000000000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1693
  manifest:    3:cb5a1327723bada42f117e4c55a303246eaf9ccc
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1694
  user:        person
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1695
  date:        Fri Jan 16 01:06:40 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1696
  files:       c
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1697
  extra:       branch=default
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1698
  description:
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1699
  no user, no domain
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1700
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1701
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1702
  changeset:   4:bbe44766e73d5f11ed2177f1838de10c53ef3e74
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1703
  bisect:      bad (implicit)
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1704
  branch:      foo
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1705
  phase:       draft
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1706
  parent:      3:10e46f2dcbf4823578cf180f33ecf0b957964c47
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1707
  parent:      -1:0000000000000000000000000000000000000000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1708
  manifest:    3:cb5a1327723bada42f117e4c55a303246eaf9ccc
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1709
  user:        person
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1710
  date:        Sat Jan 17 04:53:20 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1711
  extra:       branch=foo
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1712
  description:
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1713
  new branch
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1714
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1715
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1716
  $ hg log -v -T bisect -r 0:4
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1717
  changeset:   0:1e4e1b8f71e0
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1718
  bisect:      good (implicit)
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1719
  user:        User Name <user@hostname>
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1720
  date:        Mon Jan 12 13:46:40 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1721
  files:       a
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1722
  description:
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1723
  line 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1724
  line 2
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1725
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1726
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1727
  changeset:   1:b608e9d1a3f0
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1728
  bisect:      good
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1729
  user:        A. N. Other <other@place>
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1730
  date:        Tue Jan 13 17:33:20 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1731
  files:       b
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1732
  description:
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1733
  other 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1734
  other 2
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1735
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1736
  other 3
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1737
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1738
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1739
  changeset:   2:97054abb4ab8
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1740
  bisect:      untested
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1741
  user:        other@place
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1742
  date:        Wed Jan 14 21:20:00 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1743
  files:       c
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1744
  description:
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1745
  no person
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1746
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1747
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1748
  changeset:   3:10e46f2dcbf4
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1749
  bisect:      bad
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1750
  user:        person
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1751
  date:        Fri Jan 16 01:06:40 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1752
  files:       c
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1753
  description:
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1754
  no user, no domain
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1755
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1756
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1757
  changeset:   4:bbe44766e73d
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1758
  bisect:      bad (implicit)
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1759
  branch:      foo
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1760
  user:        person
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1761
  date:        Sat Jan 17 04:53:20 1970 +0000
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1762
  description:
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1763
  new branch
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1764
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1765
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1766
  $ hg --color=debug log -T bisect -r 0:4
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1767
  [log.changeset changeset.public|changeset:   0:1e4e1b8f71e0]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1768
  [log.bisect bisect.good|bisect:      good (implicit)]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1769
  [log.user|user:        User Name <user@hostname>]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1770
  [log.date|date:        Mon Jan 12 13:46:40 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1771
  [log.summary|summary:     line 1]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1772
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1773
  [log.changeset changeset.public|changeset:   1:b608e9d1a3f0]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1774
  [log.bisect bisect.good|bisect:      good]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1775
  [log.user|user:        A. N. Other <other@place>]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1776
  [log.date|date:        Tue Jan 13 17:33:20 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1777
  [log.summary|summary:     other 1]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1778
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1779
  [log.changeset changeset.public|changeset:   2:97054abb4ab8]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1780
  [log.bisect bisect.untested|bisect:      untested]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1781
  [log.user|user:        other@place]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1782
  [log.date|date:        Wed Jan 14 21:20:00 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1783
  [log.summary|summary:     no person]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1784
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1785
  [log.changeset changeset.public|changeset:   3:10e46f2dcbf4]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1786
  [log.bisect bisect.bad|bisect:      bad]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1787
  [log.user|user:        person]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1788
  [log.date|date:        Fri Jan 16 01:06:40 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1789
  [log.summary|summary:     no user, no domain]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1790
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1791
  [log.changeset changeset.draft|changeset:   4:bbe44766e73d]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1792
  [log.bisect bisect.bad|bisect:      bad (implicit)]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1793
  [log.branch|branch:      foo]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1794
  [log.user|user:        person]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1795
  [log.date|date:        Sat Jan 17 04:53:20 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1796
  [log.summary|summary:     new branch]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1797
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1798
  $ hg --color=debug log --debug -T bisect -r 0:4
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1799
  [log.changeset changeset.public|changeset:   0:1e4e1b8f71e05681d422154f5421e385fec3454f]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1800
  [log.bisect bisect.good|bisect:      good (implicit)]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1801
  [log.phase|phase:       public]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1802
  [log.parent changeset.public|parent:      -1:0000000000000000000000000000000000000000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1803
  [log.parent changeset.public|parent:      -1:0000000000000000000000000000000000000000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1804
  [ui.debug log.manifest|manifest:    0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1805
  [log.user|user:        User Name <user@hostname>]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1806
  [log.date|date:        Mon Jan 12 13:46:40 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1807
  [ui.debug log.files|files+:      a]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1808
  [ui.debug log.extra|extra:       branch=default]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1809
  [ui.note log.description|description:]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1810
  [ui.note log.description|line 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1811
  line 2]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1812
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1813
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1814
  [log.changeset changeset.public|changeset:   1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1815
  [log.bisect bisect.good|bisect:      good]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1816
  [log.phase|phase:       public]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1817
  [log.parent changeset.public|parent:      0:1e4e1b8f71e05681d422154f5421e385fec3454f]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1818
  [log.parent changeset.public|parent:      -1:0000000000000000000000000000000000000000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1819
  [ui.debug log.manifest|manifest:    1:4e8d705b1e53e3f9375e0e60dc7b525d8211fe55]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1820
  [log.user|user:        A. N. Other <other@place>]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1821
  [log.date|date:        Tue Jan 13 17:33:20 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1822
  [ui.debug log.files|files+:      b]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1823
  [ui.debug log.extra|extra:       branch=default]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1824
  [ui.note log.description|description:]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1825
  [ui.note log.description|other 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1826
  other 2
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1827
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1828
  other 3]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1829
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1830
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1831
  [log.changeset changeset.public|changeset:   2:97054abb4ab824450e9164180baf491ae0078465]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1832
  [log.bisect bisect.untested|bisect:      untested]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1833
  [log.phase|phase:       public]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1834
  [log.parent changeset.public|parent:      1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1835
  [log.parent changeset.public|parent:      -1:0000000000000000000000000000000000000000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1836
  [ui.debug log.manifest|manifest:    2:6e0e82995c35d0d57a52aca8da4e56139e06b4b1]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1837
  [log.user|user:        other@place]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1838
  [log.date|date:        Wed Jan 14 21:20:00 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1839
  [ui.debug log.files|files+:      c]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1840
  [ui.debug log.extra|extra:       branch=default]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1841
  [ui.note log.description|description:]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1842
  [ui.note log.description|no person]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1843
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1844
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1845
  [log.changeset changeset.public|changeset:   3:10e46f2dcbf4823578cf180f33ecf0b957964c47]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1846
  [log.bisect bisect.bad|bisect:      bad]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1847
  [log.phase|phase:       public]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1848
  [log.parent changeset.public|parent:      2:97054abb4ab824450e9164180baf491ae0078465]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1849
  [log.parent changeset.public|parent:      -1:0000000000000000000000000000000000000000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1850
  [ui.debug log.manifest|manifest:    3:cb5a1327723bada42f117e4c55a303246eaf9ccc]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1851
  [log.user|user:        person]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1852
  [log.date|date:        Fri Jan 16 01:06:40 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1853
  [ui.debug log.files|files:       c]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1854
  [ui.debug log.extra|extra:       branch=default]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1855
  [ui.note log.description|description:]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1856
  [ui.note log.description|no user, no domain]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1857
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1858
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1859
  [log.changeset changeset.draft|changeset:   4:bbe44766e73d5f11ed2177f1838de10c53ef3e74]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1860
  [log.bisect bisect.bad|bisect:      bad (implicit)]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1861
  [log.branch|branch:      foo]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1862
  [log.phase|phase:       draft]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1863
  [log.parent changeset.public|parent:      3:10e46f2dcbf4823578cf180f33ecf0b957964c47]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1864
  [log.parent changeset.public|parent:      -1:0000000000000000000000000000000000000000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1865
  [ui.debug log.manifest|manifest:    3:cb5a1327723bada42f117e4c55a303246eaf9ccc]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1866
  [log.user|user:        person]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1867
  [log.date|date:        Sat Jan 17 04:53:20 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1868
  [ui.debug log.extra|extra:       branch=foo]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1869
  [ui.note log.description|description:]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1870
  [ui.note log.description|new branch]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1871
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1872
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1873
  $ hg --color=debug log -v -T bisect -r 0:4
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1874
  [log.changeset changeset.public|changeset:   0:1e4e1b8f71e0]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1875
  [log.bisect bisect.good|bisect:      good (implicit)]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1876
  [log.user|user:        User Name <user@hostname>]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1877
  [log.date|date:        Mon Jan 12 13:46:40 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1878
  [ui.note log.files|files:       a]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1879
  [ui.note log.description|description:]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1880
  [ui.note log.description|line 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1881
  line 2]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1882
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1883
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1884
  [log.changeset changeset.public|changeset:   1:b608e9d1a3f0]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1885
  [log.bisect bisect.good|bisect:      good]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1886
  [log.user|user:        A. N. Other <other@place>]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1887
  [log.date|date:        Tue Jan 13 17:33:20 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1888
  [ui.note log.files|files:       b]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1889
  [ui.note log.description|description:]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1890
  [ui.note log.description|other 1
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1891
  other 2
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1892
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1893
  other 3]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1894
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1895
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1896
  [log.changeset changeset.public|changeset:   2:97054abb4ab8]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1897
  [log.bisect bisect.untested|bisect:      untested]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1898
  [log.user|user:        other@place]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1899
  [log.date|date:        Wed Jan 14 21:20:00 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1900
  [ui.note log.files|files:       c]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1901
  [ui.note log.description|description:]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1902
  [ui.note log.description|no person]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1903
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1904
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1905
  [log.changeset changeset.public|changeset:   3:10e46f2dcbf4]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1906
  [log.bisect bisect.bad|bisect:      bad]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1907
  [log.user|user:        person]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1908
  [log.date|date:        Fri Jan 16 01:06:40 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1909
  [ui.note log.files|files:       c]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1910
  [ui.note log.description|description:]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1911
  [ui.note log.description|no user, no domain]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1912
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1913
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1914
  [log.changeset changeset.draft|changeset:   4:bbe44766e73d]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1915
  [log.bisect bisect.bad|bisect:      bad (implicit)]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1916
  [log.branch|branch:      foo]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1917
  [log.user|user:        person]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1918
  [log.date|date:        Sat Jan 17 04:53:20 1970 +0000]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1919
  [ui.note log.description|description:]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1920
  [ui.note log.description|new branch]
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1921
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1922
  
7c324f65e4ef map-cmdline.bisect: rewrite to just %include the default template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25006
diff changeset
  1923
  $ hg bisect --reset
25006
517763f87141 log: add a status template
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 25005
diff changeset
  1924
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1925
  $ cd ..
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1926
38433
ddce7bdf7f3c tests: extract test-template-map.t from test-command-template.t
Yuya Nishihara <yuya@tcha.org>
parents: 38427
diff changeset
  1927
Set up latesttag repository:
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1928
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1929
  $ hg init latesttag
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1930
  $ cd latesttag
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1931
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1932
  $ echo a > file
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1933
  $ hg ci -Am a -d '0 0'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1934
  adding file
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1935
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1936
  $ echo b >> file
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1937
  $ hg ci -m b -d '1 0'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1938
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1939
  $ echo c >> head1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1940
  $ hg ci -Am h1c -d '2 0'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1941
  adding head1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1942
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1943
  $ hg update -q 1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1944
  $ echo d >> head2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1945
  $ hg ci -Am h2d -d '3 0'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1946
  adding head2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1947
  created new head
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1948
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1949
  $ echo e >> head2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1950
  $ hg ci -m h2e -d '4 0'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1951
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1952
  $ hg merge -q
19989
c38c3fdc8b93 date: allow %z in format (issue4040)
Matt Mackall <mpm@selenic.com>
parents: 19770
diff changeset
  1953
  $ hg ci -m merge -d '5 -3600'
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1954
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1955
  $ hg tag -r 1 -m t1 -d '6 0' t1
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1956
  $ hg tag -r 2 -m t2 -d '7 0' t2
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1957
  $ hg tag -r 3 -m t3 -d '8 0' t3
33862
fb672eac2702 templatekw: choose {latesttag} by len(changes), not date (issue5659)
Martin von Zweigbergk <martinvonz@google.com>
parents: 33861
diff changeset
  1958
  $ hg tag -r 4 -m t4 -d '4 0' t4 # older than t2, but should not matter
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1959
  $ hg tag -r 5 -m t5 -d '9 0' t5
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1960
  $ hg tag -r 3 -m at3 -d '10 0' at3
26485
43bf9471fae9 templater: introduce {latesttag()} function to match a pattern (issue4184)
Matt Harbison <matt_harbison@yahoo.com>
parents: 26234
diff changeset
  1961
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1962
  $ cd ..
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1963
12399
4fee1fd3de9a tests: added a short description to issue numbers
Martin Geisler <mg@aragost.com>
parents: 12316
diff changeset
  1964
Style path expansion: issue1948 - ui.style option doesn't work on OSX
4fee1fd3de9a tests: added a short description to issue numbers
Martin Geisler <mg@aragost.com>
parents: 12316
diff changeset
  1965
if it is a relative path
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1966
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1967
  $ mkdir -p home/styles
10260
fe699ca08a45 templatekw: fix extras, manifest and showlist args (issue1989)
Patrick Mezard <pmezard@gmail.com>
parents: 10250
diff changeset
  1968
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1969
  $ cat > home/styles/teststyle <<EOF
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1970
  > changeset = 'test {rev}:{node|short}\n'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1971
  > EOF
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1972
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1973
  $ HOME=`pwd`/home; export HOME
46092
08fd76a553c9 run-tests: configure the environment to expand `~` properly with Windows py38+
Matt Harbison <matt_harbison@yahoo.com>
parents: 46073
diff changeset
  1974
  $ USERPROFILE=`pwd`/home; export USERPROFILE
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1975
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1976
  $ cat > latesttag/.hg/hgrc <<EOF
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1977
  > [ui]
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1978
  > style = ~/styles/teststyle
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1979
  > EOF
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1980
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1981
  $ hg -R latesttag tip
33862
fb672eac2702 templatekw: choose {latesttag} by len(changes), not date (issue5659)
Martin von Zweigbergk <martinvonz@google.com>
parents: 33861
diff changeset
  1982
  test 11:97e5943b523a
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1983
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1984
Test recursive showlist template (issue1989):
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1985
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1986
  $ cat > style1989 <<EOF
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1987
  > changeset = '{file_mods}{manifest}{extras}'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1988
  > file_mod  = 'M|{author|person}\n'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1989
  > manifest = '{rev},{author}\n'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1990
  > extra = '{key}: {author}\n'
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1991
  > EOF
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1992
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1993
  $ hg -R latesttag log -r tip --style=style1989
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1994
  M|test
39623
34ecc0a09c76 formatter: populate ctx from repo and node value
Yuya Nishihara <yuya@tcha.org>
parents: 38433
diff changeset
  1995
  11,
12283
850e089eb41c tests: unify test-command-template
Adrian Buehlmann <adrian@cadifra.com>
parents: 11656
diff changeset
  1996
  branch: test