Show More
@@ -7,7 +7,7 b'' | |||||
7 | # This software may be used and distributed according to the terms of the |
|
7 | # This software may be used and distributed according to the terms of the | |
8 | # GNU General Public License version 2 or any later version. |
|
8 | # GNU General Public License version 2 or any later version. | |
9 |
|
9 | |||
10 |
import |
|
10 | import re, glob | |
11 | import optparse |
|
11 | import optparse | |
12 |
|
12 | |||
13 | def repquote(m): |
|
13 | def repquote(m): |
@@ -45,14 +45,9 b' by the command whatis or apropos.' | |||||
45 |
|
45 | |||
46 | __docformat__ = 'reStructuredText' |
|
46 | __docformat__ = 'reStructuredText' | |
47 |
|
47 | |||
48 | import sys |
|
|||
49 | import os |
|
|||
50 | import time |
|
|||
51 | import re |
|
48 | import re | |
52 | from types import ListType |
|
|||
53 |
|
49 | |||
54 | import docutils |
|
50 | from docutils import nodes, writers, languages | |
55 | from docutils import nodes, utils, writers, languages |
|
|||
56 | import roman |
|
51 | import roman | |
57 |
|
52 | |||
58 | FIELD_LIST_INDENT = 7 |
|
53 | FIELD_LIST_INDENT = 7 |
@@ -10,7 +10,7 b'' | |||||
10 |
|
10 | |||
11 | from mercurial.i18n import _ |
|
11 | from mercurial.i18n import _ | |
12 | from mercurial import patch, cmdutil, util, templater |
|
12 | from mercurial import patch, cmdutil, util, templater | |
13 |
import |
|
13 | import os | |
14 | import time, datetime |
|
14 | import time, datetime | |
15 |
|
15 | |||
16 | def maketemplater(ui, repo, tmpl): |
|
16 | def maketemplater(ui, repo, tmpl): |
@@ -25,11 +25,6 b' import urllib' | |||||
25 | import urllib2 |
|
25 | import urllib2 | |
26 | import email.Utils |
|
26 | import email.Utils | |
27 |
|
27 | |||
28 | try: |
|
|||
29 | from cStringIO import StringIO |
|
|||
30 | except ImportError, msg: |
|
|||
31 | from StringIO import StringIO |
|
|||
32 |
|
||||
33 | class RangeError(IOError): |
|
28 | class RangeError(IOError): | |
34 | """Error raised when an unsatisfiable range is requested.""" |
|
29 | """Error raised when an unsatisfiable range is requested.""" | |
35 | pass |
|
30 | pass |
@@ -10,7 +10,6 b' import os' | |||||
10 | from mercurial import ui, hg, hook, error, encoding, templater |
|
10 | from mercurial import ui, hg, hook, error, encoding, templater | |
11 | from common import get_mtime, ErrorResponse, permhooks |
|
11 | from common import get_mtime, ErrorResponse, permhooks | |
12 | from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR |
|
12 | from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR | |
13 | from common import HTTP_UNAUTHORIZED, HTTP_METHOD_NOT_ALLOWED |
|
|||
14 | from request import wsgirequest |
|
13 | from request import wsgirequest | |
15 | import webcommands, protocol, webutil |
|
14 | import webcommands, protocol, webutil | |
16 |
|
15 |
@@ -7,7 +7,7 b'' | |||||
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 os, sys, errno, urllib, BaseHTTPServer, socket, SocketServer, traceback |
|
9 | import os, sys, errno, urllib, BaseHTTPServer, socket, SocketServer, traceback | |
10 |
from mercurial import |
|
10 | from mercurial import util, error | |
11 | from mercurial.i18n import _ |
|
11 | from mercurial.i18n import _ | |
12 |
|
12 | |||
13 | def _splitURI(uri): |
|
13 | def _splitURI(uri): |
@@ -10,7 +10,7 b' from i18n import _' | |||||
10 | from node import hex, nullid, short |
|
10 | from node import hex, nullid, short | |
11 | import base85, cmdutil, mdiff, util, diffhelpers, copies |
|
11 | import base85, cmdutil, mdiff, util, diffhelpers, copies | |
12 | import cStringIO, email.Parser, os, re |
|
12 | import cStringIO, email.Parser, os, re | |
13 |
import |
|
13 | import tempfile, zlib | |
14 |
|
14 | |||
15 | gitre = re.compile('diff --git a/(.*) b/(.*)') |
|
15 | gitre = re.compile('diff --git a/(.*) b/(.*)') | |
16 |
|
16 |
@@ -6,7 +6,6 b'' | |||||
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
8 | import util, error |
|
8 | import util, error | |
9 | from i18n import _ |
|
|||
10 |
|
9 | |||
11 | from mercurial import store |
|
10 | from mercurial import store | |
12 |
|
11 |
@@ -37,7 +37,6 b' import shutil' | |||||
37 | import tempfile |
|
37 | import tempfile | |
38 | from distutils.core import setup, Extension |
|
38 | from distutils.core import setup, Extension | |
39 | from distutils.dist import Distribution |
|
39 | from distutils.dist import Distribution | |
40 | from distutils.command.install_data import install_data |
|
|||
41 | from distutils.command.build import build |
|
40 | from distutils.command.build import build | |
42 | from distutils.command.build_py import build_py |
|
41 | from distutils.command.build_py import build_py | |
43 | from distutils.spawn import spawn, find_executable |
|
42 | from distutils.spawn import spawn, find_executable |
@@ -3,7 +3,7 b'' | |||||
3 | """This does HTTP GET requests given a host:port and path and returns |
|
3 | """This does HTTP GET requests given a host:port and path and returns | |
4 | a subset of the headers plus the body of the result.""" |
|
4 | a subset of the headers plus the body of the result.""" | |
5 |
|
5 | |||
6 |
import httplib, sys |
|
6 | import httplib, sys | |
7 |
|
7 | |||
8 | try: |
|
8 | try: | |
9 | import msvcrt, os |
|
9 | import msvcrt, os |
@@ -1,6 +1,6 b'' | |||||
1 | #!/usr/bin/env python |
|
1 | #!/usr/bin/env python | |
2 |
|
2 | |||
3 |
import os |
|
3 | import os, time, errno, signal | |
4 |
|
4 | |||
5 | # Kill off any leftover daemon processes |
|
5 | # Kill off any leftover daemon processes | |
6 | try: |
|
6 | try: |
@@ -46,9 +46,8 b' import difflib' | |||||
46 | import errno |
|
46 | import errno | |
47 | import optparse |
|
47 | import optparse | |
48 | import os |
|
48 | import os | |
49 |
import si |
|
49 | import shutil | |
50 | import subprocess |
|
50 | import subprocess | |
51 | import shutil |
|
|||
52 | import signal |
|
51 | import signal | |
53 | import sys |
|
52 | import sys | |
54 | import tempfile |
|
53 | import tempfile |
@@ -1,5 +1,4 b'' | |||||
1 | #!/usr/bin/python |
|
1 | #!/usr/bin/python | |
2 | import os |
|
|||
3 | from mercurial.ui import ui |
|
2 | from mercurial.ui import ui | |
4 | from mercurial.localrepo import localrepository |
|
3 | from mercurial.localrepo import localrepository | |
5 | from mercurial.commands import add, commit, status |
|
4 | from mercurial.commands import add, commit, status |
General Comments 0
You need to be logged in to leave comments.
Login now