##// END OF EJS Templates
hgweb: translate Abort in help command to 404 error...
Yuya Nishihara -
r36262:0ef50a5e default
parent child Browse files
Show More
@@ -1403,7 +1403,7 b' def help(web, req, tmpl):'
1403
1403
1404 try:
1404 try:
1405 doc = helpmod.help_(u, commands, topic, subtopic=subtopic)
1405 doc = helpmod.help_(u, commands, topic, subtopic=subtopic)
1406 except error.UnknownCommand:
1406 except error.Abort:
1407 raise ErrorResponse(HTTP_NOT_FOUND)
1407 raise ErrorResponse(HTTP_NOT_FOUND)
1408 return tmpl('help', topic=topicname, doc=doc)
1408 return tmpl('help', topic=topicname, doc=doc)
1409
1409
@@ -3391,6 +3391,70 b' Sub-topic topics rendered properly'
3391 </html>
3391 </html>
3392
3392
3393
3393
3394 $ get-with-headers.py 127.0.0.1:$HGPORT "help/unknowntopic"
3395 404 Not Found
3396
3397 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3398 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
3399 <head>
3400 <link rel="icon" href="/static/hgicon.png" type="image/png" />
3401 <meta name="robots" content="index, nofollow" />
3402 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
3403 <script type="text/javascript" src="/static/mercurial.js"></script>
3404
3405 <title>test: error</title>
3406 </head>
3407 <body>
3408
3409 <div class="container">
3410 <div class="menu">
3411 <div class="logo">
3412 <a href="https://mercurial-scm.org/">
3413 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
3414 </div>
3415 <ul>
3416 <li><a href="/shortlog">log</a></li>
3417 <li><a href="/graph">graph</a></li>
3418 <li><a href="/tags">tags</a></li>
3419 <li><a href="/bookmarks">bookmarks</a></li>
3420 <li><a href="/branches">branches</a></li>
3421 </ul>
3422 <ul>
3423 <li><a href="/help">help</a></li>
3424 </ul>
3425 </div>
3426
3427 <div class="main">
3428
3429 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
3430 <h3>error</h3>
3431
3432
3433 <form class="search" action="/log">
3434
3435 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
3436 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
3437 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
3438 </form>
3439
3440 <div class="description">
3441 <p>
3442 An error occurred while processing your request:
3443 </p>
3444 <p>
3445 Not Found
3446 </p>
3447 </div>
3448 </div>
3449 </div>
3450
3451
3452
3453 </body>
3454 </html>
3455
3456 [1]
3457
3394 $ killdaemons.py
3458 $ killdaemons.py
3395
3459
3396 #endif
3460 #endif
General Comments 0
You need to be logged in to leave comments. Login now