Debian Codegraph @

tests/test-hgweb-commands.t

raw
1 #require serve
2
3 An attempt at more fully testing the hgweb web interface.
4 The following things are tested elsewhere and are therefore omitted:
5 - archive, tested in test-archive
6 - unbundle, tested in test-push-http
7 - changegroupsubset, tested in test-pull
8
9 Set up the repo
10
11 $ hg init test
12 $ cd test
13 $ mkdir da
14 $ echo foo > da/foo
15 $ echo foo > foo
16 $ hg ci -Ambase
17 adding da/foo
18 adding foo
19 $ hg tag 1.0
20 $ hg bookmark some-thing
21 $ hg bookmark -r0 anotherthing
22 $ echo another > foo
23 $ hg branch stable
24 marked working directory as branch stable
25 (branches are permanent and global, did you want a bookmark?)
26 $ hg ci -Ambranch
27 $ hg branch unstable
28 marked working directory as branch unstable
29 >>> open('msg', 'wb').write(b'branch commit with null character: \0\n') and None
30 $ hg ci -l msg
31 $ rm msg
32
33 $ cat > .hg/hgrc <<EOF
34 > [graph]
35 > default.width = 3
36 > stable.width = 3
37 > stable.color = FF0000
38 > [websub]
39 > append = s|(.+)|\1(websub)|
40 > EOF
41
42 $ hg serve --config server.uncompressed=False -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
43 $ cat hg.pid >> $DAEMON_PIDS
44 $ hg log -G --template '{rev}:{node|short} {desc}\n'
45 @ 3:cad8025a2e87 branch commit with null character: \x00 (esc)
46 |
47 o 2:1d22e65f027e branch
48 |
49 o 1:a4f92ed23982 Added tag 1.0 for changeset 2ef0ac749a14
50 |
51 o 0:2ef0ac749a14 base
52
53
54 Logs and changes
55
56 $ get-with-headers.py $LOCALIP:$HGPORT 'log/?style=atom'
57 200 Script output follows
58
59 <?xml version="1.0" encoding="ascii"?>
60 <feed xmlns="http://www.w3.org/2005/Atom">
61 <!-- Changelog -->
62 <id>http://*:$HGPORT/</id> (glob)
63 <link rel="self" href="http://*:$HGPORT/atom-log"/> (glob)
64 <link rel="alternate" href="http://*:$HGPORT/"/> (glob)
65 <title>test Changelog</title>
66 <updated>1970-01-01T00:00:00+00:00</updated>
67
68 <entry>
69 <title>[unstable] branch commit with null character: </title>
70 <id>http://*:$HGPORT/#changeset-cad8025a2e87f88c06259790adfa15acb4080123</id> (glob)
71 <link href="http://*:$HGPORT/rev/cad8025a2e87"/> (glob)
72 <author>
73 <name>test</name>
74 <email>&#116;&#101;&#115;&#116;</email>
75 </author>
76 <updated>1970-01-01T00:00:00+00:00</updated>
77 <published>1970-01-01T00:00:00+00:00</published>
78 <content type="xhtml">
79 <table xmlns="http://www.w3.org/1999/xhtml">
80 <tr>
81 <th style="text-align:left;">changeset</th>
82 <td>cad8025a2e87</td>
83 </tr>
84 <tr>
85 <th style="text-align:left;">branch</th>
86 <td>unstable</td>
87 </tr>
88 <tr>
89 <th style="text-align:left;">bookmark</th>
90 <td>some-thing</td>
91 </tr>
92 <tr>
93 <th style="text-align:left;">tag</th>
94 <td>tip</td>
95 </tr>
96 <tr>
97 <th style="text-align:left;">user</th>
98 <td>&#116;&#101;&#115;&#116;</td>
99 </tr>
100 <tr>
101 <th style="text-align:left;vertical-align:top;">description</th>
102 <td>branch commit with null character: (websub)</td>
103 </tr>
104 <tr>
105 <th style="text-align:left;vertical-align:top;">files</th>
106 <td></td>
107 </tr>
108 </table>
109 </content>
110 </entry>
111 <entry>
112 <title>[stable] branch</title>
113 <id>http://*:$HGPORT/#changeset-1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe</id> (glob)
114 <link href="http://*:$HGPORT/rev/1d22e65f027e"/> (glob)
115 <author>
116 <name>test</name>
117 <email>&#116;&#101;&#115;&#116;</email>
118 </author>
119 <updated>1970-01-01T00:00:00+00:00</updated>
120 <published>1970-01-01T00:00:00+00:00</published>
121 <content type="xhtml">
122 <table xmlns="http://www.w3.org/1999/xhtml">
123 <tr>
124 <th style="text-align:left;">changeset</th>
125 <td>1d22e65f027e</td>
126 </tr>
127 <tr>
128 <th style="text-align:left;">branch</th>
129 <td>stable</td>
130 </tr>
131 <tr>
132 <th style="text-align:left;">bookmark</th>
133 <td></td>
134 </tr>
135 <tr>
136 <th style="text-align:left;">tag</th>
137 <td></td>
138 </tr>
139 <tr>
140 <th style="text-align:left;">user</th>
141 <td>&#116;&#101;&#115;&#116;</td>
142 </tr>
143 <tr>
144 <th style="text-align:left;vertical-align:top;">description</th>
145 <td>branch(websub)</td>
146 </tr>
147 <tr>
148 <th style="text-align:left;vertical-align:top;">files</th>
149 <td>foo<br /></td>
150 </tr>
151 </table>
152 </content>
153 </entry>
154 <entry>
155 <title>[default] Added tag 1.0 for changeset 2ef0ac749a14</title>
156 <id>http://*:$HGPORT/#changeset-a4f92ed23982be056b9852de5dfe873eaac7f0de</id> (glob)
157 <link href="http://*:$HGPORT/rev/a4f92ed23982"/> (glob)
158 <author>
159 <name>test</name>
160 <email>&#116;&#101;&#115;&#116;</email>
161 </author>
162 <updated>1970-01-01T00:00:00+00:00</updated>
163 <published>1970-01-01T00:00:00+00:00</published>
164 <content type="xhtml">
165 <table xmlns="http://www.w3.org/1999/xhtml">
166 <tr>
167 <th style="text-align:left;">changeset</th>
168 <td>a4f92ed23982</td>
169 </tr>
170 <tr>
171 <th style="text-align:left;">branch</th>
172 <td>default</td>
173 </tr>
174 <tr>
175 <th style="text-align:left;">bookmark</th>
176 <td></td>
177 </tr>
178 <tr>
179 <th style="text-align:left;">tag</th>
180 <td></td>
181 </tr>
182 <tr>
183 <th style="text-align:left;">user</th>
184 <td>&#116;&#101;&#115;&#116;</td>
185 </tr>
186 <tr>
187 <th style="text-align:left;vertical-align:top;">description</th>
188 <td>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td>
189 </tr>
190 <tr>
191 <th style="text-align:left;vertical-align:top;">files</th>
192 <td>.hgtags<br /></td>
193 </tr>
194 </table>
195 </content>
196 </entry>
197 <entry>
198 <title>base</title>
199 <id>http://*:$HGPORT/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id> (glob)
200 <link href="http://*:$HGPORT/rev/2ef0ac749a14"/> (glob)
201 <author>
202 <name>test</name>
203 <email>&#116;&#101;&#115;&#116;</email>
204 </author>
205 <updated>1970-01-01T00:00:00+00:00</updated>
206 <published>1970-01-01T00:00:00+00:00</published>
207 <content type="xhtml">
208 <table xmlns="http://www.w3.org/1999/xhtml">
209 <tr>
210 <th style="text-align:left;">changeset</th>
211 <td>2ef0ac749a14</td>
212 </tr>
213 <tr>
214 <th style="text-align:left;">branch</th>
215 <td></td>
216 </tr>
217 <tr>
218 <th style="text-align:left;">bookmark</th>
219 <td>anotherthing</td>
220 </tr>
221 <tr>
222 <th style="text-align:left;">tag</th>
223 <td>1.0</td>
224 </tr>
225 <tr>
226 <th style="text-align:left;">user</th>
227 <td>&#116;&#101;&#115;&#116;</td>
228 </tr>
229 <tr>
230 <th style="text-align:left;vertical-align:top;">description</th>
231 <td>base(websub)</td>
232 </tr>
233 <tr>
234 <th style="text-align:left;vertical-align:top;">files</th>
235 <td>da/foo<br />foo<br /></td>
236 </tr>
237 </table>
238 </content>
239 </entry>
240
241 </feed>
242 $ get-with-headers.py $LOCALIP:$HGPORT 'log/?style=rss'
243 200 Script output follows
244
245 <?xml version="1.0" encoding="ascii"?>
246 <rss version="2.0">
247 <channel>
248 <link>http://*:$HGPORT/</link> (glob)
249 <language>en-us</language>
250
251 <title>test Changelog</title>
252 <description>test Changelog</description>
253 <item>
254 <title>[unstable] branch commit with null character: </title>
255 <guid isPermaLink="true">http://*:$HGPORT/rev/cad8025a2e87</guid> (glob)
256 <link>http://*:$HGPORT/rev/cad8025a2e87</link> (glob)
257 <description>
258 <![CDATA[
259 <table>
260 <tr>
261 <th style="text-align:left;">changeset</th>
262 <td>cad8025a2e87</td>
263 </tr>
264 <tr>
265 <th style="text-align:left;">branch</th>
266 <td>unstable</td>
267 </tr>
268 <tr>
269 <th style="text-align:left;">bookmark</th>
270 <td>some-thing</td>
271 </tr>
272 <tr>
273 <th style="text-align:left;">tag</th>
274 <td>tip</td>
275 </tr>
276 <tr>
277 <th style="text-align:left;vertical-align:top;">user</th>
278 <td>&#116;&#101;&#115;&#116;</td>
279 </tr>
280 <tr>
281 <th style="text-align:left;vertical-align:top;">description</th>
282 <td>branch commit with null character: (websub)</td>
283 </tr>
284 <tr>
285 <th style="text-align:left;vertical-align:top;">files</th>
286 <td></td>
287 </tr>
288 </table>
289 ]]>
290 </description>
291 <author>&#116;&#101;&#115;&#116;</author>
292 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
293 </item>
294 <item>
295 <title>[stable] branch</title>
296 <guid isPermaLink="true">http://*:$HGPORT/rev/1d22e65f027e</guid> (glob)
297 <link>http://*:$HGPORT/rev/1d22e65f027e</link> (glob)
298 <description>
299 <![CDATA[
300 <table>
301 <tr>
302 <th style="text-align:left;">changeset</th>
303 <td>1d22e65f027e</td>
304 </tr>
305 <tr>
306 <th style="text-align:left;">branch</th>
307 <td>stable</td>
308 </tr>
309 <tr>
310 <th style="text-align:left;">bookmark</th>
311 <td></td>
312 </tr>
313 <tr>
314 <th style="text-align:left;">tag</th>
315 <td></td>
316 </tr>
317 <tr>
318 <th style="text-align:left;vertical-align:top;">user</th>
319 <td>&#116;&#101;&#115;&#116;</td>
320 </tr>
321 <tr>
322 <th style="text-align:left;vertical-align:top;">description</th>
323 <td>branch(websub)</td>
324 </tr>
325 <tr>
326 <th style="text-align:left;vertical-align:top;">files</th>
327 <td>foo<br /></td>
328 </tr>
329 </table>
330 ]]>
331 </description>
332 <author>&#116;&#101;&#115;&#116;</author>
333 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
334 </item>
335 <item>
336 <title>[default] Added tag 1.0 for changeset 2ef0ac749a14</title>
337 <guid isPermaLink="true">http://*:$HGPORT/rev/a4f92ed23982</guid> (glob)
338 <link>http://*:$HGPORT/rev/a4f92ed23982</link> (glob)
339 <description>
340 <![CDATA[
341 <table>
342 <tr>
343 <th style="text-align:left;">changeset</th>
344 <td>a4f92ed23982</td>
345 </tr>
346 <tr>
347 <th style="text-align:left;">branch</th>
348 <td>default</td>
349 </tr>
350 <tr>
351 <th style="text-align:left;">bookmark</th>
352 <td></td>
353 </tr>
354 <tr>
355 <th style="text-align:left;">tag</th>
356 <td></td>
357 </tr>
358 <tr>
359 <th style="text-align:left;vertical-align:top;">user</th>
360 <td>&#116;&#101;&#115;&#116;</td>
361 </tr>
362 <tr>
363 <th style="text-align:left;vertical-align:top;">description</th>
364 <td>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td>
365 </tr>
366 <tr>
367 <th style="text-align:left;vertical-align:top;">files</th>
368 <td>.hgtags<br /></td>
369 </tr>
370 </table>
371 ]]>
372 </description>
373 <author>&#116;&#101;&#115;&#116;</author>
374 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
375 </item>
376 <item>
377 <title>base</title>
378 <guid isPermaLink="true">http://*:$HGPORT/rev/2ef0ac749a14</guid> (glob)
379 <link>http://*:$HGPORT/rev/2ef0ac749a14</link> (glob)
380 <description>
381 <![CDATA[
382 <table>
383 <tr>
384 <th style="text-align:left;">changeset</th>
385 <td>2ef0ac749a14</td>
386 </tr>
387 <tr>
388 <th style="text-align:left;">branch</th>
389 <td></td>
390 </tr>
391 <tr>
392 <th style="text-align:left;">bookmark</th>
393 <td>anotherthing</td>
394 </tr>
395 <tr>
396 <th style="text-align:left;">tag</th>
397 <td>1.0</td>
398 </tr>
399 <tr>
400 <th style="text-align:left;vertical-align:top;">user</th>
401 <td>&#116;&#101;&#115;&#116;</td>
402 </tr>
403 <tr>
404 <th style="text-align:left;vertical-align:top;">description</th>
405 <td>base(websub)</td>
406 </tr>
407 <tr>
408 <th style="text-align:left;vertical-align:top;">files</th>
409 <td>da/foo<br />foo<br /></td>
410 </tr>
411 </table>
412 ]]>
413 </description>
414 <author>&#116;&#101;&#115;&#116;</author>
415 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
416 </item>
417
418 </channel>
419 </rss> (no-eol)
420 $ get-with-headers.py $LOCALIP:$HGPORT 'log/1/?style=atom'
421 200 Script output follows
422
423 <?xml version="1.0" encoding="ascii"?>
424 <feed xmlns="http://www.w3.org/2005/Atom">
425 <!-- Changelog -->
426 <id>http://*:$HGPORT/</id> (glob)
427 <link rel="self" href="http://*:$HGPORT/atom-log"/> (glob)
428 <link rel="alternate" href="http://*:$HGPORT/"/> (glob)
429 <title>test Changelog</title>
430 <updated>1970-01-01T00:00:00+00:00</updated>
431
432 <entry>
433 <title>[default] Added tag 1.0 for changeset 2ef0ac749a14</title>
434 <id>http://*:$HGPORT/#changeset-a4f92ed23982be056b9852de5dfe873eaac7f0de</id> (glob)
435 <link href="http://*:$HGPORT/rev/a4f92ed23982"/> (glob)
436 <author>
437 <name>test</name>
438 <email>&#116;&#101;&#115;&#116;</email>
439 </author>
440 <updated>1970-01-01T00:00:00+00:00</updated>
441 <published>1970-01-01T00:00:00+00:00</published>
442 <content type="xhtml">
443 <table xmlns="http://www.w3.org/1999/xhtml">
444 <tr>
445 <th style="text-align:left;">changeset</th>
446 <td>a4f92ed23982</td>
447 </tr>
448 <tr>
449 <th style="text-align:left;">branch</th>
450 <td>default</td>
451 </tr>
452 <tr>
453 <th style="text-align:left;">bookmark</th>
454 <td></td>
455 </tr>
456 <tr>
457 <th style="text-align:left;">tag</th>
458 <td></td>
459 </tr>
460 <tr>
461 <th style="text-align:left;">user</th>
462 <td>&#116;&#101;&#115;&#116;</td>
463 </tr>
464 <tr>
465 <th style="text-align:left;vertical-align:top;">description</th>
466 <td>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td>
467 </tr>
468 <tr>
469 <th style="text-align:left;vertical-align:top;">files</th>
470 <td>.hgtags<br /></td>
471 </tr>
472 </table>
473 </content>
474 </entry>
475 <entry>
476 <title>base</title>
477 <id>http://*:$HGPORT/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id> (glob)
478 <link href="http://*:$HGPORT/rev/2ef0ac749a14"/> (glob)
479 <author>
480 <name>test</name>
481 <email>&#116;&#101;&#115;&#116;</email>
482 </author>
483 <updated>1970-01-01T00:00:00+00:00</updated>
484 <published>1970-01-01T00:00:00+00:00</published>
485 <content type="xhtml">
486 <table xmlns="http://www.w3.org/1999/xhtml">
487 <tr>
488 <th style="text-align:left;">changeset</th>
489 <td>2ef0ac749a14</td>
490 </tr>
491 <tr>
492 <th style="text-align:left;">branch</th>
493 <td></td>
494 </tr>
495 <tr>
496 <th style="text-align:left;">bookmark</th>
497 <td>anotherthing</td>
498 </tr>
499 <tr>
500 <th style="text-align:left;">tag</th>
501 <td>1.0</td>
502 </tr>
503 <tr>
504 <th style="text-align:left;">user</th>
505 <td>&#116;&#101;&#115;&#116;</td>
506 </tr>
507 <tr>
508 <th style="text-align:left;vertical-align:top;">description</th>
509 <td>base(websub)</td>
510 </tr>
511 <tr>
512 <th style="text-align:left;vertical-align:top;">files</th>
513 <td>da/foo<br />foo<br /></td>
514 </tr>
515 </table>
516 </content>
517 </entry>
518
519 </feed>
520 $ get-with-headers.py $LOCALIP:$HGPORT 'log/1/?style=rss'
521 200 Script output follows
522
523 <?xml version="1.0" encoding="ascii"?>
524 <rss version="2.0">
525 <channel>
526 <link>http://*:$HGPORT/</link> (glob)
527 <language>en-us</language>
528
529 <title>test Changelog</title>
530 <description>test Changelog</description>
531 <item>
532 <title>[default] Added tag 1.0 for changeset 2ef0ac749a14</title>
533 <guid isPermaLink="true">http://*:$HGPORT/rev/a4f92ed23982</guid> (glob)
534 <link>http://*:$HGPORT/rev/a4f92ed23982</link> (glob)
535 <description>
536 <![CDATA[
537 <table>
538 <tr>
539 <th style="text-align:left;">changeset</th>
540 <td>a4f92ed23982</td>
541 </tr>
542 <tr>
543 <th style="text-align:left;">branch</th>
544 <td>default</td>
545 </tr>
546 <tr>
547 <th style="text-align:left;">bookmark</th>
548 <td></td>
549 </tr>
550 <tr>
551 <th style="text-align:left;">tag</th>
552 <td></td>
553 </tr>
554 <tr>
555 <th style="text-align:left;vertical-align:top;">user</th>
556 <td>&#116;&#101;&#115;&#116;</td>
557 </tr>
558 <tr>
559 <th style="text-align:left;vertical-align:top;">description</th>
560 <td>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td>
561 </tr>
562 <tr>
563 <th style="text-align:left;vertical-align:top;">files</th>
564 <td>.hgtags<br /></td>
565 </tr>
566 </table>
567 ]]>
568 </description>
569 <author>&#116;&#101;&#115;&#116;</author>
570 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
571 </item>
572 <item>
573 <title>base</title>
574 <guid isPermaLink="true">http://*:$HGPORT/rev/2ef0ac749a14</guid> (glob)
575 <link>http://*:$HGPORT/rev/2ef0ac749a14</link> (glob)
576 <description>
577 <![CDATA[
578 <table>
579 <tr>
580 <th style="text-align:left;">changeset</th>
581 <td>2ef0ac749a14</td>
582 </tr>
583 <tr>
584 <th style="text-align:left;">branch</th>
585 <td></td>
586 </tr>
587 <tr>
588 <th style="text-align:left;">bookmark</th>
589 <td>anotherthing</td>
590 </tr>
591 <tr>
592 <th style="text-align:left;">tag</th>
593 <td>1.0</td>
594 </tr>
595 <tr>
596 <th style="text-align:left;vertical-align:top;">user</th>
597 <td>&#116;&#101;&#115;&#116;</td>
598 </tr>
599 <tr>
600 <th style="text-align:left;vertical-align:top;">description</th>
601 <td>base(websub)</td>
602 </tr>
603 <tr>
604 <th style="text-align:left;vertical-align:top;">files</th>
605 <td>da/foo<br />foo<br /></td>
606 </tr>
607 </table>
608 ]]>
609 </description>
610 <author>&#116;&#101;&#115;&#116;</author>
611 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
612 </item>
613
614 </channel>
615 </rss> (no-eol)
616 $ get-with-headers.py $LOCALIP:$HGPORT 'log/1/foo/?style=atom'
617 200 Script output follows
618
619 <?xml version="1.0" encoding="ascii"?>
620 <feed xmlns="http://www.w3.org/2005/Atom">
621 <id>http://*:$HGPORT/atom-log/tip/foo</id> (glob)
622 <link rel="self" href="http://*:$HGPORT/atom-log/tip/foo"/> (glob)
623 <title>test: foo history</title>
624 <updated>1970-01-01T00:00:00+00:00</updated>
625
626 <entry>
627 <title>base</title>
628 <id>http://*:$HGPORT/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id> (glob)
629 <link href="http://*:$HGPORT/rev/2ef0ac749a14"/> (glob)
630 <author>
631 <name>test</name>
632 <email>&#116;&#101;&#115;&#116;</email>
633 </author>
634 <updated>1970-01-01T00:00:00+00:00</updated>
635 <published>1970-01-01T00:00:00+00:00</published>
636 <content type="xhtml">
637 <table xmlns="http://www.w3.org/1999/xhtml">
638 <tr>
639 <th style="text-align:left;">changeset</th>
640 <td>2ef0ac749a14</td>
641 </tr>
642 <tr>
643 <th style="text-align:left;">branch</th>
644 <td></td>
645 </tr>
646 <tr>
647 <th style="text-align:left;">bookmark</th>
648 <td>anotherthing</td>
649 </tr>
650 <tr>
651 <th style="text-align:left;">tag</th>
652 <td>1.0</td>
653 </tr>
654 <tr>
655 <th style="text-align:left;">user</th>
656 <td>&#116;&#101;&#115;&#116;</td>
657 </tr>
658 <tr>
659 <th style="text-align:left;vertical-align:top;">description</th>
660 <td>base(websub)</td>
661 </tr>
662 <tr>
663 <th style="text-align:left;vertical-align:top;">files</th>
664 <td></td>
665 </tr>
666 </table>
667 </content>
668 </entry>
669
670 </feed>
671 $ get-with-headers.py $LOCALIP:$HGPORT 'log/1/foo/?style=rss'
672 200 Script output follows
673
674 <?xml version="1.0" encoding="ascii"?>
675 <rss version="2.0">
676 <channel>
677 <link>http://*:$HGPORT/</link> (glob)
678 <language>en-us</language>
679
680 <title>test: foo history</title>
681 <description>foo revision history</description>
682 <item>
683 <title>base</title>
684 <link>http://*:$HGPORT/log/2ef0ac749a14/foo</link> (glob)
685 <description><![CDATA[base(websub)]]></description>
686 <author>&#116;&#101;&#115;&#116;</author>
687 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
688 </item>
689
690 </channel>
691 </rss>
692 $ get-with-headers.py $LOCALIP:$HGPORT 'shortlog/'
693 200 Script output follows
694
695 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
696 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
697 <head>
698 <link rel="icon" href="/static/hgicon.png" type="image/png" />
699 <meta name="robots" content="index, nofollow" />
700 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
701 <script type="text/javascript" src="/static/mercurial.js"></script>
702
703 <title>test: log</title>
704 <link rel="alternate" type="application/atom+xml"
705 href="/atom-log" title="Atom feed for test" />
706 <link rel="alternate" type="application/rss+xml"
707 href="/rss-log" title="RSS feed for test" />
708 </head>
709 <body>
710
711 <div class="container">
712 <div class="menu">
713 <div class="logo">
714 <a href="https://mercurial-scm.org/">
715 <img src="/static/hglogo.png" alt="mercurial" /></a>
716 </div>
717 <ul>
718 <li class="active">log</li>
719 <li><a href="/graph/tip">graph</a></li>
720 <li><a href="/tags">tags</a></li>
721 <li><a href="/bookmarks">bookmarks</a></li>
722 <li><a href="/branches">branches</a></li>
723 </ul>
724 <ul>
725 <li><a href="/rev/tip">changeset</a></li>
726 <li><a href="/file/tip">browse</a></li>
727 </ul>
728 <ul>
729
730 </ul>
731 <ul>
732 <li><a href="/help">help</a></li>
733 </ul>
734 <div class="atom-logo">
735 <a href="/atom-log" title="subscribe to atom feed">
736 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" />
737 </a>
738 </div>
739 </div>
740
741 <div class="main">
742 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
743 <h3>log</h3>
744
745
746 <form class="search" action="/log">
747
748 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
749 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
750 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
751 </form>
752
753 <div class="navigate">
754 <a href="/shortlog/tip?revcount=30">less</a>
755 <a href="/shortlog/tip?revcount=120">more</a>
756 | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
757 </div>
758
759 <table class="bigtable">
760 <thead>
761 <tr>
762 <th class="age">age</th>
763 <th class="author">author</th>
764 <th class="description">description</th>
765 </tr>
766 </thead>
767 <tbody class="stripes2">
768 <tr>
769 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
770 <td class="author">test</td>
771 <td class="description">
772 <a href="/rev/cad8025a2e87">branch commit with null character: </a>
773 <span class="phase">draft</span> <span class="branchhead">unstable</span> <span class="tag">tip</span> <span class="tag">some-thing</span>
774 </td>
775 </tr>
776 <tr>
777 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
778 <td class="author">test</td>
779 <td class="description">
780 <a href="/rev/1d22e65f027e">branch</a>
781 <span class="phase">draft</span> <span class="branchhead">stable</span>
782 </td>
783 </tr>
784 <tr>
785 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
786 <td class="author">test</td>
787 <td class="description">
788 <a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a>
789 <span class="phase">draft</span> <span class="branchhead">default</span>
790 </td>
791 </tr>
792 <tr>
793 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
794 <td class="author">test</td>
795 <td class="description">
796 <a href="/rev/2ef0ac749a14">base</a>
797 <span class="phase">draft</span> <span class="tag">1.0</span> <span class="tag">anotherthing</span>
798 </td>
799 </tr>
800
801 </tbody>
802 </table>
803
804 <div class="navigate">
805 <a href="/shortlog/tip?revcount=30">less</a>
806 <a href="/shortlog/tip?revcount=120">more</a>
807 | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
808 </div>
809
810 <script type="text/javascript">
811 ajaxScrollInit(
812 '/shortlog/%next%',
813 '', <!-- NEXTHASH
814 function (htmlText) {
815 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
816 return m ? m[1] : null;
817 },
818 '.bigtable > tbody',
819 '<tr class="%class%">\
820 <td colspan="3" style="text-align: center;">%text%</td>\
821 </tr>'
822 );
823 </script>
824
825 </div>
826 </div>
827
828
829
830 </body>
831 </html>
832
833 $ get-with-headers.py $LOCALIP:$HGPORT 'rev/0/'
834 200 Script output follows
835
836 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
837 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
838 <head>
839 <link rel="icon" href="/static/hgicon.png" type="image/png" />
840 <meta name="robots" content="index, nofollow" />
841 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
842 <script type="text/javascript" src="/static/mercurial.js"></script>
843
844 <title>test: 2ef0ac749a14</title>
845 </head>
846 <body>
847 <div class="container">
848 <div class="menu">
849 <div class="logo">
850 <a href="https://mercurial-scm.org/">
851 <img src="/static/hglogo.png" alt="mercurial" /></a>
852 </div>
853 <ul>
854 <li><a href="/shortlog/0">log</a></li>
855 <li><a href="/graph/0">graph</a></li>
856 <li><a href="/tags">tags</a></li>
857 <li><a href="/bookmarks">bookmarks</a></li>
858 <li><a href="/branches">branches</a></li>
859 </ul>
860 <ul>
861 <li class="active">changeset</li>
862 <li><a href="/raw-rev/0">raw</a></li>
863 <li><a href="/file/0">browse</a></li>
864 </ul>
865 <ul>
866
867 </ul>
868 <ul>
869 <li><a href="/help">help</a></li>
870 </ul>
871 </div>
872
873 <div class="main">
874
875 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
876 <h3>
877 changeset 0:<a href="/rev/2ef0ac749a14">2ef0ac749a14</a>
878 <span class="phase">draft</span> <span class="tag">1.0</span> <span class="tag">anotherthing</span>
879 </h3>
880
881
882 <form class="search" action="/log">
883
884 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
885 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
886 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
887 </form>
888
889 <div class="description">base(websub)</div>
890
891 <table id="changesetEntry">
892 <tr>
893 <th class="author">author</th>
894 <td class="author">&#116;&#101;&#115;&#116;</td>
895 </tr>
896 <tr>
897 <th class="date">date</th>
898 <td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td>
899 </tr>
900
901
902 <tr>
903 <th class="author">parents</th>
904 <td class="author"></td>
905 </tr>
906 <tr>
907 <th class="author">children</th>
908 <td class="author"> <a href="/rev/a4f92ed23982">a4f92ed23982</a></td>
909 </tr>
910 <tr>
911 <th class="files">files</th>
912 <td class="files"><a href="/file/2ef0ac749a14/da/foo">da/foo</a> <a href="/file/2ef0ac749a14/foo">foo</a> </td>
913 </tr>
914 <tr>
915 <th class="diffstat">diffstat</th>
916 <td class="diffstat">
917 2 files changed, 2 insertions(+), 0 deletions(-)
918
919 <a id="diffstatexpand" class="diffstattoggle" href="#">[<tt>+</tt>]</a>
920 <div id="diffstatdetails" style="display:none;">
921 <a class="diffstattoggle" href="#">[<tt>-</tt>]</a>
922 <table class="diffstat-table stripes2"> <tr>
923 <td class="diffstat-file"><a href="#l1.1">da/foo</a></td>
924 <td class="diffstat-total" align="right">1</td>
925 <td class="diffstat-graph">
926 <span class="diffstat-add" style="width:100.0%;">&nbsp;</span>
927 <span class="diffstat-remove" style="width:0.0%;">&nbsp;</span>
928 </td>
929 </tr>
930 <tr>
931 <td class="diffstat-file"><a href="#l2.1">foo</a></td>
932 <td class="diffstat-total" align="right">1</td>
933 <td class="diffstat-graph">
934 <span class="diffstat-add" style="width:100.0%;">&nbsp;</span>
935 <span class="diffstat-remove" style="width:0.0%;">&nbsp;</span>
936 </td>
937 </tr>
938 </table>
939 </div>
940 </td>
941 </tr>
942 </table>
943
944 <div class="overflow">
945 <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="#">on</a></div>
946 <div class="sourcefirst"> line diff</div>
947 <div class="stripes2 diffblocks">
948 <div class="bottomline inc-lineno"><pre class="sourcelines wrap">
949 <span id="l1.1" class="minusline">--- /dev/null Thu Jan 01 00:00:00 1970 +0000</span><a href="#l1.1"></a>
950 <span id="l1.2" class="plusline">+++ b/da/foo Thu Jan 01 00:00:00 1970 +0000</span><a href="#l1.2"></a>
951 <span id="l1.3" class="atline">@@ -0,0 +1,1 @@</span><a href="#l1.3"></a>
952 <span id="l1.4" class="plusline">+foo</span><a href="#l1.4"></a></pre></div><div class="bottomline inc-lineno"><pre class="sourcelines wrap">
953 <span id="l2.1" class="minusline">--- /dev/null Thu Jan 01 00:00:00 1970 +0000</span><a href="#l2.1"></a>
954 <span id="l2.2" class="plusline">+++ b/foo Thu Jan 01 00:00:00 1970 +0000</span><a href="#l2.2"></a>
955 <span id="l2.3" class="atline">@@ -0,0 +1,1 @@</span><a href="#l2.3"></a>
956 <span id="l2.4" class="plusline">+foo</span><a href="#l2.4"></a></pre></div>
957 </div>
958 </div>
959
960 </div>
961 </div>
962
963
964 </body>
965 </html>
966
967 $ get-with-headers.py $LOCALIP:$HGPORT 'rev/1/?style=raw'
968 200 Script output follows
969
970
971 # HG changeset patch
972 # User test
973 # Date 0 0
974 # Node ID a4f92ed23982be056b9852de5dfe873eaac7f0de
975 # Parent 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
976 Added tag 1.0 for changeset 2ef0ac749a14
977
978 diff -r 2ef0ac749a14 -r a4f92ed23982 .hgtags
979 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
980 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
981 @@ -0,0 +1,1 @@
982 +2ef0ac749a14e4f57a5a822464a0902c6f7f448f 1.0
983
984 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=base'
985 200 Script output follows
986
987 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
988 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
989 <head>
990 <link rel="icon" href="/static/hgicon.png" type="image/png" />
991 <meta name="robots" content="index, nofollow" />
992 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
993 <script type="text/javascript" src="/static/mercurial.js"></script>
994
995 <title>test: searching for base</title>
996 </head>
997 <body>
998
999 <div class="container">
1000 <div class="menu">
1001 <div class="logo">
1002 <a href="https://mercurial-scm.org/">
1003 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
1004 </div>
1005 <ul>
1006 <li><a href="/shortlog">log</a></li>
1007 <li><a href="/graph">graph</a></li>
1008 <li><a href="/tags">tags</a></li>
1009 <li><a href="/bookmarks">bookmarks</a></li>
1010 <li><a href="/branches">branches</a></li>
1011 </ul>
1012 <ul>
1013 <li><a href="/help">help</a></li>
1014 </ul>
1015 </div>
1016
1017 <div class="main">
1018 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1019 <h3>searching for 'base'</h3>
1020
1021 <p>
1022 Assuming literal keyword search.
1023
1024
1025 </p>
1026
1027
1028 <form class="search" action="/log">
1029
1030 <p><input name="rev" id="search1" type="text" size="30" value="base" /></p>
1031 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1032 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1033 </form>
1034
1035 <div class="navigate">
1036 <a href="/log?rev=base&revcount=5">less</a>
1037 <a href="/log?rev=base&revcount=20">more</a>
1038 </div>
1039
1040 <table class="bigtable">
1041 <thead>
1042 <tr>
1043 <th class="age">age</th>
1044 <th class="author">author</th>
1045 <th class="description">description</th>
1046 </tr>
1047 </thead>
1048 <tbody class="stripes2">
1049 <tr>
1050 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
1051 <td class="author">test</td>
1052 <td class="description">
1053 <a href="/rev/2ef0ac749a14">base</a>
1054 <span class="phase">draft</span> <span class="tag">1.0</span> <span class="tag">anotherthing</span>
1055 </td>
1056 </tr>
1057
1058 </tbody>
1059 </table>
1060
1061 <div class="navigate">
1062 <a href="/log?rev=base&revcount=5">less</a>
1063 <a href="/log?rev=base&revcount=20">more</a>
1064 </div>
1065
1066 </div>
1067 </div>
1068
1069
1070
1071 </body>
1072 </html>
1073
1074 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=stable&style=raw' | grep 'revision:'
1075 revision: 2
1076
1077 Search with revset syntax
1078
1079 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=tip^&style=raw'
1080 200 Script output follows
1081
1082
1083 # HG changesets search
1084 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1085 # Query "tip^"
1086 # Mode revset expression search
1087
1088 changeset: 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
1089 revision: 2
1090 user: test
1091 date: Thu, 01 Jan 1970 00:00:00 +0000
1092 summary: branch
1093 branch: stable
1094
1095
1096 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=last(all(),2)^&style=raw'
1097 200 Script output follows
1098
1099
1100 # HG changesets search
1101 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1102 # Query "last(all(),2)^"
1103 # Mode revset expression search
1104
1105 changeset: 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
1106 revision: 2
1107 user: test
1108 date: Thu, 01 Jan 1970 00:00:00 +0000
1109 summary: branch
1110 branch: stable
1111
1112 changeset: a4f92ed23982be056b9852de5dfe873eaac7f0de
1113 revision: 1
1114 user: test
1115 date: Thu, 01 Jan 1970 00:00:00 +0000
1116 summary: Added tag 1.0 for changeset 2ef0ac749a14
1117 branch: default
1118
1119
1120 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=last(all(,2)^&style=raw'
1121 200 Script output follows
1122
1123
1124 # HG changesets search
1125 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1126 # Query "last(all(,2)^"
1127 # Mode literal keyword search
1128
1129
1130 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=last(al(),2)^&style=raw'
1131 200 Script output follows
1132
1133
1134 # HG changesets search
1135 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1136 # Query "last(al(),2)^"
1137 # Mode literal keyword search
1138
1139
1140 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=bookmark(anotherthing)&style=raw'
1141 200 Script output follows
1142
1143
1144 # HG changesets search
1145 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1146 # Query "bookmark(anotherthing)"
1147 # Mode revset expression search
1148
1149 changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
1150 revision: 0
1151 user: test
1152 date: Thu, 01 Jan 1970 00:00:00 +0000
1153 summary: base
1154 tag: 1.0
1155 bookmark: anotherthing
1156
1157
1158 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=bookmark(abc)&style=raw'
1159 200 Script output follows
1160
1161
1162 # HG changesets search
1163 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1164 # Query "bookmark(abc)"
1165 # Mode literal keyword search
1166
1167
1168 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=deadbeef:&style=raw'
1169 200 Script output follows
1170
1171
1172 # HG changesets search
1173 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1174 # Query "deadbeef:"
1175 # Mode literal keyword search
1176
1177
1178
1179 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=user("test")&style=raw'
1180 200 Script output follows
1181
1182
1183 # HG changesets search
1184 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1185 # Query "user("test")"
1186 # Mode revset expression search
1187
1188 changeset: cad8025a2e87f88c06259790adfa15acb4080123
1189 revision: 3
1190 user: test
1191 date: Thu, 01 Jan 1970 00:00:00 +0000
1192 summary: branch commit with null character: \x00 (esc)
1193 branch: unstable
1194 tag: tip
1195 bookmark: some-thing
1196
1197 changeset: 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
1198 revision: 2
1199 user: test
1200 date: Thu, 01 Jan 1970 00:00:00 +0000
1201 summary: branch
1202 branch: stable
1203
1204 changeset: a4f92ed23982be056b9852de5dfe873eaac7f0de
1205 revision: 1
1206 user: test
1207 date: Thu, 01 Jan 1970 00:00:00 +0000
1208 summary: Added tag 1.0 for changeset 2ef0ac749a14
1209 branch: default
1210
1211 changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
1212 revision: 0
1213 user: test
1214 date: Thu, 01 Jan 1970 00:00:00 +0000
1215 summary: base
1216 tag: 1.0
1217 bookmark: anotherthing
1218
1219
1220 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=user("re:test")&style=raw'
1221 200 Script output follows
1222
1223
1224 # HG changesets search
1225 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1226 # Query "user("re:test")"
1227 # Mode literal keyword search
1228
1229
1230 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=first(::)&style=raw'
1231 200 Script output follows
1232
1233
1234 # HG changesets search
1235 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1236 # Query "first(::)"
1237 # Mode literal keyword search
1238
1239
1240
1241 Revset query with foo-bar bookmark (issue5879)
1242
1243 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=some-thing%25anotherthing&style=raw'
1244 200 Script output follows
1245
1246
1247 # HG changesets search
1248 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1249 # Query "some-thing%anotherthing"
1250 # Mode revset expression search
1251
1252 changeset: cad8025a2e87f88c06259790adfa15acb4080123
1253 revision: 3
1254 user: test
1255 date: Thu, 01 Jan 1970 00:00:00 +0000
1256 summary: branch commit with null character: \x00 (esc)
1257 branch: unstable
1258 tag: tip
1259 bookmark: some-thing
1260
1261 changeset: 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
1262 revision: 2
1263 user: test
1264 date: Thu, 01 Jan 1970 00:00:00 +0000
1265 summary: branch
1266 branch: stable
1267
1268 changeset: a4f92ed23982be056b9852de5dfe873eaac7f0de
1269 revision: 1
1270 user: test
1271 date: Thu, 01 Jan 1970 00:00:00 +0000
1272 summary: Added tag 1.0 for changeset 2ef0ac749a14
1273 branch: default
1274
1275
1276
1277 File-related
1278
1279 $ get-with-headers.py $LOCALIP:$HGPORT 'file/1/foo/?style=raw'
1280 200 Script output follows
1281
1282 foo
1283 $ get-with-headers.py $LOCALIP:$HGPORT 'annotate/1/foo/?style=raw'
1284 200 Script output follows
1285
1286
1287 test@0: foo
1288
1289
1290
1291
1292 $ get-with-headers.py $LOCALIP:$HGPORT 'file/1/?style=raw'
1293 200 Script output follows
1294
1295
1296 drwxr-xr-x da
1297 -rw-r--r-- 45 .hgtags
1298 -rw-r--r-- 4 foo
1299
1300
1301 $ hg log --template "{file_mods}\n" -r 1
1302
1303 $ hg parents --template "{node|short}\n" -r 1
1304 2ef0ac749a14
1305 $ hg parents --template "{node|short}\n" -r 1 foo
1306 2ef0ac749a14
1307
1308 $ get-with-headers.py $LOCALIP:$HGPORT 'file/1/foo'
1309 200 Script output follows
1310
1311 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1312 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1313 <head>
1314 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1315 <meta name="robots" content="index, nofollow" />
1316 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1317 <script type="text/javascript" src="/static/mercurial.js"></script>
1318
1319 <title>test: a4f92ed23982 foo</title>
1320 </head>
1321 <body>
1322
1323 <div class="container">
1324 <div class="menu">
1325 <div class="logo">
1326 <a href="https://mercurial-scm.org/">
1327 <img src="/static/hglogo.png" alt="mercurial" /></a>
1328 </div>
1329 <ul>
1330 <li><a href="/shortlog/1">log</a></li>
1331 <li><a href="/graph/1">graph</a></li>
1332 <li><a href="/tags">tags</a></li>
1333 <li><a href="/bookmarks">bookmarks</a></li>
1334 <li><a href="/branches">branches</a></li>
1335 </ul>
1336 <ul>
1337 <li><a href="/rev/1">changeset</a></li>
1338 <li><a href="/file/1/">browse</a></li>
1339 </ul>
1340 <ul>
1341 <li class="active">file</li>
1342 <li><a href="/file/tip/foo">latest</a></li>
1343 <li><a href="/diff/1/foo">diff</a></li>
1344 <li><a href="/comparison/1/foo">comparison</a></li>
1345 <li><a href="/annotate/1/foo">annotate</a></li>
1346 <li><a href="/log/1/foo">file log</a></li>
1347 <li><a href="/raw-file/1/foo">raw</a></li>
1348 </ul>
1349 <ul>
1350 <li><a href="/help">help</a></li>
1351 </ul>
1352 </div>
1353
1354 <div class="main">
1355 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1356 <h3>
1357 view foo @ 1:<a href="/rev/a4f92ed23982">a4f92ed23982</a>
1358 <span class="phase">draft</span> <span class="branchhead">default</span>
1359 </h3>
1360
1361
1362 <form class="search" action="/log">
1363
1364 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
1365 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1366 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1367 </form>
1368
1369 <div class="description">Added tag 1.0 for changeset 2ef0ac749a14(websub)</div>
1370
1371 <table id="changesetEntry">
1372 <tr>
1373 <th class="author">author</th>
1374 <td class="author">&#116;&#101;&#115;&#116;</td>
1375 </tr>
1376 <tr>
1377 <th class="date">date</th>
1378 <td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td>
1379 </tr>
1380 <tr>
1381 <th class="author">parents</th>
1382 <td class="author"><a href="/file/2ef0ac749a14/foo">2ef0ac749a14</a> </td>
1383 </tr>
1384 <tr>
1385 <th class="author">children</th>
1386 <td class="author"><a href="/file/1d22e65f027e/foo">1d22e65f027e</a> </td>
1387 </tr>
1388 </table>
1389
1390 <div class="overflow">
1391 <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="#">on</a></div>
1392 <div class="sourcefirst"> line source</div>
1393 <pre class="sourcelines stripes4 wrap bottomline"
1394 data-logurl="/log/1/foo"
1395 data-selectabletag="SPAN"
1396 data-ishead="0">
1397
1398 <span id="l1">foo</span><a href="#l1"></a>
1399 </pre>
1400 </div>
1401
1402 <script type="text/javascript" src="/static/followlines.js"></script>
1403
1404 </div>
1405 </div>
1406
1407
1408
1409 </body>
1410 </html>
1411
1412 $ get-with-headers.py $LOCALIP:$HGPORT 'filediff/0/foo/?style=raw'
1413 200 Script output follows
1414
1415
1416 diff -r 000000000000 -r 2ef0ac749a14 foo
1417 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1418 +++ b/foo Thu Jan 01 00:00:00 1970 +0000
1419 @@ -0,0 +1,1 @@
1420 +foo
1421
1422
1423
1424
1425
1426 $ get-with-headers.py $LOCALIP:$HGPORT 'filediff/1/foo/?style=raw'
1427 200 Script output follows
1428
1429
1430
1431
1432
1433
1434
1435 $ hg log --template "{file_mods}\n" -r 2
1436 foo
1437 $ hg parents --template "{node|short}\n" -r 2
1438 a4f92ed23982
1439 $ hg parents --template "{node|short}\n" -r 2 foo
1440 2ef0ac749a14
1441
1442 $ get-with-headers.py $LOCALIP:$HGPORT 'file/2/foo'
1443 200 Script output follows
1444
1445 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1446 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1447 <head>
1448 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1449 <meta name="robots" content="index, nofollow" />
1450 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1451 <script type="text/javascript" src="/static/mercurial.js"></script>
1452
1453 <title>test: 1d22e65f027e foo</title>
1454 </head>
1455 <body>
1456
1457 <div class="container">
1458 <div class="menu">
1459 <div class="logo">
1460 <a href="https://mercurial-scm.org/">
1461 <img src="/static/hglogo.png" alt="mercurial" /></a>
1462 </div>
1463 <ul>
1464 <li><a href="/shortlog/2">log</a></li>
1465 <li><a href="/graph/2">graph</a></li>
1466 <li><a href="/tags">tags</a></li>
1467 <li><a href="/bookmarks">bookmarks</a></li>
1468 <li><a href="/branches">branches</a></li>
1469 </ul>
1470 <ul>
1471 <li><a href="/rev/2">changeset</a></li>
1472 <li><a href="/file/2/">browse</a></li>
1473 </ul>
1474 <ul>
1475 <li class="active">file</li>
1476 <li><a href="/file/tip/foo">latest</a></li>
1477 <li><a href="/diff/2/foo">diff</a></li>
1478 <li><a href="/comparison/2/foo">comparison</a></li>
1479 <li><a href="/annotate/2/foo">annotate</a></li>
1480 <li><a href="/log/2/foo">file log</a></li>
1481 <li><a href="/raw-file/2/foo">raw</a></li>
1482 </ul>
1483 <ul>
1484 <li><a href="/help">help</a></li>
1485 </ul>
1486 </div>
1487
1488 <div class="main">
1489 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1490 <h3>
1491 view foo @ 2:<a href="/rev/1d22e65f027e">1d22e65f027e</a>
1492 <span class="phase">draft</span> <span class="branchhead">stable</span>
1493 </h3>
1494
1495
1496 <form class="search" action="/log">
1497
1498 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
1499 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1500 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1501 </form>
1502
1503 <div class="description">branch(websub)</div>
1504
1505 <table id="changesetEntry">
1506 <tr>
1507 <th class="author">author</th>
1508 <td class="author">&#116;&#101;&#115;&#116;</td>
1509 </tr>
1510 <tr>
1511 <th class="date">date</th>
1512 <td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td>
1513 </tr>
1514 <tr>
1515 <th class="author">parents</th>
1516 <td class="author"><a href="/file/2ef0ac749a14/foo">2ef0ac749a14</a> </td>
1517 </tr>
1518 <tr>
1519 <th class="author">children</th>
1520 <td class="author"></td>
1521 </tr>
1522 </table>
1523
1524 <div class="overflow">
1525 <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="#">on</a></div>
1526 <div class="sourcefirst"> line source</div>
1527 <pre class="sourcelines stripes4 wrap bottomline"
1528 data-logurl="/log/2/foo"
1529 data-selectabletag="SPAN"
1530 data-ishead="1">
1531
1532 <span id="l1">another</span><a href="#l1"></a>
1533 </pre>
1534 </div>
1535
1536 <script type="text/javascript" src="/static/followlines.js"></script>
1537
1538 </div>
1539 </div>
1540
1541
1542
1543 </body>
1544 </html>
1545
1546
1547
1548 Overviews
1549
1550 $ get-with-headers.py $LOCALIP:$HGPORT 'raw-tags'
1551 200 Script output follows
1552
1553 tip cad8025a2e87f88c06259790adfa15acb4080123
1554 1.0 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
1555 $ get-with-headers.py $LOCALIP:$HGPORT 'raw-branches'
1556 200 Script output follows
1557
1558 unstable cad8025a2e87f88c06259790adfa15acb4080123 open
1559 stable 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe inactive
1560 default a4f92ed23982be056b9852de5dfe873eaac7f0de inactive
1561 $ get-with-headers.py $LOCALIP:$HGPORT 'raw-bookmarks'
1562 200 Script output follows
1563
1564 some-thing cad8025a2e87f88c06259790adfa15acb4080123
1565 anotherthing 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
1566 $ get-with-headers.py $LOCALIP:$HGPORT 'summary/?style=gitweb'
1567 200 Script output follows
1568
1569 <?xml version="1.0" encoding="ascii"?>
1570 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1571 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
1572 <head>
1573 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1574 <meta name="robots" content="index, nofollow"/>
1575 <link rel="stylesheet" href="/static/style-gitweb.css" type="text/css" />
1576 <script type="text/javascript" src="/static/mercurial.js"></script>
1577
1578 <title>test: Summary</title>
1579 <link rel="alternate" type="application/atom+xml"
1580 href="/atom-log" title="Atom feed for test"/>
1581 <link rel="alternate" type="application/rss+xml"
1582 href="/rss-log" title="RSS feed for test"/>
1583 </head>
1584 <body>
1585
1586 <div class="page_header">
1587 <a href="https://mercurial-scm.org/" title="Mercurial" style="float: right;">Mercurial</a>
1588 <a href="/">Mercurial</a> / summary
1589 </div>
1590
1591 <div class="page_nav">
1592 <div>
1593 summary |
1594 <a href="/shortlog?style=gitweb">shortlog</a> |
1595 <a href="/log?style=gitweb">changelog</a> |
1596 <a href="/graph?style=gitweb">graph</a> |
1597 <a href="/tags?style=gitweb">tags</a> |
1598 <a href="/bookmarks?style=gitweb">bookmarks</a> |
1599 <a href="/branches?style=gitweb">branches</a> |
1600 <a href="/file?style=gitweb">files</a> |
1601 <a href="/help?style=gitweb">help</a>
1602 </div>
1603
1604 <div class="search">
1605 <form id="searchform" action="/log">
1606 <input type="hidden" name="style" value="gitweb" />
1607 <input name="rev" type="text" value="" size="40" />
1608 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1609 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1610 </form>
1611 </div>
1612 </div>
1613
1614 <div class="title">&nbsp;</div>
1615 <table cellspacing="0">
1616 <tr><td>description</td><td>unknown</td></tr>
1617 <tr><td>owner</td><td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td></tr>
1618 <tr><td>last change</td><td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td></tr>
1619 </table>
1620
1621 <div><a class="title" href="/shortlog?style=gitweb">changes</a></div>
1622 <table cellspacing="0">
1623
1624 <tr class="parity0">
1625 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1626 <td><i>test</i></td>
1627 <td>
1628 <a class="list" href="/rev/cad8025a2e87?style=gitweb">
1629 <b>branch commit with null character: </b>
1630 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="some-thing">some-thing</span> </span>
1631 </a>
1632 </td>
1633 <td class="link" nowrap>
1634 <a href="/rev/cad8025a2e87?style=gitweb">changeset</a> |
1635 <a href="/file/cad8025a2e87?style=gitweb">files</a>
1636 </td>
1637 </tr>
1638 <tr class="parity1">
1639 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1640 <td><i>test</i></td>
1641 <td>
1642 <a class="list" href="/rev/1d22e65f027e?style=gitweb">
1643 <b>branch</b>
1644 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="stable">stable</span> </span>
1645 </a>
1646 </td>
1647 <td class="link" nowrap>
1648 <a href="/rev/1d22e65f027e?style=gitweb">changeset</a> |
1649 <a href="/file/1d22e65f027e?style=gitweb">files</a>
1650 </td>
1651 </tr>
1652 <tr class="parity0">
1653 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1654 <td><i>test</i></td>
1655 <td>
1656 <a class="list" href="/rev/a4f92ed23982?style=gitweb">
1657 <b>Added tag 1.0 for changeset 2ef0ac749a14</b>
1658 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="default">default</span> </span>
1659 </a>
1660 </td>
1661 <td class="link" nowrap>
1662 <a href="/rev/a4f92ed23982?style=gitweb">changeset</a> |
1663 <a href="/file/a4f92ed23982?style=gitweb">files</a>
1664 </td>
1665 </tr>
1666 <tr class="parity1">
1667 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1668 <td><i>test</i></td>
1669 <td>
1670 <a class="list" href="/rev/2ef0ac749a14?style=gitweb">
1671 <b>base</b>
1672 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="tagtag" title="1.0">1.0</span> <span class="bookmarktag" title="anotherthing">anotherthing</span> </span>
1673 </a>
1674 </td>
1675 <td class="link" nowrap>
1676 <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
1677 <a href="/file/2ef0ac749a14?style=gitweb">files</a>
1678 </td>
1679 </tr>
1680 <tr class="light"><td colspan="4"><a class="list" href="/shortlog?style=gitweb">...</a></td></tr>
1681 </table>
1682
1683 <div><a class="title" href="/tags?style=gitweb">tags</a></div>
1684 <table cellspacing="0">
1685
1686 <tr class="parity0">
1687 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1688 <td><a class="list" href="/rev/1.0?style=gitweb"><b>1.0</b></a></td>
1689 <td class="link">
1690 <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
1691 <a href="/log/2ef0ac749a14?style=gitweb">changelog</a> |
1692 <a href="/file/2ef0ac749a14?style=gitweb">files</a>
1693 </td>
1694 </tr>
1695 <tr class="light"><td colspan="3"><a class="list" href="/tags?style=gitweb">...</a></td></tr>
1696 </table>
1697
1698 <div><a class="title" href="/bookmarks?style=gitweb">bookmarks</a></div>
1699 <table cellspacing="0">
1700
1701 <tr class="parity0">
1702 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1703 <td><a class="list" href="/rev/some-thing?style=gitweb"><b>some-thing</b></a></td>
1704 <td class="link">
1705 <a href="/rev/cad8025a2e87?style=gitweb">changeset</a> |
1706 <a href="/log/cad8025a2e87?style=gitweb">changelog</a> |
1707 <a href="/file/cad8025a2e87?style=gitweb">files</a>
1708 </td>
1709 </tr>
1710 <tr class="parity1">
1711 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1712 <td><a class="list" href="/rev/anotherthing?style=gitweb"><b>anotherthing</b></a></td>
1713 <td class="link">
1714 <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
1715 <a href="/log/2ef0ac749a14?style=gitweb">changelog</a> |
1716 <a href="/file/2ef0ac749a14?style=gitweb">files</a>
1717 </td>
1718 </tr>
1719 <tr class="light"><td colspan="3"><a class="list" href="/bookmarks?style=gitweb">...</a></td></tr>
1720 </table>
1721
1722 <div><a class="title" href="/branches?style=gitweb">branches</a></div>
1723 <table cellspacing="0">
1724
1725 <tr class="parity0">
1726 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1727 <td class="open"><a class="list" href="/shortlog/unstable?style=gitweb"><b>unstable</b></a></td>
1728 <td class="link">
1729 <a href="/changeset/cad8025a2e87?style=gitweb">changeset</a> |
1730 <a href="/log/cad8025a2e87?style=gitweb">changelog</a> |
1731 <a href="/file/cad8025a2e87?style=gitweb">files</a>
1732 </td>
1733 </tr>
1734 <tr class="parity1">
1735 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1736 <td class="inactive"><a class="list" href="/shortlog/stable?style=gitweb"><b>stable</b></a></td>
1737 <td class="link">
1738 <a href="/changeset/1d22e65f027e?style=gitweb">changeset</a> |
1739 <a href="/log/1d22e65f027e?style=gitweb">changelog</a> |
1740 <a href="/file/1d22e65f027e?style=gitweb">files</a>
1741 </td>
1742 </tr>
1743 <tr class="parity0">
1744 <td class="age"><i class="age">Thu, 01 Jan 1970 00:00:00 +0000</i></td>
1745 <td class="inactive"><a class="list" href="/shortlog/default?style=gitweb"><b>default</b></a></td>
1746 <td class="link">
1747 <a href="/changeset/a4f92ed23982?style=gitweb">changeset</a> |
1748 <a href="/log/a4f92ed23982?style=gitweb">changelog</a> |
1749 <a href="/file/a4f92ed23982?style=gitweb">files</a>
1750 </td>
1751 </tr>
1752 <tr class="light">
1753 <td colspan="3"><a class="list" href="/branches?style=gitweb">...</a></td>
1754 </tr>
1755 </table>
1756 <div class="page_footer">
1757 <div class="page_footer_text">test</div>
1758 <div class="rss_logo">
1759 <a href="/rss-log">RSS</a>
1760 <a href="/atom-log">Atom</a>
1761 </div>
1762 <br />
1763
1764 </div>
1765 </body>
1766 </html>
1767
1768 $ get-with-headers.py $LOCALIP:$HGPORT 'graph/?style=gitweb'
1769 200 Script output follows
1770
1771 <?xml version="1.0" encoding="ascii"?>
1772 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1773 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
1774 <head>
1775 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1776 <meta name="robots" content="index, nofollow"/>
1777 <link rel="stylesheet" href="/static/style-gitweb.css" type="text/css" />
1778 <script type="text/javascript" src="/static/mercurial.js"></script>
1779
1780 <title>test: Graph</title>
1781 <link rel="alternate" type="application/atom+xml"
1782 href="/atom-log" title="Atom feed for test"/>
1783 <link rel="alternate" type="application/rss+xml"
1784 href="/rss-log" title="RSS feed for test"/>
1785 </head>
1786 <body>
1787
1788 <div class="page_header">
1789 <a href="https://mercurial-scm.org/" title="Mercurial" style="float: right;">Mercurial</a>
1790 <a href="/">Mercurial</a> / graph
1791 </div>
1792
1793 <div class="page_nav">
1794 <div>
1795 <a href="/summary?style=gitweb">summary</a> |
1796 <a href="/shortlog/tip?style=gitweb">shortlog</a> |
1797 <a href="/log/tip?style=gitweb">changelog</a> |
1798 graph |
1799 <a href="/tags?style=gitweb">tags</a> |
1800 <a href="/bookmarks?style=gitweb">bookmarks</a> |
1801 <a href="/branches?style=gitweb">branches</a> |
1802 <a href="/file/tip?style=gitweb">files</a> |
1803 <a href="/help?style=gitweb">help</a>
1804 <br/>
1805 <a href="/graph/tip?revcount=30&style=gitweb">less</a>
1806 <a href="/graph/tip?revcount=120&style=gitweb">more</a>
1807 | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a>
1808 </div>
1809
1810 <div class="search">
1811 <form id="searchform" action="/log">
1812 <input type="hidden" name="style" value="gitweb" />
1813 <input name="rev" type="text" value="" size="40" />
1814 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1815 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1816 </form>
1817 </div>
1818 </div>
1819
1820 <div class="title">&nbsp;</div>
1821
1822 <noscript>The revision graph only works with JavaScript-enabled browsers.</noscript>
1823
1824 <div id="wrapper">
1825 <canvas id="graph"></canvas>
1826 <ul id="graphnodes"><li class="parity0" data-node="cad8025a2e87">
1827 <div class="fg">
1828 <span class="desc">
1829 <a class="list" href="/rev/cad8025a2e87?style=gitweb"><b>branch commit with null character: </b></a>
1830 </span>
1831 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="unstable">unstable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="some-thing">some-thing</span> </span>
1832 <div class="info">1970-01-01, by test</div>
1833 </div>
1834 </li>
1835 <li class="parity1" data-node="1d22e65f027e">
1836 <div class="fg">
1837 <span class="desc">
1838 <a class="list" href="/rev/1d22e65f027e?style=gitweb"><b>branch</b></a>
1839 </span>
1840 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="stable">stable</span> </span>
1841 <div class="info">1970-01-01, by test</div>
1842 </div>
1843 </li>
1844 <li class="parity0" data-node="a4f92ed23982">
1845 <div class="fg">
1846 <span class="desc">
1847 <a class="list" href="/rev/a4f92ed23982?style=gitweb"><b>Added tag 1.0 for changeset 2ef0ac749a14</b></a>
1848 </span>
1849 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="default">default</span> </span>
1850 <div class="info">1970-01-01, by test</div>
1851 </div>
1852 </li>
1853 <li class="parity1" data-node="2ef0ac749a14">
1854 <div class="fg">
1855 <span class="desc">
1856 <a class="list" href="/rev/2ef0ac749a14?style=gitweb"><b>base</b></a>
1857 </span>
1858 <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="tagtag" title="1.0">1.0</span> <span class="bookmarktag" title="anotherthing">anotherthing</span> </span>
1859 <div class="info">1970-01-01, by test</div>
1860 </div>
1861 </li>
1862 </ul>
1863 </div>
1864
1865 <script>
1866 var data = [{"edges": [[0, 0, 1, 3, "FF0000"]], "graphnode": "@o", "node": "cad8025a2e87", "vertex": [0, 1]}, {"edges": [[0, 0, 1, 3, ""]], "graphnode": "o", "node": "1d22e65f027e", "vertex": [0, 1]}, {"edges": [[0, 0, 1, 3, ""]], "graphnode": "o", "node": "a4f92ed23982", "vertex": [0, 1]}, {"edges": [], "graphnode": "o", "node": "2ef0ac749a14", "vertex": [0, 1]}];
1867 var graph = new Graph();
1868 graph.scale(39);
1869 graph.render(data);
1870 </script>
1871
1872 <div class="extra_nav">
1873 <a href="/graph/tip?revcount=30&style=gitweb">less</a>
1874 <a href="/graph/tip?revcount=120&style=gitweb">more</a>
1875 | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a>
1876 </div>
1877
1878 <script type="text/javascript">
1879 ajaxScrollInit(
1880 '/graph/%next%?graphtop=cad8025a2e87f88c06259790adfa15acb4080123&style=gitweb',
1881 '', <!-- NEXTHASH
1882 function (htmlText) {
1883 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
1884 return m ? m[1] : null;
1885 },
1886 '#wrapper',
1887 '<div class="%class%" style="text-align: center;">%text%</div>',
1888 'graph'
1889 );
1890 </script>
1891
1892 <div class="page_footer">
1893 <div class="page_footer_text">test</div>
1894 <div class="rss_logo">
1895 <a href="/rss-log">RSS</a>
1896 <a href="/atom-log">Atom</a>
1897 </div>
1898 <br />
1899
1900 </div>
1901 </body>
1902 </html>
1903
1904 raw graph
1905
1906 $ get-with-headers.py $LOCALIP:$HGPORT 'graph/?style=raw'
1907 200 Script output follows
1908
1909
1910 # HG graph
1911 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
1912 # Rows shown 4
1913
1914 changeset: cad8025a2e87
1915 user: test
1916 date: 1970-01-01
1917 summary: branch commit with null character: \x00 (esc)
1918 branch: unstable
1919 tag: tip
1920 bookmark: some-thing
1921
1922 node: (0, 0) (color 1)
1923 edge: (0, 0) -> (0, 1) (color 1)
1924
1925 changeset: 1d22e65f027e
1926 user: test
1927 date: 1970-01-01
1928 summary: branch
1929 branch: stable
1930
1931 node: (0, 1) (color 1)
1932 edge: (0, 1) -> (0, 2) (color 1)
1933
1934 changeset: a4f92ed23982
1935 user: test
1936 date: 1970-01-01
1937 summary: Added tag 1.0 for changeset 2ef0ac749a14
1938 branch: default
1939
1940 node: (0, 2) (color 1)
1941 edge: (0, 2) -> (0, 3) (color 1)
1942
1943 changeset: 2ef0ac749a14
1944 user: test
1945 date: 1970-01-01
1946 summary: base
1947 tag: 1.0
1948 bookmark: anotherthing
1949
1950 node: (0, 3) (color 1)
1951
1952
1953
1954 capabilities
1955
1956 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities'; echo
1957 200 Script output follows
1958
1959 batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
1960
1961 wire protocol command to wrong base URL
1962
1963 $ get-with-headers.py $LOCALIP:$HGPORT 'foo?cmd=capabilities' -
1964 404 Not Found
1965 content-length: 12
1966 content-type: application/mercurial-0.1
1967 date: $HTTP_DATE$
1968 server: testing stub value
1969
1970 0
1971 Not Found
1972 [1]
1973
1974 heads
1975
1976 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=heads'
1977 200 Script output follows
1978
1979 cad8025a2e87f88c06259790adfa15acb4080123
1980
1981 branches
1982
1983 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=branches&nodes=0000000000000000000000000000000000000000'
1984 200 Script output follows
1985
1986 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000
1987
1988 changegroup
1989
1990 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=changegroup&roots=0000000000000000000000000000000000000000'
1991 200 Script output follows
1992
1993 x\x9c\xbd\x94MHTQ\x14\xc7'+\x9d\xc66\x81\x89P\xc1\xa3\x14\xcct\xba\xef\xbe\xfb\xde\xbb\xcfr0\xb3"\x02\x11[%\x98\xdcO\xa7\xd2\x19\x98y\xd2\x07h"\x96\xa0e\xda\xa6lUY-\xca\x08\xa2\x82\x16\x96\xd1\xa2\xf0#\xc8\x95\x1b\xdd$!m*"\xc8\x82\xea\xbe\x9c\x01\x85\xc9\x996\x1d\xf8\xc1\xe3~\x9d\xff9\xef\x7f\xaf\xcf\xe7\xbb\x19\xfc4\xec^\xcb\x9b\xfbz\xa6\xbe\xb3\x90_\xef/\x8d\x9e\xad\xbe\xe4\xcb0\xd2\xec\xad\x12X:\xc8\x12\x12\xd9:\x95\xba \x1cG\xb7$\xc5\xc44\x1c(\x1d\x03\x03\xdb\x84\x0cK#\xe0\x8a\xb8\x1b\x00\x1a\x08p\xb2SF\xa3\x01\x8f\x00%q\xa1Ny{k!8\xe5t>[{\xe2j\xddl\xc3\xcf\xee\xd0\xddW\x9ff3U\x9djobj\xbb\x87E\x88\x05l\x001\x12\x18\x13\xc6 \xb7(\xe3\x02a\x80\x81\xcel.u\x9b\x1b\x8c\x91\x80Z\x0c\x15\x15 (esc)
1994 \x7f0\xdc\xe4\x92\xa6\xb87\x16\xf2\xcaT\x14\xef\xe1\\pM\r (no-eol) (esc)
1995 kz\x10h2\x1a\xd3X\x98D\x9aD\\\xb8\x1a\x14\x12\x10f#\x87\xe8H\xad\x1d\xd9\xb2\xf5}cV{}\xf6:\xb3\xbd\xad\xaf\xd5?\xb9\xe3\xf6\xd4\xcf\x15\x84.\x8bT{\x97\x16\xa4Z\xeaX\x10\xabL\xc8\x81DJ\xc8\x18\x00\xccq\x80A-j2j \x83\x1b\x02\x03O|PQ\xae\xc8W\x9d\xd7h\x8cDX\xb8<\xee\x12\xda,\xfe\xfc\x005\xb3K\xc1\x14\xd9\x8b\xb3^C\xc7\xa6\xb3\xea\x83\xdd\xdf.d\x17]\xe9\xbf\xff}\xe3\xf0#\xff\xaam+\x88Z\x16\xa9\xf6&tT+\xf2\x96\xe8h\x8d$\x94\xa8\xf1}\x8aC\x8a\xc2\xc59\x8dE[Z\x8e\xb9\xda\xc9cnX\x8b\xb467{\xad\x8e\x11\xe6\x8aX\xb9\x96L52\xbf\xb0\xff\xe3\x81M\x9fk\x07\xf3\x7f\xf4\x1c\xbe\xbc\x80s\xea^\x7fY\xc1\xca\xcb"\x8d\xbb\x1a\x16]\xea\x83\x82Cb8:$\x80Bd\x02\x08\x90!\x88P^\x12\x88B\xdba:\xa6\x0e\xe0<\xf0O\x8bU\x82\x81\xe3wr\xb2\xba\xe6{&\xcaNL\xceutln\xfb\xdc\xb6{,\xd3\x82\xd28IO\xb8\xd7G\x0cF!\x16\x86\x8d\x11@\x02A\xcb\xc2\x94Q\x04L\x01\x00u8\x86&0\xb0EtO\xd0\xc5\x9c#\xb4'\xef`\xc9\xaf\xd2\xd1\xf5\x83\xab\x9f<\x1e\x8fT\x84:R\x89L%\xe8/\xee \x8a>E\x99\xd7\x1dlZ\x08B\x1dc\xf5\\0\x83\x01B\x95Im\x1d[\x92s*\x99`L\xd7\x894e qfn\xb2 (esc)
1996 \xa5mh\xbc\xf8\xdd\xa9\xca\x9a*\xd9;^y\xd4\xf7t\xbah\xf5\xf9\x1b\x99\xfe\xe94\xcd*[zu\x05\x92\xa6ML\x82!D\x16"\xc0\x01\x90Y\xd2\x96\x08a\xe9\xdd\xfa\xa4\xb6\xc4#\xa6\xbexpjh\xa0$\xb7\xb0V\xdb\xfba\xbef\xee\xe1\xe9\x17\xbd\xfd3\x99JKc\xc25\x89+\xeaE\xce\xffK\x17>\xc7\xb7\x16tE^\x8e\xde\x0bu\x17Dg\x9e\xbf\x99\xd8\xf0\xa01\xd3\xbc+\xbc\x13k\x14~\x12\x89\xbaa\x11K\x96\xe5\xfb\r (no-eol) (esc)
1997 \x95)\xbe\xf6 (no-eol) (esc)
1998
1999 stream_out
2000
2001 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=stream_out'
2002 200 Script output follows
2003
2004 1
2005
2006 failing unbundle, requires POST request
2007
2008 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=unbundle'
2009 405 push requires POST request
2010
2011 0
2012 push requires POST request
2013 [1]
2014
2015 Static files
2016
2017 $ get-with-headers.py $LOCALIP:$HGPORT 'static/style.css'
2018 200 Script output follows
2019
2020 a { text-decoration:none; }
2021 .age { white-space:nowrap; }
2022 .date { white-space:nowrap; }
2023 .indexlinks { white-space:nowrap; }
2024 .parity0 { background-color: #ddd; color: #000; }
2025 .parity1 { background-color: #eee; color: #000; }
2026 .lineno { width: 60px; color: #aaa; font-size: smaller;
2027 text-align: right; }
2028 .plusline { color: green; }
2029 .minusline { color: red; }
2030 .atline { color: purple; }
2031 .annotate { font-size: smaller; text-align: right; padding-right: 1em; }
2032 tr.thisrev a { color:#999999; text-decoration: none; }
2033 tr.thisrev pre { color:#009900; }
2034 td.annotate {
2035 white-space: nowrap;
2036 }
2037 div.annotate-info {
2038 display: none;
2039 position: absolute;
2040 background-color: #FFFFFF;
2041 border: 1px solid #888;
2042 text-align: left;
2043 color: #000000;
2044 padding: 5px;
2045 }
2046 div.annotate-info a { color: #0000FF; }
2047 td.annotate:hover div.annotate-info { display: inline; }
2048 .buttons a {
2049 background-color: #666;
2050 padding: 2pt;
2051 color: white;
2052 font-family: sans-serif;
2053 font-weight: bold;
2054 }
2055 .navigate a {
2056 background-color: #ccc;
2057 padding: 2pt;
2058 font-family: sans-serif;
2059 color: black;
2060 }
2061
2062 .metatag {
2063 background-color: #888;
2064 color: white;
2065 text-align: right;
2066 }
2067
2068 /* Common */
2069 pre { margin: 0; }
2070
2071 .logo {
2072 float: right;
2073 clear: right;
2074 }
2075
2076 /* Changelog/Filelog entries */
2077 .logEntry { width: 100%; }
2078 .logEntry .age { width: 15%; }
2079 .logEntry th.label { width: 16em; }
2080 .logEntry th { font-weight: normal; text-align: right; vertical-align: top; }
2081 .logEntry th.age, .logEntry th.firstline { font-weight: bold; }
2082 .logEntry th.firstline { text-align: left; width: inherit; }
2083
2084 /* Shortlog entries */
2085 .slogEntry { width: 100%; }
2086 .slogEntry .age { width: 8em; }
2087 .slogEntry td { font-weight: normal; text-align: left; vertical-align: top; }
2088 .slogEntry td.author { width: 15em; }
2089
2090 /* Tag entries */
2091 #tagEntries { list-style: none; margin: 0; padding: 0; }
2092 #tagEntries .tagEntry { list-style: none; margin: 0; padding: 0; }
2093
2094 /* Changeset entry */
2095 #changesetEntry { }
2096 #changesetEntry th { font-weight: normal; background-color: #888; color: #fff; text-align: right; }
2097 #changesetEntry th.files, #changesetEntry th.description { vertical-align: top; }
2098
2099 /* File diff view */
2100 #filediffEntry { }
2101 #filediffEntry th { font-weight: normal; background-color: #888; color: #fff; text-align: right; }
2102
2103 /* Graph */
2104 div#wrapper {
2105 position: relative;
2106 margin: 0;
2107 padding: 0;
2108 }
2109
2110 canvas {
2111 position: absolute;
2112 z-index: 5;
2113 top: -0.6em;
2114 margin: 0;
2115 }
2116
2117 ul#graphnodes {
2118 list-style: none inside none;
2119 padding: 0;
2120 margin: 0;
2121 }
2122
2123 ul#graphnodes li {
2124 height: 37px;
2125 overflow: visible;
2126 padding-top: 2px;
2127 }
2128
2129 ul#graphnodes li .fg {
2130 position: absolute;
2131 z-index: 10;
2132 }
2133
2134 ul#graphnodes li .info {
2135 font-size: 70%;
2136 }
2137
2138 Stop and restart the server at the directory different from the repository
2139 root. Even in such case, file patterns should be resolved relative to the
2140 repository root. (issue4568)
2141
2142 $ killdaemons.py
2143 $ hg serve --config server.preferuncompressed=True -n test \
2144 > -p $HGPORT -d --pid-file=`pwd`/hg.pid -E `pwd`/errors.log \
2145 > --cwd .. -R `pwd`
2146 $ cat hg.pid >> $DAEMON_PIDS
2147
2148 $ get-with-headers.py $LOCALIP:$HGPORT 'log?rev=adds("foo")&style=raw'
2149 200 Script output follows
2150
2151
2152 # HG changesets search
2153 # Node ID cad8025a2e87f88c06259790adfa15acb4080123
2154 # Query "adds("foo")"
2155 # Mode revset expression search
2156
2157 changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
2158 revision: 0
2159 user: test
2160 date: Thu, 01 Jan 1970 00:00:00 +0000
2161 summary: base
2162 tag: 1.0
2163 bookmark: anotherthing
2164
2165
2166
2167 capabilities
2168
2169 (plain version to check the format)
2170
2171 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | dd ibs=76 count=1 2> /dev/null; echo
2172 200 Script output follows
2173
2174 batch branchmap bundle2=HG20%0Abookmarks%0Achange
2175
2176 (spread version to check the content)
2177
2178 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities' | tr ' ' '\n'; echo
2179 200
2180 Script
2181 output
2182 follows
2183
2184 batch
2185 branchmap
2186 $USUAL_BUNDLE2_CAPS$
2187 changegroupsubset
2188 compression=$BUNDLE2_COMPRESSIONS$
2189 getbundle
2190 httpheader=1024
2191 httpmediatype=0.1rx,0.1tx,0.2tx
2192 known
2193 lookup
2194 pushkey
2195 stream-preferred
2196 streamreqs=*,* (glob)
2197 unbundle=HG10GZ,HG10BZ,HG10UN
2198 unbundlehash
2199
2200 heads
2201
2202 ERRORS ENCOUNTERED
2203
2204 $ cat errors.log
2205 $ killdaemons.py
2206
2207 $ cd ..
2208
2209 Test graph paging
2210
2211 $ mkcommit() {
2212 > echo $1 >> a
2213 > hg ci -Am $1 a
2214 > }
2215
2216 $ hg init graph
2217 $ cd graph
2218 $ mkcommit 0
2219 $ mkcommit 1
2220 $ mkcommit 2
2221 $ mkcommit 3
2222 $ mkcommit 4
2223 $ mkcommit 5
2224 $ hg serve --config server.uncompressed=False \
2225 > --config web.maxshortchanges=2 \
2226 > -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
2227 $ cat hg.pid >> $DAEMON_PIDS
2228 $ hg log -G --template '{rev}:{node|short} {desc}\n'
2229 @ 5:aed2d9c1d0e7 5
2230 |
2231 o 4:b60a39a85a01 4
2232 |
2233 o 3:ada793dcc118 3
2234 |
2235 o 2:ab4f1438558b 2
2236 |
2237 o 1:e06180cbfb0c 1
2238 |
2239 o 0:b4e73ffab476 0
2240
2241
2242 Test paging
2243
2244 $ get-with-headers.py $LOCALIP:$HGPORT \
2245 > 'graph/?style=raw' | grep changeset
2246 changeset: aed2d9c1d0e7
2247 changeset: b60a39a85a01
2248
2249 $ get-with-headers.py $LOCALIP:$HGPORT \
2250 > 'graph/?style=raw&revcount=3' | grep changeset
2251 changeset: aed2d9c1d0e7
2252 changeset: b60a39a85a01
2253 changeset: ada793dcc118
2254
2255 $ get-with-headers.py $LOCALIP:$HGPORT \
2256 > 'graph/e06180cbfb0?style=raw&revcount=3' | grep changeset
2257 changeset: e06180cbfb0c
2258 changeset: b4e73ffab476
2259
2260 $ get-with-headers.py $LOCALIP:$HGPORT \
2261 > 'graph/b4e73ffab47?style=raw&revcount=3' | grep changeset
2262 changeset: b4e73ffab476
2263
2264 $ cat errors.log
2265
2266 MSYS changes environment variables starting with '/' into 'C:/MinGW/msys/1.0',
2267 which changes the status line to '400 no such method: C:'.
2268
2269 #if no-msys
2270
2271 bookmarks view doesn't choke on bookmarks on secret changesets (issue3774)
2272
2273 $ hg phase -fs 4
2274 $ hg bookmark -r4 secret
2275 $ cat > hgweb.cgi <<HGWEB
2276 > from mercurial import demandimport; demandimport.enable()
2277 > from mercurial.hgweb import hgweb
2278 > from mercurial.hgweb import wsgicgi
2279 > app = hgweb(b'.', b'test')
2280 > wsgicgi.launch(app)
2281 > HGWEB
2282 $ . "$TESTDIR/cgienv"
2283 $ PATH_INFO=/bookmarks; export PATH_INFO
2284 $ QUERY_STRING='style=raw'
2285 $ "$PYTHON" hgweb.cgi | grep -v ETag:
2286 Status: 200 Script output follows\r (esc)
2287 Content-Type: text/plain; charset=ascii\r (esc)
2288 \r (esc)
2289
2290 listbookmarks hides secret bookmarks
2291
2292 $ PATH_INFO=/; export PATH_INFO
2293 $ QUERY_STRING='cmd=listkeys&namespace=bookmarks'
2294 $ "$PYTHON" hgweb.cgi
2295 Status: 200 Script output follows\r (esc)
2296 Content-Type: application/mercurial-0.1\r (esc)
2297 Content-Length: 0\r (esc)
2298 \r (esc)
2299
2300 search works with filtering
2301
2302 $ PATH_INFO=/log; export PATH_INFO
2303 $ QUERY_STRING='rev=babar'
2304 $ "$PYTHON" hgweb.cgi > search
2305 $ grep Status search
2306 Status: 200 Script output follows\r (esc)
2307
2308 summary works with filtering (issue3810)
2309
2310 $ PATH_INFO=/summary; export PATH_INFO
2311 $ QUERY_STRING='style=monoblue'; export QUERY_STRING
2312 $ "$PYTHON" hgweb.cgi > summary.out
2313 $ grep "^Status" summary.out
2314 Status: 200 Script output follows\r (esc)
2315
2316 proper status for filtered revision
2317
2318
2319 (missing rev)
2320
2321 $ PATH_INFO=/rev/5; export PATH_INFO
2322 $ QUERY_STRING='style=raw'
2323 $ "$PYTHON" hgweb.cgi #> search
2324 Status: 404 Not Found\r (esc)
2325 ETag: W/"*"\r (glob) (esc)
2326 Content-Type: text/plain; charset=ascii\r (esc)
2327 \r (esc)
2328
2329 error: filtered revision '5' (not in 'served' subset)
2330
2331
2332
2333 (filtered rev)
2334
2335 $ PATH_INFO=/rev/4; export PATH_INFO
2336 $ QUERY_STRING='style=raw'
2337 $ "$PYTHON" hgweb.cgi #> search
2338 Status: 404 Not Found\r (esc)
2339 ETag: W/"*"\r (glob) (esc)
2340 Content-Type: text/plain; charset=ascii\r (esc)
2341 \r (esc)
2342
2343 error: filtered revision '4' (not in 'served' subset)
2344
2345 filtered '0' changeset
2346
2347 (create new root)
2348 $ hg up null
2349 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
2350 $ echo 'babar' > jungle
2351 $ hg add jungle
2352 $ hg ci -m 'Babar is in the jungle!'
2353 created new head
2354 $ hg graft 0::
2355 grafting 0:b4e73ffab476 "0"
2356 grafting 1:e06180cbfb0c "1"
2357 grafting 2:ab4f1438558b "2"
2358 grafting 3:ada793dcc118 "3"
2359 grafting 4:b60a39a85a01 "4" (secret)
2360 grafting 5:aed2d9c1d0e7 "5"
2361 (turning the initial root secret (filtered))
2362 $ hg phase --force --secret 0
2363 $ PATH_INFO=/graph/; export PATH_INFO
2364 $ QUERY_STRING=''
2365 $ "$PYTHON" hgweb.cgi | grep Status
2366 Status: 200 Script output follows\r (esc)
2367 (check rendered revision)
2368 $ QUERY_STRING='style=raw'
2369 $ "$PYTHON" hgweb.cgi | grep -v ETag
2370 Status: 200 Script output follows\r (esc)
2371 Content-Type: text/plain; charset=ascii\r (esc)
2372 \r (esc)
2373
2374 # HG graph
2375 # Node ID 1d9b947fef1fbb382a95c11a8f5a67e9a10b5026
2376 # Rows shown 7
2377
2378 changeset: 1d9b947fef1f
2379 user: test
2380 date: 1970-01-01
2381 summary: 5
2382 branch: default
2383 tag: tip
2384
2385 node: (0, 0) (color 1)
2386 edge: (0, 0) -> (0, 1) (color 1)
2387
2388 changeset: 0cfd435fd222
2389 user: test
2390 date: 1970-01-01
2391 summary: 4
2392
2393 node: (0, 1) (color 1)
2394 edge: (0, 1) -> (0, 2) (color 1)
2395
2396 changeset: 6768b9939e82
2397 user: test
2398 date: 1970-01-01
2399 summary: 3
2400
2401 node: (0, 2) (color 1)
2402 edge: (0, 2) -> (0, 3) (color 1)
2403
2404 changeset: 05b0497fd125
2405 user: test
2406 date: 1970-01-01
2407 summary: 2
2408
2409 node: (0, 3) (color 1)
2410 edge: (0, 3) -> (0, 4) (color 1)
2411
2412 changeset: 9c102df67cfb
2413 user: test
2414 date: 1970-01-01
2415 summary: 1
2416
2417 node: (0, 4) (color 1)
2418 edge: (0, 4) -> (0, 5) (color 1)
2419
2420 changeset: 3ebcd7db11bf
2421 user: test
2422 date: 1970-01-01
2423 summary: 0
2424
2425 node: (0, 5) (color 1)
2426 edge: (0, 5) -> (0, 6) (color 1)
2427
2428 changeset: c5e9bd96ae01
2429 user: test
2430 date: 1970-01-01
2431 summary: Babar is in the jungle!
2432
2433 node: (0, 6) (color 1)
2434
2435
2436 #endif
2437
2438
2439 $ cd ..
2440