4 # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> |
4 # Copyright 2005, 2006 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 import socket, cgi, errno |
9 from __future__ import absolute_import |
10 from mercurial import util |
10 |
11 from common import ErrorResponse, statusmessage, HTTP_NOT_MODIFIED |
11 import cgi |
|
12 import errno |
|
13 import socket |
|
14 |
|
15 from .common import ( |
|
16 ErrorResponse, |
|
17 HTTP_NOT_MODIFIED, |
|
18 statusmessage, |
|
19 ) |
|
20 |
|
21 from .. import ( |
|
22 util, |
|
23 ) |
12 |
24 |
13 shortcuts = { |
25 shortcuts = { |
14 'cl': [('cmd', ['changelog']), ('rev', None)], |
26 'cl': [('cmd', ['changelog']), ('rev', None)], |
15 'sl': [('cmd', ['shortlog']), ('rev', None)], |
27 'sl': [('cmd', ['shortlog']), ('rev', None)], |
16 'cs': [('cmd', ['changeset']), ('node', None)], |
28 'cs': [('cmd', ['changeset']), ('node', None)], |