Show More
@@ -5,7 +5,8 b'' | |||
|
5 | 5 | # This software may be used and distributed according to the terms of the |
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 |
import heapq |
|
|
8 | import heapq | |
|
9 | import util | |
|
9 | 10 | from node import nullrev |
|
10 | 11 | |
|
11 | 12 | def ancestors(pfunc, *orignodes): |
@@ -17,7 +17,8 b' from hgweb import server as hgweb_server' | |||
|
17 | 17 | import merge as mergemod |
|
18 | 18 | import minirst, revset, fileset |
|
19 | 19 | import dagparser, context, simplemerge, graphmod |
|
20 | import random, setdiscovery, treediscovery, dagutil, pvec, localrepo | |
|
20 | import random | |
|
21 | import setdiscovery, treediscovery, dagutil, pvec, localrepo | |
|
21 | 22 | import phases, obsolete |
|
22 | 23 | |
|
23 | 24 | table = {} |
@@ -5,7 +5,8 b'' | |||
|
5 | 5 | # This software may be used and distributed according to the terms of the |
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 |
import getopt |
|
|
8 | import getopt | |
|
9 | import util | |
|
9 | 10 | from i18n import _ |
|
10 | 11 | |
|
11 | 12 | def gnugetopt(args, options, longoptions): |
@@ -5,7 +5,8 b'' | |||
|
5 | 5 | # This software may be used and distributed according to the terms of the |
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | import parser, error, util, merge, re | |
|
8 | import re | |
|
9 | import parser, error, util, merge | |
|
9 | 10 | from i18n import _ |
|
10 | 11 | |
|
11 | 12 | elements = { |
@@ -8,7 +8,8 b'' | |||
|
8 | 8 | # This software may be used and distributed according to the terms of the |
|
9 | 9 | # GNU General Public License version 2 or any later version. |
|
10 | 10 | |
|
11 |
import os |
|
|
11 | import os | |
|
12 | import error | |
|
12 | 13 | from i18n import _ |
|
13 | 14 | from node import short, hex |
|
14 | 15 | import util |
@@ -6,7 +6,8 b'' | |||
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | from i18n import gettext, _ |
|
9 |
import itertools, sys, os |
|
|
9 | import itertools, sys, os | |
|
10 | import error | |
|
10 | 11 | import extensions, revset, fileset, templatekw, templatefilters, filemerge |
|
11 | 12 | import encoding, util, minirst |
|
12 | 13 | import cmdutil |
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | # This software may be used and distributed according to the terms of the |
|
7 | 7 | # GNU General Public License version 2 or any later version. |
|
8 | 8 | |
|
9 | import os | |
|
9 | import os, re | |
|
10 | 10 | from mercurial import ui, hg, hook, error, encoding, templater, util, repoview |
|
11 | 11 | from mercurial.templatefilters import websub |
|
12 | 12 | from mercurial.i18n import _ |
@@ -14,7 +14,7 b' from common import get_stat, ErrorRespon' | |||
|
14 | 14 | from common import HTTP_OK, HTTP_NOT_MODIFIED, HTTP_BAD_REQUEST |
|
15 | 15 | from common import HTTP_NOT_FOUND, HTTP_SERVER_ERROR |
|
16 | 16 | from request import wsgirequest |
|
17 |
import webcommands, protocol, webutil |
|
|
17 | import webcommands, protocol, webutil | |
|
18 | 18 | |
|
19 | 19 | perms = { |
|
20 | 20 | 'changegroup': 'pull', |
@@ -6,8 +6,8 b'' | |||
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | from i18n import _ |
|
9 | import bdiff, mpatch, util | |
|
10 |
import re, struct, |
|
|
9 | import bdiff, mpatch, util, base85 | |
|
10 | import re, struct, zlib | |
|
11 | 11 | |
|
12 | 12 | def splitnewlines(text): |
|
13 | 13 | '''like str.splitlines, but only split on newlines.''' |
@@ -8,7 +8,8 b'' | |||
|
8 | 8 | |
|
9 | 9 | from node import nullid |
|
10 | 10 | from i18n import _ |
|
11 |
import random |
|
|
11 | import random | |
|
12 | import util, dagutil | |
|
12 | 13 | |
|
13 | 14 | def _updatesample(dag, nodes, sample, always, quicksamplesize=0): |
|
14 | 15 | # if nodes is empty we scan the entire graph |
@@ -14,9 +14,9 b' hide platform-specific details from the ' | |||
|
14 | 14 | """ |
|
15 | 15 | |
|
16 | 16 | from i18n import _ |
|
17 |
import error, osutil, encoding |
|
|
17 | import error, osutil, encoding | |
|
18 | 18 | import errno, re, shutil, sys, tempfile, traceback |
|
19 | import os, time, datetime, calendar, textwrap, signal | |
|
19 | import os, time, datetime, calendar, textwrap, signal, collections | |
|
20 | 20 | import imp, socket, urllib |
|
21 | 21 | |
|
22 | 22 | if os.name == 'nt': |
@@ -6,7 +6,8 b'' | |||
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | from i18n import _ |
|
9 |
import errno, os, signal, sys, threading |
|
|
9 | import errno, os, signal, sys, threading | |
|
10 | import util | |
|
10 | 11 | |
|
11 | 12 | def countcpus(): |
|
12 | 13 | '''try to count the number of CPUs on the system''' |
General Comments 0
You need to be logged in to leave comments.
Login now