##// 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
@@ -1,873 +1,895 b''
1 1 #require serve
2 2
3 3 $ hg init test
4 4 $ cd test
5 5 $ echo b > b
6 6 $ hg ci -Am "b"
7 7 adding 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
16 21 $ hg rm a
17 22 $ hg ci -m "del2 a"
18 23 $ hg mv b c
19 24 $ hg ci -m "mv 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
89 111
90 112 diff -r 6563da9dcf87 -r 5ed941583260 a
91 113 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
92 114 +++ b/a Thu Jan 01 00:00:00 1970 +0000
93 115 @@ -0,0 +1,1 @@
94 116 +a
95 117
96 118 changeset: 0:6563da9dcf87
97 119 user: test
98 120 date: Thu Jan 01 00:00:00 1970 +0000
99 121 summary: b
100 122
101 123 diff -r 000000000000 -r 6563da9dcf87 b
102 124 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
103 125 +++ b/b Thu Jan 01 00:00:00 1970 +0000
104 126 @@ -0,0 +1,1 @@
105 127 +b
106 128
107 129 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
108 130 $ cat hg.pid >> $DAEMON_PIDS
109 131
110 132 tip - two revisions
111 133
112 134 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/tip/a')
113 135 200 Script output follows
114 136
115 137 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
116 138 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
117 139 <head>
118 140 <link rel="icon" href="/static/hgicon.png" type="image/png" />
119 141 <meta name="robots" content="index, nofollow" />
120 142 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
121 143 <script type="text/javascript" src="/static/mercurial.js"></script>
122 144
123 145 <title>test: a history</title>
124 146 <link rel="alternate" type="application/atom+xml"
125 147 href="/atom-log/tip/a" title="Atom feed for test:a" />
126 148 <link rel="alternate" type="application/rss+xml"
127 149 href="/rss-log/tip/a" title="RSS feed for test:a" />
128 150 </head>
129 151 <body>
130 152
131 153 <div class="container">
132 154 <div class="menu">
133 155 <div class="logo">
134 156 <a href="http://mercurial.selenic.com/">
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>
164 186 </div>
165 187
166 188 <div class="main">
167 189 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
168 190 <h3>log a</h3>
169 191
170 192 <form class="search" action="/log">
171 193
172 194 <p><input name="rev" id="search1" type="text" size="30" /></p>
173 195 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
174 196 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
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">
183 205 <thead>
184 206 <tr>
185 207 <th class="age">age</th>
186 208 <th class="author">author</th>
187 209 <th class="description">description</th>
188 210 </tr>
189 211 </thead>
190 212 <tbody class="stripes2">
191 213 <tr>
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>
200 222 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
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
208 230 </tbody>
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
217 239 </div>
218 240 </div>
219 241
220 242 <script type="text/javascript">process_dates()</script>
221 243
222 244
223 245 </body>
224 246 </html>
225 247
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">
233 255 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
234 256 <head>
235 257 <link rel="icon" href="/static/hgicon.png" type="image/png" />
236 258 <meta name="robots" content="index, nofollow" />
237 259 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
238 260 <script type="text/javascript" src="/static/mercurial.js"></script>
239 261
240 262 <title>test: a history</title>
241 263 <link rel="alternate" type="application/atom+xml"
242 264 href="/atom-log/tip/a" title="Atom feed for test:a" />
243 265 <link rel="alternate" type="application/rss+xml"
244 266 href="/rss-log/tip/a" title="RSS feed for test:a" />
245 267 </head>
246 268 <body>
247 269
248 270 <div class="container">
249 271 <div class="menu">
250 272 <div class="logo">
251 273 <a href="http://mercurial.selenic.com/">
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>
281 303 </div>
282 304
283 305 <div class="main">
284 306 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
285 307 <h3>log a</h3>
286 308
287 309 <form class="search" action="/log">
288 310
289 311 <p><input name="rev" id="search1" type="text" size="30" /></p>
290 312 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
291 313 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
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">
300 322 <thead>
301 323 <tr>
302 324 <th class="age">age</th>
303 325 <th class="author">author</th>
304 326 <th class="description">description</th>
305 327 </tr>
306 328 </thead>
307 329 <tbody class="stripes2">
308 330 <tr>
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>
317 339 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
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
325 347 </tbody>
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
334 356 </div>
335 357 </div>
336 358
337 359 <script type="text/javascript">process_dates()</script>
338 360
339 361
340 362 </body>
341 363 </html>
342 364
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">
350 372 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
351 373 <head>
352 374 <link rel="icon" href="/static/hgicon.png" type="image/png" />
353 375 <meta name="robots" content="index, nofollow" />
354 376 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
355 377 <script type="text/javascript" src="/static/mercurial.js"></script>
356 378
357 379 <title>test: a history</title>
358 380 <link rel="alternate" type="application/atom+xml"
359 381 href="/atom-log/tip/a" title="Atom feed for test:a" />
360 382 <link rel="alternate" type="application/rss+xml"
361 383 href="/rss-log/tip/a" title="RSS feed for test:a" />
362 384 </head>
363 385 <body>
364 386
365 387 <div class="container">
366 388 <div class="menu">
367 389 <div class="logo">
368 390 <a href="http://mercurial.selenic.com/">
369 391 <img src="/static/hglogo.png" alt="mercurial" /></a>
370 392 </div>
371 393 <ul>
372 394 <li><a href="/shortlog/5ed941583260">log</a></li>
373 395 <li><a href="/graph/5ed941583260">graph</a></li>
374 396 <li><a href="/tags">tags</a></li>
375 397 <li><a href="/bookmarks">bookmarks</a></li>
376 398 <li><a href="/branches">branches</a></li>
377 399 </ul>
378 400 <ul>
379 401 <li><a href="/rev/5ed941583260">changeset</a></li>
380 402 <li><a href="/file/5ed941583260">browse</a></li>
381 403 </ul>
382 404 <ul>
383 405 <li><a href="/file/5ed941583260/a">file</a></li>
384 406 <li><a href="/diff/5ed941583260/a">diff</a></li>
385 407 <li><a href="/comparison/5ed941583260/a">comparison</a></li>
386 408 <li><a href="/annotate/5ed941583260/a">annotate</a></li>
387 409 <li class="active">file log</li>
388 410 <li><a href="/raw-file/5ed941583260/a">raw</a></li>
389 411 </ul>
390 412 <ul>
391 413 <li><a href="/help">help</a></li>
392 414 </ul>
393 415 <div class="atom-logo">
394 416 <a href="/atom-log/5ed941583260/a" title="subscribe to atom feed">
395 417 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" />
396 418 </a>
397 419 </div>
398 420 </div>
399 421
400 422 <div class="main">
401 423 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
402 424 <h3>log a</h3>
403 425
404 426 <form class="search" action="/log">
405 427
406 428 <p><input name="rev" id="search1" type="text" size="30" /></p>
407 429 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
408 430 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
409 431 </form>
410 432
411 433 <div class="navigate">
412 434 <a href="/log/5ed941583260/a?revcount=30">less</a>
413 435 <a href="/log/5ed941583260/a?revcount=120">more</a>
414 436 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
415 437
416 438 <table class="bigtable">
417 439 <thead>
418 440 <tr>
419 441 <th class="age">age</th>
420 442 <th class="author">author</th>
421 443 <th class="description">description</th>
422 444 </tr>
423 445 </thead>
424 446 <tbody class="stripes2">
425 447 <tr>
426 448 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
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
434 456 </tbody>
435 457 </table>
436 458
437 459 <div class="navigate">
438 460 <a href="/log/5ed941583260/a?revcount=30">less</a>
439 461 <a href="/log/5ed941583260/a?revcount=120">more</a>
440 462 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
441 463 </div>
442 464
443 465 </div>
444 466 </div>
445 467
446 468 <script type="text/javascript">process_dates()</script>
447 469
448 470
449 471 </body>
450 472 </html>
451 473
452 474
453 475 first version - one revision
454 476
455 477 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/1/a')
456 478 200 Script output follows
457 479
458 480 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
459 481 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
460 482 <head>
461 483 <link rel="icon" href="/static/hgicon.png" type="image/png" />
462 484 <meta name="robots" content="index, nofollow" />
463 485 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
464 486 <script type="text/javascript" src="/static/mercurial.js"></script>
465 487
466 488 <title>test: a history</title>
467 489 <link rel="alternate" type="application/atom+xml"
468 490 href="/atom-log/tip/a" title="Atom feed for test:a" />
469 491 <link rel="alternate" type="application/rss+xml"
470 492 href="/rss-log/tip/a" title="RSS feed for test:a" />
471 493 </head>
472 494 <body>
473 495
474 496 <div class="container">
475 497 <div class="menu">
476 498 <div class="logo">
477 499 <a href="http://mercurial.selenic.com/">
478 500 <img src="/static/hglogo.png" alt="mercurial" /></a>
479 501 </div>
480 502 <ul>
481 503 <li><a href="/shortlog/5ed941583260">log</a></li>
482 504 <li><a href="/graph/5ed941583260">graph</a></li>
483 505 <li><a href="/tags">tags</a></li>
484 506 <li><a href="/bookmarks">bookmarks</a></li>
485 507 <li><a href="/branches">branches</a></li>
486 508 </ul>
487 509 <ul>
488 510 <li><a href="/rev/5ed941583260">changeset</a></li>
489 511 <li><a href="/file/5ed941583260">browse</a></li>
490 512 </ul>
491 513 <ul>
492 514 <li><a href="/file/5ed941583260/a">file</a></li>
493 515 <li><a href="/diff/5ed941583260/a">diff</a></li>
494 516 <li><a href="/comparison/5ed941583260/a">comparison</a></li>
495 517 <li><a href="/annotate/5ed941583260/a">annotate</a></li>
496 518 <li class="active">file log</li>
497 519 <li><a href="/raw-file/5ed941583260/a">raw</a></li>
498 520 </ul>
499 521 <ul>
500 522 <li><a href="/help">help</a></li>
501 523 </ul>
502 524 <div class="atom-logo">
503 525 <a href="/atom-log/5ed941583260/a" title="subscribe to atom feed">
504 526 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" />
505 527 </a>
506 528 </div>
507 529 </div>
508 530
509 531 <div class="main">
510 532 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
511 533 <h3>log a</h3>
512 534
513 535 <form class="search" action="/log">
514 536
515 537 <p><input name="rev" id="search1" type="text" size="30" /></p>
516 538 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
517 539 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
518 540 </form>
519 541
520 542 <div class="navigate">
521 543 <a href="/log/5ed941583260/a?revcount=30">less</a>
522 544 <a href="/log/5ed941583260/a?revcount=120">more</a>
523 545 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </div>
524 546
525 547 <table class="bigtable">
526 548 <thead>
527 549 <tr>
528 550 <th class="age">age</th>
529 551 <th class="author">author</th>
530 552 <th class="description">description</th>
531 553 </tr>
532 554 </thead>
533 555 <tbody class="stripes2">
534 556 <tr>
535 557 <td class="age">Thu, 01 Jan 1970 00:00:00 +0000</td>
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
543 565 </tbody>
544 566 </table>
545 567
546 568 <div class="navigate">
547 569 <a href="/log/5ed941583260/a?revcount=30">less</a>
548 570 <a href="/log/5ed941583260/a?revcount=120">more</a>
549 571 | <a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a>
550 572 </div>
551 573
552 574 </div>
553 575 </div>
554 576
555 577 <script type="text/javascript">process_dates()</script>
556 578
557 579
558 580 </body>
559 581 </html>
560 582
561 583
562 584 before addition - error
563 585
564 586 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/0/a')
565 587 404 Not Found
566 588
567 589 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
568 590 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
569 591 <head>
570 592 <link rel="icon" href="/static/hgicon.png" type="image/png" />
571 593 <meta name="robots" content="index, nofollow" />
572 594 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
573 595 <script type="text/javascript" src="/static/mercurial.js"></script>
574 596
575 597 <title>test: error</title>
576 598 </head>
577 599 <body>
578 600
579 601 <div class="container">
580 602 <div class="menu">
581 603 <div class="logo">
582 604 <a href="http://mercurial.selenic.com/">
583 605 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
584 606 </div>
585 607 <ul>
586 608 <li><a href="/shortlog">log</a></li>
587 609 <li><a href="/graph">graph</a></li>
588 610 <li><a href="/tags">tags</a></li>
589 611 <li><a href="/bookmarks">bookmarks</a></li>
590 612 <li><a href="/branches">branches</a></li>
591 613 </ul>
592 614 <ul>
593 615 <li><a href="/help">help</a></li>
594 616 </ul>
595 617 </div>
596 618
597 619 <div class="main">
598 620
599 621 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
600 622 <h3>error</h3>
601 623
602 624 <form class="search" action="/log">
603 625
604 626 <p><input name="rev" id="search1" type="text" size="30"></p>
605 627 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
606 628 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
607 629 </form>
608 630
609 631 <div class="description">
610 632 <p>
611 633 An error occurred while processing your request:
612 634 </p>
613 635 <p>
614 636 a@6563da9dcf87: not found in manifest
615 637 </p>
616 638 </div>
617 639 </div>
618 640 </div>
619 641
620 642 <script type="text/javascript">process_dates()</script>
621 643
622 644
623 645 </body>
624 646 </html>
625 647
626 648 [1]
627 649
628 650 should show base link, use spartan because it shows it
629 651
630 652 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log/tip/c?style=spartan')
631 653 200 Script output follows
632 654
633 655 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
634 656 <html>
635 657 <head>
636 658 <link rel="icon" href="/static/hgicon.png" type="image/png">
637 659 <meta name="robots" content="index, nofollow" />
638 660 <link rel="stylesheet" href="/static/style.css" type="text/css" />
639 661 <script type="text/javascript" src="/static/mercurial.js"></script>
640 662
641 663 <title>test: c history</title>
642 664 <link rel="alternate" type="application/atom+xml"
643 665 href="/atom-log/tip/c" title="Atom feed for test:c">
644 666 <link rel="alternate" type="application/rss+xml"
645 667 href="/rss-log/tip/c" title="RSS feed for test:c">
646 668 </head>
647 669 <body>
648 670
649 671 <div class="buttons">
650 672 <a href="/log?style=spartan">changelog</a>
651 673 <a href="/shortlog?style=spartan">shortlog</a>
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>
660 682 </div>
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
680 702 <tr>
681 703 <th class="author">author:</th>
682 704 <td class="author">&#116;&#101;&#115;&#116;</td>
683 705 </tr>
684 706 <tr>
685 707 <th class="date">date:</th>
686 708 <td class="date">Thu, 01 Jan 1970 00:00:00 +0000</td>
687 709 </tr>
688 710 </table>
689 711
690 712
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
705 727 <tr>
706 728 <th>base:</th>
707 729 <td>
708 730 <a href="/file/1e88685f5dde/b?style=spartan">
709 731 b@1e88685f5dde
710 732 </a>
711 733 </td>
712 734 </tr>
713 735 <tr>
714 736 <th class="author">author:</th>
715 737 <td class="author">&#116;&#101;&#115;&#116;</td>
716 738 </tr>
717 739 <tr>
718 740 <th class="date">date:</th>
719 741 <td class="date">Thu, 01 Jan 1970 00:00:00 +0000</td>
720 742 </tr>
721 743 </table>
722 744
723 745
724 746
725 747
726 748 <script type="text/javascript">process_dates()</script>
727 749
728 750 <div class="logo">
729 751 <a href="http://mercurial.selenic.com/">
730 752 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
731 753 </div>
732 754
733 755 </body>
734 756 </html>
735 757
736 758
737 759 rss log
738 760
739 761 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'rss-log/tip/a')
740 762 200 Script output follows
741 763
742 764 <?xml version="1.0" encoding="ascii"?>
743 765 <rss version="2.0">
744 766 <channel>
745 767 <link>http://*:$HGPORT/</link> (glob)
746 768 <language>en-us</language>
747 769
748 770 <title>test: a history</title>
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>
756 778 </item>
757 779 <item>
758 780 <title>first a</title>
759 781 <link>http://*:$HGPORT/log5ed941583260/a</link> (glob)
760 782 <description><![CDATA[first a]]></description>
761 783 <author>&#116;&#101;&#115;&#116;</author>
762 784 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
763 785 </item>
764 786
765 787 </channel>
766 788 </rss>
767 789
768 790 atom log
769 791
770 792 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'atom-log/tip/a')
771 793 200 Script output follows
772 794
773 795 <?xml version="1.0" encoding="ascii"?>
774 796 <feed xmlns="http://www.w3.org/2005/Atom">
775 797 <id>http://*:$HGPORT/atom-log/tip/a</id> (glob)
776 798 <link rel="self" href="http://*:$HGPORT/atom-log/tip/a"/> (glob)
777 799 <title>test: a history</title>
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>
787 809 </author>
788 810 <updated>1970-01-01T00:00:00+00:00</updated>
789 811 <published>1970-01-01T00:00:00+00:00</published>
790 812 <content type="xhtml">
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>
802 824 <td></td>
803 825 </tr>
804 826 <tr>
805 827 <th style="text-align:left;">tag</th>
806 828 <td></td>
807 829 </tr>
808 830 <tr>
809 831 <th style="text-align:left;">user</th>
810 832 <td>&#116;&#101;&#115;&#116;</td>
811 833 </tr>
812 834 <tr>
813 835 <th style="text-align:left;vertical-align:top;">description</th>
814 836 <td>second a</td>
815 837 </tr>
816 838 <tr>
817 839 <th style="text-align:left;vertical-align:top;">files</th>
818 840 <td></td>
819 841 </tr>
820 842 </table>
821 843 </content>
822 844 </entry>
823 845 <entry>
824 846 <title>first a</title>
825 847 <id>http://*:$HGPORT/#changeset-5ed941583260248620985524192fdc382ef57c36</id> (glob)
826 848 <link href="http://*:$HGPORT/rev/5ed941583260"/> (glob)
827 849 <author>
828 850 <name>test</name>
829 851 <email>&#116;&#101;&#115;&#116;</email>
830 852 </author>
831 853 <updated>1970-01-01T00:00:00+00:00</updated>
832 854 <published>1970-01-01T00:00:00+00:00</published>
833 855 <content type="xhtml">
834 856 <table xmlns="http://www.w3.org/1999/xhtml">
835 857 <tr>
836 858 <th style="text-align:left;">changeset</th>
837 859 <td>5ed941583260</td>
838 860 </tr>
839 861 <tr>
840 862 <th style="text-align:left;">branch</th>
841 863 <td></td>
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>
853 875 <td>&#116;&#101;&#115;&#116;</td>
854 876 </tr>
855 877 <tr>
856 878 <th style="text-align:left;vertical-align:top;">description</th>
857 879 <td>first a</td>
858 880 </tr>
859 881 <tr>
860 882 <th style="text-align:left;vertical-align:top;">files</th>
861 883 <td></td>
862 884 </tr>
863 885 </table>
864 886 </content>
865 887 </entry>
866 888
867 889 </feed>
868 890
869 891 errors
870 892
871 893 $ cat errors.log
872 894
873 895 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now