Show More
@@ -172,3 +172,12 b" help = '\\{" | |||||
172 | }' |
|
172 | }' | |
173 | filenodelink = '' |
|
173 | filenodelink = '' | |
174 | filenolink = '' |
|
174 | filenolink = '' | |
|
175 | index = '\{ | |||
|
176 | "entries": [{join(entries%indexentry, ", ")}] | |||
|
177 | }' | |||
|
178 | indexentry = '\{ | |||
|
179 | "name": {name|utf8|json}, | |||
|
180 | "description": {description|utf8|json}, | |||
|
181 | "contact": {contact|utf8|json}, | |||
|
182 | "lastchange": {lastchange|json} | |||
|
183 | }' |
@@ -100,6 +100,23 b' should succeed' | |||||
100 | /a/ |
|
100 | /a/ | |
101 | /b/ |
|
101 | /b/ | |
102 |
|
102 | |||
|
103 | $ get-with-headers.py localhost:$HGPORT '?style=json' | |||
|
104 | 200 Script output follows | |||
|
105 | ||||
|
106 | { | |||
|
107 | "entries": [{ | |||
|
108 | "name": "a", | |||
|
109 | "description": "unknown", | |||
|
110 | "contact": "Foo Bar \u003cfoo.bar@example.com\u003e", | |||
|
111 | "lastchange": [*, *] (glob) | |||
|
112 | }, { | |||
|
113 | "name": "b", | |||
|
114 | "description": "unknown", | |||
|
115 | "contact": "Foo Bar \u003cfoo.bar@example.com\u003e", | |||
|
116 | "lastchange": [*, *] (glob) | |||
|
117 | }] | |||
|
118 | } (no-eol) | |||
|
119 | ||||
103 | $ get-with-headers.py localhost:$HGPORT 'a/file/tip/a?style=raw' |
|
120 | $ get-with-headers.py localhost:$HGPORT 'a/file/tip/a?style=raw' | |
104 | 200 Script output follows |
|
121 | 200 Script output follows | |
105 |
|
122 |
General Comments 0
You need to be logged in to leave comments.
Login now