##// END OF EJS Templates
tests: test branch/tag/bookmark display in test-hgweb-filelog.t...
Anton Shestakov -
r25109:f3e0a578 default
parent child Browse files
Show More
@@ -8,8 +8,13 b''
8 8 $ echo a > a
9 9 $ hg ci -Am "first a"
10 10 adding a
11 $ hg tag -r 1 a-tag
12 $ hg bookmark -r 1 a-bookmark
11 13 $ hg rm a
12 14 $ hg ci -m "del a"
15 $ hg branch a-branch
16 marked working directory as branch a-branch
17 (branches are permanent and global, did you want a bookmark?)
13 18 $ echo b > a
14 19 $ hg ci -Am "second a"
15 20 adding a
@@ -20,69 +25,86 b''
20 25 $ echo c >> c
21 26 $ hg ci -m "change c"
22 27 $ hg log -p
23 changeset: 6:b7682196df1c
28 changeset: 7:46c1a66bd8fc
29 branch: a-branch
24 30 tag: tip
25 31 user: test
26 32 date: Thu Jan 01 00:00:00 1970 +0000
27 33 summary: change c
28 34
29 diff -r 1a6696706df2 -r b7682196df1c c
35 diff -r c9637d3cc8ef -r 46c1a66bd8fc c
30 36 --- a/c Thu Jan 01 00:00:00 1970 +0000
31 37 +++ b/c Thu Jan 01 00:00:00 1970 +0000
32 38 @@ -1,1 +1,2 @@
33 39 b
34 40 +c
35 41
36 changeset: 5:1a6696706df2
42 changeset: 6:c9637d3cc8ef
43 branch: a-branch
37 44 user: test
38 45 date: Thu Jan 01 00:00:00 1970 +0000
39 46 summary: mv b
40 47
41 diff -r 52e848cdcd88 -r 1a6696706df2 b
48 diff -r 958bd88be4eb -r c9637d3cc8ef b
42 49 --- a/b Thu Jan 01 00:00:00 1970 +0000
43 50 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
44 51 @@ -1,1 +0,0 @@
45 52 -b
46 diff -r 52e848cdcd88 -r 1a6696706df2 c
53 diff -r 958bd88be4eb -r c9637d3cc8ef c
47 54 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
48 55 +++ b/c Thu Jan 01 00:00:00 1970 +0000
49 56 @@ -0,0 +1,1 @@
50 57 +b
51 58
52 changeset: 4:52e848cdcd88
59 changeset: 5:958bd88be4eb
60 branch: a-branch
53 61 user: test
54 62 date: Thu Jan 01 00:00:00 1970 +0000
55 63 summary: del2 a
56 64
57 diff -r 01de2d66a28d -r 52e848cdcd88 a
65 diff -r 3f41bc784e7e -r 958bd88be4eb a
58 66 --- a/a Thu Jan 01 00:00:00 1970 +0000
59 67 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
60 68 @@ -1,1 +0,0 @@
61 69 -b
62 70
63 changeset: 3:01de2d66a28d
71 changeset: 4:3f41bc784e7e
72 branch: a-branch
64 73 user: test
65 74 date: Thu Jan 01 00:00:00 1970 +0000
66 75 summary: second a
67 76
68 diff -r be3ebcc91739 -r 01de2d66a28d a
77 diff -r 292258f86fdf -r 3f41bc784e7e a
69 78 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
70 79 +++ b/a Thu Jan 01 00:00:00 1970 +0000
71 80 @@ -0,0 +1,1 @@
72 81 +b
73 82
74 changeset: 2:be3ebcc91739
83 changeset: 3:292258f86fdf
75 84 user: test
76 85 date: Thu Jan 01 00:00:00 1970 +0000
77 86 summary: del a
78 87
79 diff -r 5ed941583260 -r be3ebcc91739 a
88 diff -r 94c9dd5ca9b4 -r 292258f86fdf a
80 89 --- a/a Thu Jan 01 00:00:00 1970 +0000
81 90 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
82 91 @@ -1,1 +0,0 @@
83 92 -a
84 93
94 changeset: 2:94c9dd5ca9b4
95 user: test
96 date: Thu Jan 01 00:00:00 1970 +0000
97 summary: Added tag a-tag for changeset 5ed941583260
98
99 diff -r 5ed941583260 -r 94c9dd5ca9b4 .hgtags
100 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
101 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
102 @@ -0,0 +1,1 @@
103 +5ed941583260248620985524192fdc382ef57c36 a-tag
104
85 105 changeset: 1:5ed941583260
106 bookmark: a-bookmark
107 tag: a-tag
86 108 user: test
87 109 date: Thu Jan 01 00:00:00 1970 +0000
88 110 summary: first a
@@ -135,29 +157,29 b' tip - two revisions'
135 157 <img src="/static/hglogo.png" alt="mercurial" /></a>
136 158 </div>
137 159 <ul>
138 <li><a href="/shortlog/01de2d66a28d">log</a></li>
139 <li><a href="/graph/01de2d66a28d">graph</a></li>
160 <li><a href="/shortlog/3f41bc784e7e">log</a></li>
161 <li><a href="/graph/3f41bc784e7e">graph</a></li>
140 162 <li><a href="/tags">tags</a></li>
141 163 <li><a href="/bookmarks">bookmarks</a></li>
142 164 <li><a href="/branches">branches</a></li>
143 165 </ul>
144 166 <ul>
145 <li><a href="/rev/01de2d66a28d">changeset</a></li>
146 <li><a href="/file/01de2d66a28d">browse</a></li>
167 <li><a href="/rev/3f41bc784e7e">changeset</a></li>
168 <li><a href="/file/3f41bc784e7e">browse</a></li>
147 169 </ul>
148 170 <ul>
149 <li><a href="/file/01de2d66a28d/a">file</a></li>
150 <li><a href="/diff/01de2d66a28d/a">diff</a></li>
151 <li><a href="/comparison/01de2d66a28d/a">comparison</a></li>
152 <li><a href="/annotate/01de2d66a28d/a">annotate</a></li>
171 <li><a href="/file/3f41bc784e7e/a">file</a></li>
172 <li><a href="/diff/3f41bc784e7e/a">diff</a></li>
173 <li><a href="/comparison/3f41bc784e7e/a">comparison</a></li>
174 <li><a href="/annotate/3f41bc784e7e/a">annotate</a></li>
153 175 <li class="active">file log</li>
154 <li><a href="/raw-file/01de2d66a28d/a">raw</a></li>
176 <li><a href="/raw-file/3f41bc784e7e/a">raw</a></li>
155 177 </ul>
156 178 <ul>
157 179 <li><a href="/help">help</a></li>
158 180 </ul>
159 181 <div class="atom-logo">
160 <a href="/atom-log/01de2d66a28d/a" title="subscribe to atom feed">
182 <a href="/atom-log/3f41bc784e7e/a" title="subscribe to atom feed">
161 183 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" />
162 184 </a>
163 185 </div>
@@ -175,8 +197,8 b' tip - two revisions'
175 197 </form>
176 198
177 199 <div class="navigate">
178 <a href="/log/01de2d66a28d/a?revcount=30">less</a>
179 <a href="/log/01de2d66a28d/a?revcount=120">more</a>
200 <a href="/log/3f41bc784e7e/a?revcount=30">less</a>
201 <a href="/log/3f41bc784e7e/a?revcount=120">more</a>
180 202 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
181 203
182 204 <table class="bigtable">
@@ -192,8 +214,8 b' tip - two revisions'
192 214 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
193 215 <td class="author">test</td>
194 216 <td class="description">
195 <a href="/rev/01de2d66a28d">second a</a>
196
217 <a href="/rev/3f41bc784e7e">second a</a>
218 <span class="branchname">a-branch</span>
197 219 </td>
198 220 </tr>
199 221 <tr>
@@ -201,7 +223,7 b' tip - two revisions'
201 223 <td class="author">test</td>
202 224 <td class="description">
203 225 <a href="/rev/5ed941583260">first a</a>
204
226 <span class="tag">a-tag</span>
205 227 </td>
206 228 </tr>
207 229
@@ -209,8 +231,8 b' tip - two revisions'
209 231 </table>
210 232
211 233 <div class="navigate">
212 <a href="/log/01de2d66a28d/a?revcount=30">less</a>
213 <a href="/log/01de2d66a28d/a?revcount=120">more</a>
234 <a href="/log/3f41bc784e7e/a?revcount=30">less</a>
235 <a href="/log/3f41bc784e7e/a?revcount=120">more</a>
214 236 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
215 237 </div>
216 238
@@ -226,7 +248,7 b' tip - two revisions'
226 248
227 249 second version - two revisions
228 250
229 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/3/a')
251 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/4/a')
230 252 200 Script output follows
231 253
232 254 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -252,29 +274,29 b' second version - two revisions'
252 274 <img src="/static/hglogo.png" alt="mercurial" /></a>
253 275 </div>
254 276 <ul>
255 <li><a href="/shortlog/01de2d66a28d">log</a></li>
256 <li><a href="/graph/01de2d66a28d">graph</a></li>
277 <li><a href="/shortlog/3f41bc784e7e">log</a></li>
278 <li><a href="/graph/3f41bc784e7e">graph</a></li>
257 279 <li><a href="/tags">tags</a></li>
258 280 <li><a href="/bookmarks">bookmarks</a></li>
259 281 <li><a href="/branches">branches</a></li>
260 282 </ul>
261 283 <ul>
262 <li><a href="/rev/01de2d66a28d">changeset</a></li>
263 <li><a href="/file/01de2d66a28d">browse</a></li>
284 <li><a href="/rev/3f41bc784e7e">changeset</a></li>
285 <li><a href="/file/3f41bc784e7e">browse</a></li>
264 286 </ul>
265 287 <ul>
266 <li><a href="/file/01de2d66a28d/a">file</a></li>
267 <li><a href="/diff/01de2d66a28d/a">diff</a></li>
268 <li><a href="/comparison/01de2d66a28d/a">comparison</a></li>
269 <li><a href="/annotate/01de2d66a28d/a">annotate</a></li>
288 <li><a href="/file/3f41bc784e7e/a">file</a></li>
289 <li><a href="/diff/3f41bc784e7e/a">diff</a></li>
290 <li><a href="/comparison/3f41bc784e7e/a">comparison</a></li>
291 <li><a href="/annotate/3f41bc784e7e/a">annotate</a></li>
270 292 <li class="active">file log</li>
271 <li><a href="/raw-file/01de2d66a28d/a">raw</a></li>
293 <li><a href="/raw-file/3f41bc784e7e/a">raw</a></li>
272 294 </ul>
273 295 <ul>
274 296 <li><a href="/help">help</a></li>
275 297 </ul>
276 298 <div class="atom-logo">
277 <a href="/atom-log/01de2d66a28d/a" title="subscribe to atom feed">
299 <a href="/atom-log/3f41bc784e7e/a" title="subscribe to atom feed">
278 300 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" />
279 301 </a>
280 302 </div>
@@ -292,8 +314,8 b' second version - two revisions'
292 314 </form>
293 315
294 316 <div class="navigate">
295 <a href="/log/01de2d66a28d/a?revcount=30">less</a>
296 <a href="/log/01de2d66a28d/a?revcount=120">more</a>
317 <a href="/log/3f41bc784e7e/a?revcount=30">less</a>
318 <a href="/log/3f41bc784e7e/a?revcount=120">more</a>
297 319 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
298 320
299 321 <table class="bigtable">
@@ -309,8 +331,8 b' second version - two revisions'
309 331 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
310 332 <td class="author">test</td>
311 333 <td class="description">
312 <a href="/rev/01de2d66a28d">second a</a>
313
334 <a href="/rev/3f41bc784e7e">second a</a>
335 <span class="branchname">a-branch</span>
314 336 </td>
315 337 </tr>
316 338 <tr>
@@ -318,7 +340,7 b' second version - two revisions'
318 340 <td class="author">test</td>
319 341 <td class="description">
320 342 <a href="/rev/5ed941583260">first a</a>
321
343 <span class="tag">a-tag</span>
322 344 </td>
323 345 </tr>
324 346
@@ -326,8 +348,8 b' second version - two revisions'
326 348 </table>
327 349
328 350 <div class="navigate">
329 <a href="/log/01de2d66a28d/a?revcount=30">less</a>
330 <a href="/log/01de2d66a28d/a?revcount=120">more</a>
351 <a href="/log/3f41bc784e7e/a?revcount=30">less</a>
352 <a href="/log/3f41bc784e7e/a?revcount=120">more</a>
331 353 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
332 354 </div>
333 355
@@ -343,7 +365,7 b' second version - two revisions'
343 365
344 366 first deleted - one revision
345 367
346 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/2/a')
368 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/3/a')
347 369 200 Script output follows
348 370
349 371 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -427,7 +449,7 b' first deleted - one revision'
427 449 <td class="author">test</td>
428 450 <td class="description">
429 451 <a href="/rev/5ed941583260">first a</a>
430
452 <span class="tag">a-tag</span>
431 453 </td>
432 454 </tr>
433 455
@@ -536,7 +558,7 b' first version - one revision'
536 558 <td class="author">test</td>
537 559 <td class="description">
538 560 <a href="/rev/5ed941583260">first a</a>
539
561 <span class="tag">a-tag</span>
540 562 </td>
541 563 </tr>
542 564
@@ -652,8 +674,8 b' should show base link, use spartan becau'
652 674 <a href="/graph?style=spartan">graph</a>
653 675 <a href="/tags?style=spartan">tags</a>
654 676 <a href="/branches?style=spartan">branches</a>
655 <a href="/file/b7682196df1c/c?style=spartan">file</a>
656 <a href="/annotate/b7682196df1c/c?style=spartan">annotate</a>
677 <a href="/file/46c1a66bd8fc/c?style=spartan">file</a>
678 <a href="/annotate/46c1a66bd8fc/c?style=spartan">annotate</a>
657 679 <a href="/help?style=spartan">help</a>
658 680 <a type="application/rss+xml" href="/rss-log/tip/c">rss</a>
659 681 <a type="application/atom+xml" href="/atom-log/tip/c" title="Atom feed for test:c">atom</a>
@@ -661,19 +683,19 b' should show base link, use spartan becau'
661 683
662 684 <h2><a href="/">Mercurial</a> / c revision history</h2>
663 685
664 <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>
686 <p>navigate: <small class="navigate"><a href="/log/c9637d3cc8ef/c?style=spartan">(0)</a> <a href="/log/tip/c?style=spartan">tip</a> </small></p>
665 687
666 688 <table class="logEntry parity0">
667 689 <tr>
668 690 <th class="label"><span class="age">Thu, 01 Jan 1970 00:00:00 +0000</span>:</th>
669 <th class="firstline"><a href="/rev/b7682196df1c?style=spartan">change c</a></th>
691 <th class="firstline"><a href="/rev/46c1a66bd8fc?style=spartan">change c</a></th>
670 692 </tr>
671 693 <tr>
672 694 <th class="revision">revision 1:</th>
673 695 <td class="node">
674 <a href="/file/b7682196df1c/c?style=spartan">b7682196df1c</a>
675 <a href="/diff/b7682196df1c/c?style=spartan">(diff)</a>
676 <a href="/annotate/b7682196df1c/c?style=spartan">(annotate)</a>
696 <a href="/file/46c1a66bd8fc/c?style=spartan">46c1a66bd8fc</a>
697 <a href="/diff/46c1a66bd8fc/c?style=spartan">(diff)</a>
698 <a href="/annotate/46c1a66bd8fc/c?style=spartan">(annotate)</a>
677 699 </td>
678 700 </tr>
679 701
@@ -691,14 +713,14 b' should show base link, use spartan becau'
691 713 <table class="logEntry parity1">
692 714 <tr>
693 715 <th class="label"><span class="age">Thu, 01 Jan 1970 00:00:00 +0000</span>:</th>
694 <th class="firstline"><a href="/rev/1a6696706df2?style=spartan">mv b</a></th>
716 <th class="firstline"><a href="/rev/c9637d3cc8ef?style=spartan">mv b</a></th>
695 717 </tr>
696 718 <tr>
697 719 <th class="revision">revision 0:</th>
698 720 <td class="node">
699 <a href="/file/1a6696706df2/c?style=spartan">1a6696706df2</a>
700 <a href="/diff/1a6696706df2/c?style=spartan">(diff)</a>
701 <a href="/annotate/1a6696706df2/c?style=spartan">(annotate)</a>
721 <a href="/file/c9637d3cc8ef/c?style=spartan">c9637d3cc8ef</a>
722 <a href="/diff/c9637d3cc8ef/c?style=spartan">(diff)</a>
723 <a href="/annotate/c9637d3cc8ef/c?style=spartan">(annotate)</a>
702 724 </td>
703 725 </tr>
704 726
@@ -749,7 +771,7 b' rss log'
749 771 <description>a revision history</description>
750 772 <item>
751 773 <title>second a</title>
752 <link>http://*:$HGPORT/log01de2d66a28d/a</link> (glob)
774 <link>http://*:$HGPORT/log3f41bc784e7e/a</link> (glob)
753 775 <description><![CDATA[second a]]></description>
754 776 <author>&#116;&#101;&#115;&#116;</author>
755 777 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
@@ -778,9 +800,9 b' atom log'
778 800 <updated>1970-01-01T00:00:00+00:00</updated>
779 801
780 802 <entry>
781 <title>second a</title>
782 <id>http://*:$HGPORT/#changeset-01de2d66a28df5549090991dccda788726948517</id> (glob)
783 <link href="http://*:$HGPORT/rev/01de2d66a28d"/> (glob)
803 <title>[a-branch] second a</title>
804 <id>http://*:$HGPORT/#changeset-3f41bc784e7e73035c6d47112c6cc7efb673adf8</id> (glob)
805 <link href="http://*:$HGPORT/rev/3f41bc784e7e"/> (glob)
784 806 <author>
785 807 <name>test</name>
786 808 <email>&#116;&#101;&#115;&#116;</email>
@@ -791,11 +813,11 b' atom log'
791 813 <table xmlns="http://www.w3.org/1999/xhtml">
792 814 <tr>
793 815 <th style="text-align:left;">changeset</th>
794 <td>01de2d66a28d</td>
816 <td>3f41bc784e7e</td>
795 817 </tr>
796 818 <tr>
797 819 <th style="text-align:left;">branch</th>
798 <td></td>
820 <td>a-branch</td>
799 821 </tr>
800 822 <tr>
801 823 <th style="text-align:left;">bookmark</th>
@@ -842,11 +864,11 b' atom log'
842 864 </tr>
843 865 <tr>
844 866 <th style="text-align:left;">bookmark</th>
845 <td></td>
867 <td>a-bookmark</td>
846 868 </tr>
847 869 <tr>
848 870 <th style="text-align:left;">tag</th>
849 <td></td>
871 <td>a-tag</td>
850 872 </tr>
851 873 <tr>
852 874 <th style="text-align:left;">user</th>
General Comments 0
You need to be logged in to leave comments. Login now