##// END OF EJS Templates
hgweb: fix filelog rss links generation
Patrick Mezard -
r13547:a2dc8819 stable
parent child Browse files
Show More
@@ -1,7 +1,7 b''
1 1 <item>
2 2 <title>{desc|strip|firstline|strip|escape}</title>
3 <link>{urlbase}{url}log{{node|short}}/{file|urlescape}</link>
3 <link>{urlbase}{url}log{node|short}/{file|urlescape}</link>
4 4 <description><![CDATA[{desc|strip|escape|addbreaks|nonempty}]]></description>
5 5 <author>{author|obfuscate}</author>
6 6 <pubDate>{date|rfc822date}</pubDate>
7 7 </item>
@@ -1,661 +1,739 b''
1 1
2 2 $ hg init test
3 3 $ cd test
4 4 $ echo b > b
5 5 $ hg ci -Am "b"
6 6 adding b
7 7 $ echo a > a
8 8 $ hg ci -Am "first a"
9 9 adding a
10 10 $ hg rm a
11 11 $ hg ci -m "del a"
12 12 $ echo b > a
13 13 $ hg ci -Am "second a"
14 14 adding a
15 15 $ hg rm a
16 16 $ hg ci -m "del2 a"
17 17 $ hg mv b c
18 18 $ hg ci -m "mv b"
19 19 $ echo c >> c
20 20 $ hg ci -m "change c"
21 21 $ hg log -p
22 22 changeset: 6:b7682196df1c
23 23 tag: tip
24 24 user: test
25 25 date: Thu Jan 01 00:00:00 1970 +0000
26 26 summary: change c
27 27
28 28 diff -r 1a6696706df2 -r b7682196df1c c
29 29 --- a/c Thu Jan 01 00:00:00 1970 +0000
30 30 +++ b/c Thu Jan 01 00:00:00 1970 +0000
31 31 @@ -1,1 +1,2 @@
32 32 b
33 33 +c
34 34
35 35 changeset: 5:1a6696706df2
36 36 user: test
37 37 date: Thu Jan 01 00:00:00 1970 +0000
38 38 summary: mv b
39 39
40 40 diff -r 52e848cdcd88 -r 1a6696706df2 b
41 41 --- a/b Thu Jan 01 00:00:00 1970 +0000
42 42 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
43 43 @@ -1,1 +0,0 @@
44 44 -b
45 45 diff -r 52e848cdcd88 -r 1a6696706df2 c
46 46 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
47 47 +++ b/c Thu Jan 01 00:00:00 1970 +0000
48 48 @@ -0,0 +1,1 @@
49 49 +b
50 50
51 51 changeset: 4:52e848cdcd88
52 52 user: test
53 53 date: Thu Jan 01 00:00:00 1970 +0000
54 54 summary: del2 a
55 55
56 56 diff -r 01de2d66a28d -r 52e848cdcd88 a
57 57 --- a/a Thu Jan 01 00:00:00 1970 +0000
58 58 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
59 59 @@ -1,1 +0,0 @@
60 60 -b
61 61
62 62 changeset: 3:01de2d66a28d
63 63 user: test
64 64 date: Thu Jan 01 00:00:00 1970 +0000
65 65 summary: second a
66 66
67 67 diff -r be3ebcc91739 -r 01de2d66a28d a
68 68 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
69 69 +++ b/a Thu Jan 01 00:00:00 1970 +0000
70 70 @@ -0,0 +1,1 @@
71 71 +b
72 72
73 73 changeset: 2:be3ebcc91739
74 74 user: test
75 75 date: Thu Jan 01 00:00:00 1970 +0000
76 76 summary: del a
77 77
78 78 diff -r 5ed941583260 -r be3ebcc91739 a
79 79 --- a/a Thu Jan 01 00:00:00 1970 +0000
80 80 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
81 81 @@ -1,1 +0,0 @@
82 82 -a
83 83
84 84 changeset: 1:5ed941583260
85 85 user: test
86 86 date: Thu Jan 01 00:00:00 1970 +0000
87 87 summary: first a
88 88
89 89 diff -r 6563da9dcf87 -r 5ed941583260 a
90 90 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
91 91 +++ b/a Thu Jan 01 00:00:00 1970 +0000
92 92 @@ -0,0 +1,1 @@
93 93 +a
94 94
95 95 changeset: 0:6563da9dcf87
96 96 user: test
97 97 date: Thu Jan 01 00:00:00 1970 +0000
98 98 summary: b
99 99
100 100 diff -r 000000000000 -r 6563da9dcf87 b
101 101 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
102 102 +++ b/b Thu Jan 01 00:00:00 1970 +0000
103 103 @@ -0,0 +1,1 @@
104 104 +b
105 105
106 106 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
107 107 $ cat hg.pid >> $DAEMON_PIDS
108 108
109 109 tip - two revisions
110 110
111 111 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/a')
112 112 200 Script output follows
113 113
114 114 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
115 115 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
116 116 <head>
117 117 <link rel="icon" href="/static/hgicon.png" type="image/png" />
118 118 <meta name="robots" content="index, nofollow" />
119 119 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
120 120
121 121 <title>test: a history</title>
122 122 <link rel="alternate" type="application/atom+xml"
123 123 href="/atom-log/tip/a" title="Atom feed for test:a" />
124 124 <link rel="alternate" type="application/rss+xml"
125 125 href="/rss-log/tip/a" title="RSS feed for test:a" />
126 126 </head>
127 127 <body>
128 128
129 129 <div class="container">
130 130 <div class="menu">
131 131 <div class="logo">
132 132 <a href="http://mercurial.selenic.com/">
133 133 <img src="/static/hglogo.png" alt="mercurial" /></a>
134 134 </div>
135 135 <ul>
136 136 <li><a href="/shortlog/01de2d66a28d">log</a></li>
137 137 <li><a href="/graph/01de2d66a28d">graph</a></li>
138 138 <li><a href="/tags">tags</a></li>
139 139 <li><a href="/branches">branches</a></li>
140 140 </ul>
141 141 <ul>
142 142 <li><a href="/rev/01de2d66a28d">changeset</a></li>
143 143 <li><a href="/file/01de2d66a28d">browse</a></li>
144 144 </ul>
145 145 <ul>
146 146 <li><a href="/file/01de2d66a28d/a">file</a></li>
147 147 <li><a href="/diff/01de2d66a28d/a">diff</a></li>
148 148 <li><a href="/annotate/01de2d66a28d/a">annotate</a></li>
149 149 <li class="active">file log</li>
150 150 <li><a href="/raw-file/01de2d66a28d/a">raw</a></li>
151 151 </ul>
152 152 <ul>
153 153 <li><a href="/help">help</a></li>
154 154 </ul>
155 155 </div>
156 156
157 157 <div class="main">
158 158 <h2><a href="/">test</a></h2>
159 159 <h3>log a</h3>
160 160
161 161 <form class="search" action="/log">
162 162
163 163 <p><input name="rev" id="search1" type="text" size="30" /></p>
164 164 <div id="hint">find changesets by author, revision,
165 165 files, or words in the commit message</div>
166 166 </form>
167 167
168 168 <div class="navigate">
169 169 <a href="/log/01de2d66a28d/a?revcount=30">less</a>
170 170 <a href="/log/01de2d66a28d/a?revcount=120">more</a>
171 171 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
172 172
173 173 <table class="bigtable">
174 174 <tr>
175 175 <th class="age">age</th>
176 176 <th class="author">author</th>
177 177 <th class="description">description</th>
178 178 </tr>
179 179 <tr class="parity0">
180 180 <td class="age">1970-01-01</td>
181 181 <td class="author">test</td>
182 182 <td class="description"><a href="/rev/01de2d66a28d">second a</a></td>
183 183 </tr>
184 184 <tr class="parity1">
185 185 <td class="age">1970-01-01</td>
186 186 <td class="author">test</td>
187 187 <td class="description"><a href="/rev/5ed941583260">first a</a></td>
188 188 </tr>
189 189
190 190 </table>
191 191
192 192 <div class="navigate">
193 193 <a href="/log/01de2d66a28d/a?revcount=30">less</a>
194 194 <a href="/log/01de2d66a28d/a?revcount=120">more</a>
195 195 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
196 196 </div>
197 197
198 198 </div>
199 199 </div>
200 200
201 201
202 202
203 203 </body>
204 204 </html>
205 205
206 206
207 207 second version - two revisions
208 208
209 209 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/3/a')
210 210 200 Script output follows
211 211
212 212 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
213 213 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
214 214 <head>
215 215 <link rel="icon" href="/static/hgicon.png" type="image/png" />
216 216 <meta name="robots" content="index, nofollow" />
217 217 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
218 218
219 219 <title>test: a history</title>
220 220 <link rel="alternate" type="application/atom+xml"
221 221 href="/atom-log/tip/a" title="Atom feed for test:a" />
222 222 <link rel="alternate" type="application/rss+xml"
223 223 href="/rss-log/tip/a" title="RSS feed for test:a" />
224 224 </head>
225 225 <body>
226 226
227 227 <div class="container">
228 228 <div class="menu">
229 229 <div class="logo">
230 230 <a href="http://mercurial.selenic.com/">
231 231 <img src="/static/hglogo.png" alt="mercurial" /></a>
232 232 </div>
233 233 <ul>
234 234 <li><a href="/shortlog/01de2d66a28d">log</a></li>
235 235 <li><a href="/graph/01de2d66a28d">graph</a></li>
236 236 <li><a href="/tags">tags</a></li>
237 237 <li><a href="/branches">branches</a></li>
238 238 </ul>
239 239 <ul>
240 240 <li><a href="/rev/01de2d66a28d">changeset</a></li>
241 241 <li><a href="/file/01de2d66a28d">browse</a></li>
242 242 </ul>
243 243 <ul>
244 244 <li><a href="/file/01de2d66a28d/a">file</a></li>
245 245 <li><a href="/diff/01de2d66a28d/a">diff</a></li>
246 246 <li><a href="/annotate/01de2d66a28d/a">annotate</a></li>
247 247 <li class="active">file log</li>
248 248 <li><a href="/raw-file/01de2d66a28d/a">raw</a></li>
249 249 </ul>
250 250 <ul>
251 251 <li><a href="/help">help</a></li>
252 252 </ul>
253 253 </div>
254 254
255 255 <div class="main">
256 256 <h2><a href="/">test</a></h2>
257 257 <h3>log a</h3>
258 258
259 259 <form class="search" action="/log">
260 260
261 261 <p><input name="rev" id="search1" type="text" size="30" /></p>
262 262 <div id="hint">find changesets by author, revision,
263 263 files, or words in the commit message</div>
264 264 </form>
265 265
266 266 <div class="navigate">
267 267 <a href="/log/01de2d66a28d/a?revcount=30">less</a>
268 268 <a href="/log/01de2d66a28d/a?revcount=120">more</a>
269 269 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
270 270
271 271 <table class="bigtable">
272 272 <tr>
273 273 <th class="age">age</th>
274 274 <th class="author">author</th>
275 275 <th class="description">description</th>
276 276 </tr>
277 277 <tr class="parity0">
278 278 <td class="age">1970-01-01</td>
279 279 <td class="author">test</td>
280 280 <td class="description"><a href="/rev/01de2d66a28d">second a</a></td>
281 281 </tr>
282 282 <tr class="parity1">
283 283 <td class="age">1970-01-01</td>
284 284 <td class="author">test</td>
285 285 <td class="description"><a href="/rev/5ed941583260">first a</a></td>
286 286 </tr>
287 287
288 288 </table>
289 289
290 290 <div class="navigate">
291 291 <a href="/log/01de2d66a28d/a?revcount=30">less</a>
292 292 <a href="/log/01de2d66a28d/a?revcount=120">more</a>
293 293 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
294 294 </div>
295 295
296 296 </div>
297 297 </div>
298 298
299 299
300 300
301 301 </body>
302 302 </html>
303 303
304 304
305 305 first deleted - one revision
306 306
307 307 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/2/a')
308 308 200 Script output follows
309 309
310 310 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
311 311 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
312 312 <head>
313 313 <link rel="icon" href="/static/hgicon.png" type="image/png" />
314 314 <meta name="robots" content="index, nofollow" />
315 315 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
316 316
317 317 <title>test: a history</title>
318 318 <link rel="alternate" type="application/atom+xml"
319 319 href="/atom-log/tip/a" title="Atom feed for test:a" />
320 320 <link rel="alternate" type="application/rss+xml"
321 321 href="/rss-log/tip/a" title="RSS feed for test:a" />
322 322 </head>
323 323 <body>
324 324
325 325 <div class="container">
326 326 <div class="menu">
327 327 <div class="logo">
328 328 <a href="http://mercurial.selenic.com/">
329 329 <img src="/static/hglogo.png" alt="mercurial" /></a>
330 330 </div>
331 331 <ul>
332 332 <li><a href="/shortlog/5ed941583260">log</a></li>
333 333 <li><a href="/graph/5ed941583260">graph</a></li>
334 334 <li><a href="/tags">tags</a></li>
335 335 <li><a href="/branches">branches</a></li>
336 336 </ul>
337 337 <ul>
338 338 <li><a href="/rev/5ed941583260">changeset</a></li>
339 339 <li><a href="/file/5ed941583260">browse</a></li>
340 340 </ul>
341 341 <ul>
342 342 <li><a href="/file/5ed941583260/a">file</a></li>
343 343 <li><a href="/diff/5ed941583260/a">diff</a></li>
344 344 <li><a href="/annotate/5ed941583260/a">annotate</a></li>
345 345 <li class="active">file log</li>
346 346 <li><a href="/raw-file/5ed941583260/a">raw</a></li>
347 347 </ul>
348 348 <ul>
349 349 <li><a href="/help">help</a></li>
350 350 </ul>
351 351 </div>
352 352
353 353 <div class="main">
354 354 <h2><a href="/">test</a></h2>
355 355 <h3>log a</h3>
356 356
357 357 <form class="search" action="/log">
358 358
359 359 <p><input name="rev" id="search1" type="text" size="30" /></p>
360 360 <div id="hint">find changesets by author, revision,
361 361 files, or words in the commit message</div>
362 362 </form>
363 363
364 364 <div class="navigate">
365 365 <a href="/log/5ed941583260/a?revcount=30">less</a>
366 366 <a href="/log/5ed941583260/a?revcount=120">more</a>
367 367 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
368 368
369 369 <table class="bigtable">
370 370 <tr>
371 371 <th class="age">age</th>
372 372 <th class="author">author</th>
373 373 <th class="description">description</th>
374 374 </tr>
375 375 <tr class="parity0">
376 376 <td class="age">1970-01-01</td>
377 377 <td class="author">test</td>
378 378 <td class="description"><a href="/rev/5ed941583260">first a</a></td>
379 379 </tr>
380 380
381 381 </table>
382 382
383 383 <div class="navigate">
384 384 <a href="/log/5ed941583260/a?revcount=30">less</a>
385 385 <a href="/log/5ed941583260/a?revcount=120">more</a>
386 386 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
387 387 </div>
388 388
389 389 </div>
390 390 </div>
391 391
392 392
393 393
394 394 </body>
395 395 </html>
396 396
397 397
398 398 first version - one revision
399 399
400 400 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/1/a')
401 401 200 Script output follows
402 402
403 403 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
404 404 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
405 405 <head>
406 406 <link rel="icon" href="/static/hgicon.png" type="image/png" />
407 407 <meta name="robots" content="index, nofollow" />
408 408 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
409 409
410 410 <title>test: a history</title>
411 411 <link rel="alternate" type="application/atom+xml"
412 412 href="/atom-log/tip/a" title="Atom feed for test:a" />
413 413 <link rel="alternate" type="application/rss+xml"
414 414 href="/rss-log/tip/a" title="RSS feed for test:a" />
415 415 </head>
416 416 <body>
417 417
418 418 <div class="container">
419 419 <div class="menu">
420 420 <div class="logo">
421 421 <a href="http://mercurial.selenic.com/">
422 422 <img src="/static/hglogo.png" alt="mercurial" /></a>
423 423 </div>
424 424 <ul>
425 425 <li><a href="/shortlog/5ed941583260">log</a></li>
426 426 <li><a href="/graph/5ed941583260">graph</a></li>
427 427 <li><a href="/tags">tags</a></li>
428 428 <li><a href="/branches">branches</a></li>
429 429 </ul>
430 430 <ul>
431 431 <li><a href="/rev/5ed941583260">changeset</a></li>
432 432 <li><a href="/file/5ed941583260">browse</a></li>
433 433 </ul>
434 434 <ul>
435 435 <li><a href="/file/5ed941583260/a">file</a></li>
436 436 <li><a href="/diff/5ed941583260/a">diff</a></li>
437 437 <li><a href="/annotate/5ed941583260/a">annotate</a></li>
438 438 <li class="active">file log</li>
439 439 <li><a href="/raw-file/5ed941583260/a">raw</a></li>
440 440 </ul>
441 441 <ul>
442 442 <li><a href="/help">help</a></li>
443 443 </ul>
444 444 </div>
445 445
446 446 <div class="main">
447 447 <h2><a href="/">test</a></h2>
448 448 <h3>log a</h3>
449 449
450 450 <form class="search" action="/log">
451 451
452 452 <p><input name="rev" id="search1" type="text" size="30" /></p>
453 453 <div id="hint">find changesets by author, revision,
454 454 files, or words in the commit message</div>
455 455 </form>
456 456
457 457 <div class="navigate">
458 458 <a href="/log/5ed941583260/a?revcount=30">less</a>
459 459 <a href="/log/5ed941583260/a?revcount=120">more</a>
460 460 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
461 461
462 462 <table class="bigtable">
463 463 <tr>
464 464 <th class="age">age</th>
465 465 <th class="author">author</th>
466 466 <th class="description">description</th>
467 467 </tr>
468 468 <tr class="parity0">
469 469 <td class="age">1970-01-01</td>
470 470 <td class="author">test</td>
471 471 <td class="description"><a href="/rev/5ed941583260">first a</a></td>
472 472 </tr>
473 473
474 474 </table>
475 475
476 476 <div class="navigate">
477 477 <a href="/log/5ed941583260/a?revcount=30">less</a>
478 478 <a href="/log/5ed941583260/a?revcount=120">more</a>
479 479 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
480 480 </div>
481 481
482 482 </div>
483 483 </div>
484 484
485 485
486 486
487 487 </body>
488 488 </html>
489 489
490 490
491 491 before addition - error
492 492
493 493 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a')
494 494 404 Not Found
495 495
496 496 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
497 497 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
498 498 <head>
499 499 <link rel="icon" href="/static/hgicon.png" type="image/png" />
500 500 <meta name="robots" content="index, nofollow" />
501 501 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
502 502
503 503 <title>test: error</title>
504 504 </head>
505 505 <body>
506 506
507 507 <div class="container">
508 508 <div class="menu">
509 509 <div class="logo">
510 510 <a href="http://mercurial.selenic.com/">
511 511 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
512 512 </div>
513 513 <ul>
514 514 <li><a href="/shortlog">log</a></li>
515 515 <li><a href="/graph">graph</a></li>
516 516 <li><a href="/tags">tags</a></li>
517 517 <li><a href="/branches">branches</a></li>
518 518 <li><a href="/help">help</a></li>
519 519 </ul>
520 520 </div>
521 521
522 522 <div class="main">
523 523
524 524 <h2><a href="/">test</a></h2>
525 525 <h3>error</h3>
526 526
527 527 <form class="search" action="/log">
528 528
529 529 <p><input name="rev" id="search1" type="text" size="30"></p>
530 530 <div id="hint">find changesets by author, revision,
531 531 files, or words in the commit message</div>
532 532 </form>
533 533
534 534 <div class="description">
535 535 <p>
536 536 An error occurred while processing your request:
537 537 </p>
538 538 <p>
539 539 a@6563da9dcf87: not found in manifest
540 540 </p>
541 541 </div>
542 542 </div>
543 543 </div>
544 544
545 545
546 546
547 547 </body>
548 548 </html>
549 549
550 550 [1]
551 551
552 552 should show base link, use spartan because it shows it
553 553
554 554 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/c?style=spartan')
555 555 200 Script output follows
556 556
557 557 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
558 558 <html>
559 559 <head>
560 560 <link rel="icon" href="/static/hgicon.png" type="image/png">
561 561 <meta name="robots" content="index, nofollow" />
562 562 <link rel="stylesheet" href="/static/style.css" type="text/css" />
563 563
564 564 <title>test: c history</title>
565 565 <link rel="alternate" type="application/atom+xml"
566 566 href="/atom-log/tip/c" title="Atom feed for test:c">
567 567 <link rel="alternate" type="application/rss+xml"
568 568 href="/rss-log/tip/c" title="RSS feed for test:c">
569 569 </head>
570 570 <body>
571 571
572 572 <div class="buttons">
573 573 <a href="/log?style=spartan">changelog</a>
574 574 <a href="/shortlog?style=spartan">shortlog</a>
575 575 <a href="/graph?style=spartan">graph</a>
576 576 <a href="/tags?style=spartan">tags</a>
577 577 <a href="/branches?style=spartan">branches</a>
578 578 <a href="/file/b7682196df1c/c?style=spartan">file</a>
579 579 <a href="/annotate/b7682196df1c/c?style=spartan">annotate</a>
580 580 <a href="/help?style=spartan">help</a>
581 581 <a type="application/rss+xml" href="/rss-log/tip/c">rss</a>
582 582 <a type="application/atom+xml" href="/atom-log/tip/c" title="Atom feed for test:c">atom</a>
583 583 </div>
584 584
585 585 <h2>c revision history</h2>
586 586
587 587 <p>navigate: <small class="navigate"><a href="/log/1a6696706df2/c?style=spartan">(0)</a> <a href="/log/tip/c?style=spartan">tip</a> </small></p>
588 588
589 589 <table class="logEntry parity0">
590 590 <tr>
591 591 <th class="age">1970-01-01:</th>
592 592 <th class="firstline"><a href="/rev/b7682196df1c?style=spartan">change c</a></th>
593 593 </tr>
594 594 <tr>
595 595 <th class="revision">revision 1:</td>
596 596 <td class="node">
597 597 <a href="/file/b7682196df1c/c?style=spartan">b7682196df1c</a>
598 598 <a href="/diff/b7682196df1c/c?style=spartan">(diff)</a>
599 599 <a href="/annotate/b7682196df1c/c?style=spartan">(annotate)</a>
600 600 </td>
601 601 </tr>
602 602
603 603 <tr>
604 604 <th class="author">author:</th>
605 605 <td class="author">&#116;&#101;&#115;&#116;</td>
606 606 </tr>
607 607 <tr>
608 608 <th class="date">date:</th>
609 609 <td class="date">Thu Jan 01 00:00:00 1970 +0000</td>
610 610 </tr>
611 611 </table>
612 612
613 613
614 614 <table class="logEntry parity1">
615 615 <tr>
616 616 <th class="age">1970-01-01:</th>
617 617 <th class="firstline"><a href="/rev/1a6696706df2?style=spartan">mv b</a></th>
618 618 </tr>
619 619 <tr>
620 620 <th class="revision">revision 0:</td>
621 621 <td class="node">
622 622 <a href="/file/1a6696706df2/c?style=spartan">1a6696706df2</a>
623 623 <a href="/diff/1a6696706df2/c?style=spartan">(diff)</a>
624 624 <a href="/annotate/1a6696706df2/c?style=spartan">(annotate)</a>
625 625 </td>
626 626 </tr>
627 627
628 628 <tr>
629 629 <th>base:</th>
630 630 <td>
631 631 <a href="/file/1e88685f5dde/b?style=spartan">
632 632 b@1e88685f5dde
633 633 </a>
634 634 </td>
635 635 </tr>
636 636 <tr>
637 637 <th class="author">author:</th>
638 638 <td class="author">&#116;&#101;&#115;&#116;</td>
639 639 </tr>
640 640 <tr>
641 641 <th class="date">date:</th>
642 642 <td class="date">Thu Jan 01 00:00:00 1970 +0000</td>
643 643 </tr>
644 644 </table>
645 645
646 646
647 647
648 648
649 649
650 650 <div class="logo">
651 651 <a href="http://mercurial.selenic.com/">
652 652 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
653 653 </div>
654 654
655 655 </body>
656 656 </html>
657 657
658 658
659 rss log
660
661 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rss-log/tip/a')
662 200 Script output follows
663
664 <?xml version="1.0" encoding="ascii"?>
665 <rss version="2.0">
666 <channel>
667 <link>http://*:$HGPORT/</link> (glob)
668 <language>en-us</language>
669
670 <title>test: a history</title>
671 <description>a revision history</description>
672 <item>
673 <title>second a</title>
674 <link>http://*:$HGPORT/log01de2d66a28d/a</link> (glob)
675 <description><![CDATA[second a]]></description>
676 <author>&#116;&#101;&#115;&#116;</author>
677 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
678 </item>
679 <item>
680 <title>first a</title>
681 <link>http://*:$HGPORT/log5ed941583260/a</link> (glob)
682 <description><![CDATA[first a]]></description>
683 <author>&#116;&#101;&#115;&#116;</author>
684 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
685 </item>
686
687 </channel>
688 </rss>
689
690 atom log
691
692 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/atom-log/tip/a')
693 200 Script output follows
694
695 <?xml version="1.0" encoding="ascii"?>
696 <feed xmlns="http://www.w3.org/2005/Atom">
697 <id>http://*:$HGPORT/atom-log/tip/a</id> (glob)
698 <link rel="self" href="http://*:$HGPORT/atom-log/tip/a"/> (glob)
699 <title>test: a history</title>
700 <updated>1970-01-01T00:00:00+00:00</updated>
701
702 <entry>
703 <title>second a</title>
704 <id>http://*:$HGPORT/#changeset-01de2d66a28df5549090991dccda788726948517</id> (glob)
705 <link href="http://*:$HGPORT/rev/01de2d66a28d"/> (glob)
706 <author>
707 <name>test</name>
708 <email>&#116;&#101;&#115;&#116;</email>
709 </author>
710 <updated>1970-01-01T00:00:00+00:00</updated>
711 <published>1970-01-01T00:00:00+00:00</published>
712 <content type="xhtml">
713 <div xmlns="http://www.w3.org/1999/xhtml">
714 <pre xml:space="preserve">second a</pre>
715 </div>
716 </content>
717 </entry>
718 <entry>
719 <title>first a</title>
720 <id>http://*:$HGPORT/#changeset-5ed941583260248620985524192fdc382ef57c36</id> (glob)
721 <link href="http://*:$HGPORT/rev/5ed941583260"/> (glob)
722 <author>
723 <name>test</name>
724 <email>&#116;&#101;&#115;&#116;</email>
725 </author>
726 <updated>1970-01-01T00:00:00+00:00</updated>
727 <published>1970-01-01T00:00:00+00:00</published>
728 <content type="xhtml">
729 <div xmlns="http://www.w3.org/1999/xhtml">
730 <pre xml:space="preserve">first a</pre>
731 </div>
732 </content>
733 </entry>
734
735 </feed>
736
659 737 errors
660 738
661 739 $ cat errors.log
General Comments 0
You need to be logged in to leave comments. Login now