Mercurial > hg-stable
comparison mercurial/hgweb/hgweb_mod.py @ 27046:37fcfe52c68c
hgweb: use absolute_import
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 31 Oct 2015 22:07:40 +0900 |
parents | eac72c1e1e0d |
children | f97a0bcfd7a1 |
comparison
equal
deleted
inserted
replaced
27045:eac72c1e1e0d | 27046:37fcfe52c68c |
---|---|
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 of the | 6 # This software may be used and distributed according to the terms of the |
7 # GNU General Public License version 2 or any later version. | 7 # GNU General Public License version 2 or any later version. |
8 | 8 |
9 from __future__ import absolute_import | |
10 | |
9 import contextlib | 11 import contextlib |
10 import os | 12 import os |
11 from mercurial import hg, hook, error, encoding, templater, util, repoview | 13 |
12 from mercurial import ui as uimod | 14 from .common import ( |
13 from mercurial import templatefilters | 15 ErrorResponse, |
14 from common import ErrorResponse, permhooks, caching | 16 HTTP_BAD_REQUEST, |
15 from common import HTTP_OK, HTTP_NOT_MODIFIED, HTTP_BAD_REQUEST | 17 HTTP_NOT_FOUND, |
16 from common import HTTP_NOT_FOUND, HTTP_SERVER_ERROR | 18 HTTP_NOT_MODIFIED, |
17 from request import wsgirequest | 19 HTTP_OK, |
18 import webcommands, protocol, webutil, wsgicgi | 20 HTTP_SERVER_ERROR, |
21 caching, | |
22 permhooks, | |
23 ) | |
24 from .request import wsgirequest | |
25 | |
26 from .. import ( | |
27 encoding, | |
28 error, | |
29 hg, | |
30 hook, | |
31 repoview, | |
32 templatefilters, | |
33 templater, | |
34 ui as uimod, | |
35 util, | |
36 ) | |
37 | |
38 from . import ( | |
39 protocol, | |
40 webcommands, | |
41 webutil, | |
42 wsgicgi, | |
43 ) | |
19 | 44 |
20 perms = { | 45 perms = { |
21 'changegroup': 'pull', | 46 'changegroup': 'pull', |
22 'changegroupsubset': 'pull', | 47 'changegroupsubset': 'pull', |
23 'getbundle': 'pull', | 48 'getbundle': 'pull', |