equal
deleted
inserted
replaced
1 # A dummy extension that installs an hgweb command that throws an Exception. |
1 # A dummy extension that installs an hgweb command that throws an Exception. |
2 |
2 |
3 from mercurial.hgweb import webcommands |
3 from __future__ import absolute_import |
|
4 |
|
5 from mercurial.hgweb import ( |
|
6 webcommands, |
|
7 ) |
4 |
8 |
5 def raiseerror(web, req, tmpl): |
9 def raiseerror(web, req, tmpl): |
6 '''Dummy web command that raises an uncaught Exception.''' |
10 '''Dummy web command that raises an uncaught Exception.''' |
7 |
11 |
8 # Simulate an error after partial response. |
12 # Simulate an error after partial response. |