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