annotate tests/test-hgweb-annotate-whitespace.t @ 40417:49c7b701fdc2 stable

phase: add an archived phase This phase allows for hidden changesets in the "user space". It differs from the "internal" phase which is intended for internal by-product only. There have been discussions at the 4.8 sprint to use such phase to speedup cleanup after history rewriting operation. Shipping it in the same release as the 'internal-phase' groups the associated `requires` entry. The important bit is to have support for this phase in the earliest version of mercurial possible. Adding the UI to manipulate this new phase later seems fine. The current plan for archived usage and user interface are as follow. On a repository with internal-phase on and evolution off: * history rewriting command set rewritten changeset in the archived phase. (This mean updating the cleanupnodes method). * keep `hg unbundle .hg/strip-backup/X.hg` as a way to restore changeset for now (backup bundle need to contains phase data) * [maybe] add a `hg strip --soft` advance flag (a light way to expose the feature without getting in the way of a better UI) Mercurial 4.8 freeze is too close to get the above in by then. We don't introduce a new repository `requirement` as we reuse the one introduced with the 'archived' phase during the 4.8 cycle.
author Boris Feld <boris.feld@octobus.net>
date Wed, 17 Oct 2018 14:47:01 +0200
parents 3b4b38130689
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34389
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
1 #require serve
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
3 Create a repo with whitespace only changes
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
4
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
5 $ hg init repo-with-whitespace
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
6 $ cd repo-with-whitespace
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
7 $ cat > foo << EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
8 > line 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
9 > line 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
10 > line 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
11 > line 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
12 > EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
13 $ hg -q commit -A -m 'commit 0'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
14 $ cat > foo << EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
15 > line 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
16 > line 1 modified by 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
17 > line 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
18 > line 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
19 > EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
20 $ hg commit -m 'commit 1'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
21 $ cat > foo << EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
22 > line 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
23 > line 1 modified by 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
24 > line 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
25 > line 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
26 > EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
27 $ hg commit -m 'commit 2 (leading whitespace on line 2)'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
28 $ cat > foo << EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
29 > line 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
30 > line 1 modified by 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
31 > line 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
32 > EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
33 Need to use printf to avoid check-code complaining about trailing whitespace.
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
34 $ printf 'line 3 \n' >> foo
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
35 $ hg commit -m 'commit 3 (trailing whitespace on line 3)'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
36 $ cat > foo << EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
37 > line 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
38 > line 1 modified by 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
39 > line 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
40 > EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
41 $ printf 'line 3 \n' >> foo
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
42 $ hg commit -m 'commit 4 (intra whitespace on line 0)'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
43 $ cat > foo << EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
44 > line 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
45 >
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
46 > line 1 modified by 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
47 > line 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
48 > EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
49 $ printf 'line 3 \n' >> foo
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
50 $ hg commit -m 'commit 5 (add blank line between line 0 and 1)'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
51 $ cat > foo << EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
52 > line 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
53 >
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
54 >
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
55 > line 1 modified by 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
56 > line 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
57 > EOF
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
58 $ printf 'line 3 \n' >> foo
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
59 $ hg commit -m 'commit 6 (add another blank line between line 0 and 1)'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
60
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
61 $ hg log -G -T '{rev}:{node|short} {desc}'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
62 @ 6:9d1b2c7db017 commit 6 (add another blank line between line 0 and 1)
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
63 |
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
64 o 5:400ef1d40470 commit 5 (add blank line between line 0 and 1)
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
65 |
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
66 o 4:08adbe269f24 commit 4 (intra whitespace on line 0)
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
67 |
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
68 o 3:dcb62cfbfc9b commit 3 (trailing whitespace on line 3)
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
69 |
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
70 o 2:6bdb694e7b8c commit 2 (leading whitespace on line 2)
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
71 |
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
72 o 1:23e1e37387dc commit 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
73 |
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
74 o 0:b9c578134d72 commit 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
75
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
76
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
77 $ hg serve -p $HGPORT -d --pid-file hg.pid
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
78 $ cat hg.pid >> $DAEMON_PIDS
34792
3b4b38130689 test-hgweb-annotate-whitespace: make test compatible with chg
Saurabh Singh <singhsrb@fb.com>
parents: 34390
diff changeset
79 $ hg serve --config annotate.ignorews=true -p $HGPORT1 -d --pid-file hg.pid
34389
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
80 $ cat hg.pid >> $DAEMON_PIDS
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
81 $ cd ..
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
82
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
83 Annotate works
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
84
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
85 $ get-with-headers.py --json $LOCALIP:$HGPORT 'json-annotate/9d1b2c7db017/foo'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
86 200 Script output follows
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
87
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
88 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
89 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
90 "annotate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
91 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
92 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
93 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
94 "desc": "commit 4 (intra whitespace on line 0)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
95 "line": "line 0\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
96 "lineno": 1,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
97 "node": "08adbe269f24cf22d975eadeec16790c5b22f558",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
98 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
99 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
100 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
101 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
102 "targetline": 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
103 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
104 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
105 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
106 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
107 "desc": "commit 5 (add blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
108 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
109 "lineno": 2,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
110 "node": "400ef1d404706cfb48afd2b78ce6addf641ced25",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
111 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
112 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
113 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
114 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
115 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
116 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
117 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
118 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
119 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
120 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
121 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
122 "lineno": 3,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
123 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
124 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
125 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
126 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
127 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
128 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
129 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
130 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
131 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
132 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
133 "desc": "commit 1",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
134 "line": "line 1 modified by 1\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
135 "lineno": 4,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
136 "node": "23e1e37387dcfca4c0ed0cc568d1e4b9bfed241a",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
137 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
138 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
139 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
140 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
141 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
142 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
143 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
144 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
145 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
146 "desc": "commit 2 (leading whitespace on line 2)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
147 "line": " line 2\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
148 "lineno": 5,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
149 "node": "6bdb694e7b8cebb68d5b6b27b4bcc2a49d62c602",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
150 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
151 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
152 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
153 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
154 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
155 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
156 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
157 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
158 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
159 "desc": "commit 3 (trailing whitespace on line 3)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
160 "line": "line 3 \n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
161 "lineno": 6,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
162 "node": "dcb62cfbfc9b3ab995a5cbbaff6e1971c3e4f865",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
163 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
164 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
165 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
166 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
167 "targetline": 4
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
168 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
169 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
170 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
171 "children": [],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
172 "date": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
173 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
174 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
175 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
176 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
177 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
178 "parents": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
179 "400ef1d404706cfb48afd2b78ce6addf641ced25"
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
180 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
181 "permissions": ""
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
182 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
183
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
184 annotate.ignorews=1 config option is honored
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
185
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
186 $ get-with-headers.py --json $LOCALIP:$HGPORT1 'json-annotate/9d1b2c7db017/foo'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
187 200 Script output follows
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
188
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
189 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
190 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
191 "annotate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
192 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
193 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
194 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
195 "desc": "commit 0",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
196 "line": "line 0\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
197 "lineno": 1,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
198 "node": "b9c578134d72b3a9d26afde8ddd76c0a93c5adbc",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
199 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
200 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
201 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
202 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
203 "targetline": 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
204 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
205 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
206 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
207 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
208 "desc": "commit 5 (add blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
209 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
210 "lineno": 2,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
211 "node": "400ef1d404706cfb48afd2b78ce6addf641ced25",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
212 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
213 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
214 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
215 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
216 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
217 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
218 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
219 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
220 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
221 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
222 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
223 "lineno": 3,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
224 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
225 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
226 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
227 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
228 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
229 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
230 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
231 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
232 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
233 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
234 "desc": "commit 1",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
235 "line": "line 1 modified by 1\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
236 "lineno": 4,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
237 "node": "23e1e37387dcfca4c0ed0cc568d1e4b9bfed241a",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
238 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
239 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
240 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
241 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
242 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
243 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
244 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
245 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
246 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
247 "desc": "commit 0",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
248 "line": " line 2\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
249 "lineno": 5,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
250 "node": "b9c578134d72b3a9d26afde8ddd76c0a93c5adbc",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
251 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
252 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
253 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
254 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
255 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
256 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
257 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
258 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
259 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
260 "desc": "commit 0",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
261 "line": "line 3 \n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
262 "lineno": 6,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
263 "node": "b9c578134d72b3a9d26afde8ddd76c0a93c5adbc",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
264 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
265 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
266 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
267 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
268 "targetline": 4
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
269 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
270 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
271 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
272 "children": [],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
273 "date": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
274 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
275 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
276 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
277 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
278 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
279 "parents": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
280 "400ef1d404706cfb48afd2b78ce6addf641ced25"
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
281 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
282 "permissions": ""
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
283 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
284
34390
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
285 ignorews=1 query string argument enables whitespace skipping
34389
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
286
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
287 $ get-with-headers.py --json $LOCALIP:$HGPORT 'json-annotate/9d1b2c7db017/foo?ignorews=1'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
288 200 Script output follows
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
289
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
290 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
291 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
292 "annotate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
293 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
294 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
295 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
296 "desc": "commit 0",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
297 "line": "line 0\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
298 "lineno": 1,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
299 "node": "b9c578134d72b3a9d26afde8ddd76c0a93c5adbc",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
300 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
301 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
302 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
303 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
304 "targetline": 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
305 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
306 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
307 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
308 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
309 "desc": "commit 5 (add blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
310 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
311 "lineno": 2,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
312 "node": "400ef1d404706cfb48afd2b78ce6addf641ced25",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
313 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
314 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
315 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
316 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
317 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
318 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
319 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
320 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
321 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
322 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
323 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
324 "lineno": 3,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
325 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
326 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
327 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
328 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
329 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
330 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
331 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
332 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
333 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
334 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
335 "desc": "commit 1",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
336 "line": "line 1 modified by 1\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
337 "lineno": 4,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
338 "node": "23e1e37387dcfca4c0ed0cc568d1e4b9bfed241a",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
339 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
340 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
341 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
342 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
343 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
344 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
345 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
346 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
347 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
348 "desc": "commit 0",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
349 "line": " line 2\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
350 "lineno": 5,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
351 "node": "b9c578134d72b3a9d26afde8ddd76c0a93c5adbc",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
352 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
353 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
354 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
355 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
356 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
357 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
358 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
359 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
360 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
361 "desc": "commit 0",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
362 "line": "line 3 \n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
363 "lineno": 6,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
364 "node": "b9c578134d72b3a9d26afde8ddd76c0a93c5adbc",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
365 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
366 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
367 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
368 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
369 "targetline": 4
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
370 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
371 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
372 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
373 "children": [],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
374 "date": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
375 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
376 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
377 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
378 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
379 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
380 "parents": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
381 "400ef1d404706cfb48afd2b78ce6addf641ced25"
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
382 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
383 "permissions": ""
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
384 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
385
34390
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
386 ignorews=0 query string argument disables when config defaults to enabled
34389
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
387
34390
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
388 $ get-with-headers.py --json $LOCALIP:$HGPORT1 'json-annotate/9d1b2c7db017/foo?ignorews=0'
34389
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
389 200 Script output follows
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
390
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
391 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
392 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
393 "annotate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
394 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
395 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
396 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
397 "desc": "commit 4 (intra whitespace on line 0)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
398 "line": "line 0\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
399 "lineno": 1,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
400 "node": "08adbe269f24cf22d975eadeec16790c5b22f558",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
401 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
402 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
403 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
404 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
405 "targetline": 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
406 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
407 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
408 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
409 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
410 "desc": "commit 5 (add blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
411 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
412 "lineno": 2,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
413 "node": "400ef1d404706cfb48afd2b78ce6addf641ced25",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
414 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
415 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
416 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
417 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
418 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
419 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
420 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
421 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
422 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
423 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
424 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
425 "lineno": 3,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
426 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
427 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
428 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
429 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
430 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
431 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
432 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
433 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
434 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
435 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
436 "desc": "commit 1",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
437 "line": "line 1 modified by 1\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
438 "lineno": 4,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
439 "node": "23e1e37387dcfca4c0ed0cc568d1e4b9bfed241a",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
440 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
441 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
442 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
443 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
444 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
445 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
446 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
447 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
448 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
449 "desc": "commit 2 (leading whitespace on line 2)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
450 "line": " line 2\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
451 "lineno": 5,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
452 "node": "6bdb694e7b8cebb68d5b6b27b4bcc2a49d62c602",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
453 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
454 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
455 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
456 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
457 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
458 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
459 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
460 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
461 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
462 "desc": "commit 3 (trailing whitespace on line 3)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
463 "line": "line 3 \n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
464 "lineno": 6,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
465 "node": "dcb62cfbfc9b3ab995a5cbbaff6e1971c3e4f865",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
466 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
467 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
468 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
469 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
470 "targetline": 4
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
471 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
472 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
473 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
474 "children": [],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
475 "date": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
476 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
477 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
478 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
479 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
480 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
481 "parents": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
482 "400ef1d404706cfb48afd2b78ce6addf641ced25"
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
483 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
484 "permissions": ""
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
485 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
486
34390
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
487 ignorewsamount=1 query string enables whitespace amount skipping
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
488
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
489 $ get-with-headers.py --json $LOCALIP:$HGPORT 'json-annotate/9d1b2c7db017/foo?ignorewsamount=1'
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
490 200 Script output follows
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
491
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
492 {
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
493 "abspath": "foo",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
494 "annotate": [
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
495 {
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
496 "abspath": "foo",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
497 "author": "test",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
498 "desc": "commit 0",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
499 "line": "line 0\n",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
500 "lineno": 1,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
501 "node": "b9c578134d72b3a9d26afde8ddd76c0a93c5adbc",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
502 "revdate": [
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
503 0.0,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
504 0
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
505 ],
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
506 "targetline": 1
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
507 },
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
508 {
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
509 "abspath": "foo",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
510 "author": "test",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
511 "desc": "commit 5 (add blank line between line 0 and 1)",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
512 "line": "\n",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
513 "lineno": 2,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
514 "node": "400ef1d404706cfb48afd2b78ce6addf641ced25",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
515 "revdate": [
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
516 0.0,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
517 0
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
518 ],
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
519 "targetline": 2
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
520 },
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
521 {
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
522 "abspath": "foo",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
523 "author": "test",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
524 "desc": "commit 6 (add another blank line between line 0 and 1)",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
525 "line": "\n",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
526 "lineno": 3,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
527 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
528 "revdate": [
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
529 0.0,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
530 0
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
531 ],
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
532 "targetline": 3
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
533 },
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
534 {
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
535 "abspath": "foo",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
536 "author": "test",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
537 "desc": "commit 1",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
538 "line": "line 1 modified by 1\n",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
539 "lineno": 4,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
540 "node": "23e1e37387dcfca4c0ed0cc568d1e4b9bfed241a",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
541 "revdate": [
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
542 0.0,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
543 0
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
544 ],
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
545 "targetline": 2
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
546 },
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
547 {
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
548 "abspath": "foo",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
549 "author": "test",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
550 "desc": "commit 2 (leading whitespace on line 2)",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
551 "line": " line 2\n",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
552 "lineno": 5,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
553 "node": "6bdb694e7b8cebb68d5b6b27b4bcc2a49d62c602",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
554 "revdate": [
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
555 0.0,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
556 0
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
557 ],
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
558 "targetline": 3
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
559 },
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
560 {
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
561 "abspath": "foo",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
562 "author": "test",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
563 "desc": "commit 0",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
564 "line": "line 3 \n",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
565 "lineno": 6,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
566 "node": "b9c578134d72b3a9d26afde8ddd76c0a93c5adbc",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
567 "revdate": [
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
568 0.0,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
569 0
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
570 ],
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
571 "targetline": 4
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
572 }
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
573 ],
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
574 "author": "test",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
575 "children": [],
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
576 "date": [
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
577 0.0,
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
578 0
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
579 ],
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
580 "desc": "commit 6 (add another blank line between line 0 and 1)",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
581 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
582 "parents": [
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
583 "400ef1d404706cfb48afd2b78ce6addf641ced25"
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
584 ],
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
585 "permissions": ""
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
586 }
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
587
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
588 ignorewseol=1 query string enables whitespace end of line skipping
34389
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
589
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
590 $ get-with-headers.py --json $LOCALIP:$HGPORT 'json-annotate/9d1b2c7db017/foo?ignorewseol=1'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
591 200 Script output follows
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
592
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
593 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
594 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
595 "annotate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
596 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
597 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
598 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
599 "desc": "commit 4 (intra whitespace on line 0)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
600 "line": "line 0\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
601 "lineno": 1,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
602 "node": "08adbe269f24cf22d975eadeec16790c5b22f558",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
603 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
604 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
605 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
606 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
607 "targetline": 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
608 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
609 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
610 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
611 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
612 "desc": "commit 5 (add blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
613 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
614 "lineno": 2,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
615 "node": "400ef1d404706cfb48afd2b78ce6addf641ced25",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
616 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
617 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
618 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
619 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
620 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
621 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
622 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
623 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
624 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
625 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
626 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
627 "lineno": 3,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
628 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
629 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
630 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
631 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
632 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
633 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
634 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
635 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
636 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
637 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
638 "desc": "commit 1",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
639 "line": "line 1 modified by 1\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
640 "lineno": 4,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
641 "node": "23e1e37387dcfca4c0ed0cc568d1e4b9bfed241a",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
642 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
643 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
644 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
645 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
646 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
647 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
648 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
649 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
650 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
651 "desc": "commit 2 (leading whitespace on line 2)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
652 "line": " line 2\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
653 "lineno": 5,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
654 "node": "6bdb694e7b8cebb68d5b6b27b4bcc2a49d62c602",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
655 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
656 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
657 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
658 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
659 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
660 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
661 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
662 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
663 "author": "test",
34390
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
664 "desc": "commit 0",
34389
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
665 "line": "line 3 \n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
666 "lineno": 6,
34390
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
667 "node": "b9c578134d72b3a9d26afde8ddd76c0a93c5adbc",
34389
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
668 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
669 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
670 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
671 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
672 "targetline": 4
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
673 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
674 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
675 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
676 "children": [],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
677 "date": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
678 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
679 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
680 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
681 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
682 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
683 "parents": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
684 "400ef1d404706cfb48afd2b78ce6addf641ced25"
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
685 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
686 "permissions": ""
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
687 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
688
34390
f6492f482c60 hgweb: query string arguments to control whitespace for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34389
diff changeset
689 ignoreblanklines=1 query string enables whitespace blank line skipping
34389
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
690
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
691 $ get-with-headers.py --json $LOCALIP:$HGPORT 'json-annotate/9d1b2c7db017/foo?ignoreblanklines=1'
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
692 200 Script output follows
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
693
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
694 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
695 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
696 "annotate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
697 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
698 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
699 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
700 "desc": "commit 4 (intra whitespace on line 0)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
701 "line": "line 0\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
702 "lineno": 1,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
703 "node": "08adbe269f24cf22d975eadeec16790c5b22f558",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
704 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
705 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
706 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
707 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
708 "targetline": 1
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
709 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
710 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
711 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
712 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
713 "desc": "commit 5 (add blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
714 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
715 "lineno": 2,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
716 "node": "400ef1d404706cfb48afd2b78ce6addf641ced25",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
717 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
718 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
719 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
720 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
721 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
722 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
723 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
724 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
725 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
726 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
727 "line": "\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
728 "lineno": 3,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
729 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
730 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
731 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
732 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
733 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
734 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
735 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
736 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
737 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
738 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
739 "desc": "commit 1",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
740 "line": "line 1 modified by 1\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
741 "lineno": 4,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
742 "node": "23e1e37387dcfca4c0ed0cc568d1e4b9bfed241a",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
743 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
744 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
745 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
746 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
747 "targetline": 2
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
748 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
749 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
750 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
751 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
752 "desc": "commit 2 (leading whitespace on line 2)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
753 "line": " line 2\n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
754 "lineno": 5,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
755 "node": "6bdb694e7b8cebb68d5b6b27b4bcc2a49d62c602",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
756 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
757 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
758 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
759 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
760 "targetline": 3
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
761 },
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
762 {
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
763 "abspath": "foo",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
764 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
765 "desc": "commit 3 (trailing whitespace on line 3)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
766 "line": "line 3 \n",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
767 "lineno": 6,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
768 "node": "dcb62cfbfc9b3ab995a5cbbaff6e1971c3e4f865",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
769 "revdate": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
770 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
771 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
772 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
773 "targetline": 4
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
774 }
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
775 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
776 "author": "test",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
777 "children": [],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
778 "date": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
779 0.0,
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
780 0
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
781 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
782 "desc": "commit 6 (add another blank line between line 0 and 1)",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
783 "node": "9d1b2c7db0175870a950f8c48c9c4ead1058f2c5",
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
784 "parents": [
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
785 "400ef1d404706cfb48afd2b78ce6addf641ced25"
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
786 ],
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
787 "permissions": ""
e16ad1576d71 tests: add tests for hgweb annotate output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
788 }