4 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> |
4 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> |
5 # |
5 # |
6 # This software may be used and distributed according to the terms |
6 # This software may be used and distributed according to the terms |
7 # of the GNU General Public License, incorporated herein by reference. |
7 # of the GNU General Public License, incorporated herein by reference. |
8 |
8 |
9 import os, mimetypes |
9 import os |
10 from mercurial.node import hex, nullid |
|
11 from mercurial import ui, hg, util, hook, error |
10 from mercurial import ui, hg, util, hook, error |
12 from mercurial import templater, templatefilters |
11 from mercurial import templater, templatefilters |
13 from common import get_mtime, style_map, ErrorResponse |
12 from common import get_mtime, style_map, ErrorResponse |
14 from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR |
13 from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR |
15 from common import HTTP_UNAUTHORIZED, HTTP_METHOD_NOT_ALLOWED |
14 from common import HTTP_UNAUTHORIZED, HTTP_METHOD_NOT_ALLOWED |