##// END OF EJS Templates
py2: remove simple from __future__ statements...
Gregory Szorc -
r49730:6000f5b2 default
parent child Browse files
Show More
@@ -1,6 +1,5 b''
1 # Randomized torture test generation for bdiff
1 # Randomized torture test generation for bdiff
2
2
3 from __future__ import absolute_import, print_function
4 import random
3 import random
5 import sys
4 import sys
6
5
@@ -31,7 +31,6 b' Invocation example:'
31 $ asv --config contrib/asv.conf.json preview
31 $ asv --config contrib/asv.conf.json preview
32 '''
32 '''
33
33
34 from __future__ import absolute_import
35
34
36 import functools
35 import functools
37 import os
36 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from . import perfbench
9 from . import perfbench
11
10
@@ -10,7 +10,6 b''
10 Each revset benchmark is parameterized with variants (first, last, sort, ...)
10 Each revset benchmark is parameterized with variants (first, last, sort, ...)
11 '''
11 '''
12
12
13 from __future__ import absolute_import
14
13
15 import os
14 import os
16 import string
15 import string
@@ -7,7 +7,6 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 from __future__ import absolute_import, print_function
11
10
12 import argparse
11 import argparse
13 import contextlib
12 import contextlib
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import
2 import __builtin__
1 import __builtin__
3 import os
2 import os
4 from mercurial import util
3 from mercurial import util
@@ -34,7 +34,6 b" Typically you'll want to place the path "
34 HGCATAPULTSERVERPIPE environment variable, which both run-tests and hg
34 HGCATAPULTSERVERPIPE environment variable, which both run-tests and hg
35 understand. To trace *only* run-tests, use HGTESTCATAPULTSERVERPIPE instead.
35 understand. To trace *only* run-tests, use HGTESTCATAPULTSERVERPIPE instead.
36 """
36 """
37 from __future__ import absolute_import, print_function
38
37
39 import argparse
38 import argparse
40 import json
39 import json
@@ -19,7 +19,6 b' when a rule triggers wrong, do one of th'
19 * ONLY use no--check-code for skipping entire files from external sources
19 * ONLY use no--check-code for skipping entire files from external sources
20 """
20 """
21
21
22 from __future__ import absolute_import, print_function
23 import glob
22 import glob
24 import keyword
23 import keyword
25 import optparse
24 import optparse
@@ -15,7 +15,6 b''
15 #
15 #
16 # See also: https://mercurial-scm.org/wiki/ContributingChanges
16 # See also: https://mercurial-scm.org/wiki/ContributingChanges
17
17
18 from __future__ import absolute_import, print_function
19
18
20 import os
19 import os
21 import re
20 import re
@@ -7,7 +7,6 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 from __future__ import absolute_import, print_function
11 import re
10 import re
12 import sys
11 import sys
13
12
@@ -7,7 +7,6 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 from __future__ import absolute_import, print_function
11
10
12 import ast
11 import ast
13 import importlib
12 import importlib
@@ -7,7 +7,6 b''
7 # $ ./hg serve --cmds pipe | ./contrib/debugcmdserver.py -
7 # $ ./hg serve --cmds pipe | ./contrib/debugcmdserver.py -
8 # o, 52 -> 'capabilities: getencoding runcommand\nencoding: UTF-8'
8 # o, 52 -> 'capabilities: getencoding runcommand\nencoding: UTF-8'
9
9
10 from __future__ import absolute_import, print_function
11 import struct
10 import struct
12 import sys
11 import sys
13
12
@@ -1,7 +1,6 b''
1 # debugshell extension
1 # debugshell extension
2 """a python shell with repo, changelog & manifest objects"""
2 """a python shell with repo, changelog & manifest objects"""
3
3
4 from __future__ import absolute_import
5 import code
4 import code
6 import mercurial
5 import mercurial
7 import sys
6 import sys
@@ -2,7 +2,6 b''
2 # Dump revlogs as raw data stream
2 # Dump revlogs as raw data stream
3 # $ find .hg/store/ -name "*.i" | xargs dumprevlog > repo.dump
3 # $ find .hg/store/ -name "*.i" | xargs dumprevlog > repo.dump
4
4
5 from __future__ import absolute_import, print_function
6
5
7 import sys
6 import sys
8 from mercurial.node import hex
7 from mercurial.node import hex
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import argparse
1 import argparse
4 import zipfile
2 import zipfile
5
3
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import argparse
1 import argparse
4 import os
2 import os
5 import zipfile
3 import zipfile
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import argparse
1 import argparse
4 import zipfile
2 import zipfile
5
3
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import argparse
1 import argparse
4 import zipfile
2 import zipfile
5
3
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import argparse
1 import argparse
4 import os
2 import os
5 import struct
3 import struct
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import argparse
1 import argparse
4 import os
2 import os
5 import zipfile
3 import zipfile
@@ -1,5 +1,4 b''
1 #!/usr/bin/env python2
1 #!/usr/bin/env python2
2 from __future__ import absolute_import, print_function
3
2
4 import argparse
3 import argparse
5 import os
4 import os
@@ -28,7 +28,6 b' command="cd repos && hg-ssh user/thomas/'
28 You can also add a --read-only flag to allow read-only access to a key, e.g.:
28 You can also add a --read-only flag to allow read-only access to a key, e.g.:
29 command="hg-ssh --read-only repos/*"
29 command="hg-ssh --read-only repos/*"
30 """
30 """
31 from __future__ import absolute_import
32
31
33 import os
32 import os
34 import re
33 import re
@@ -1,6 +1,5 b''
1 # A minimal client for Mercurial's command server
1 # A minimal client for Mercurial's command server
2
2
3 from __future__ import absolute_import, print_function
4
3
5 import io
4 import io
6 import os
5 import os
@@ -1,6 +1,5 b''
1 #!/usr/bin/env python3
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import, print_function
4
3
5 import ast
4 import ast
6 import collections
5 import collections
@@ -11,8 +11,6 b' Reads current and peak memory usage from'
11 prints it to ``stderr`` on exit.
11 prints it to ``stderr`` on exit.
12 '''
12 '''
13
13
14 from __future__ import absolute_import
15
16
14
17 def memusage(ui):
15 def memusage(ui):
18 """Report memory usage of the current process."""
16 """Report memory usage of the current process."""
@@ -9,7 +9,6 b''
9 # various plot related to write performance in a revlog
9 # various plot related to write performance in a revlog
10 #
10 #
11 # usage: perf-revlog-write-plot.py details.json
11 # usage: perf-revlog-write-plot.py details.json
12 from __future__ import absolute_import, print_function
13 import json
12 import json
14 import re
13 import re
15
14
@@ -6,7 +6,6 b''
6 # This use a subsetmaker extension (next to this script) to generate a steam of
6 # This use a subsetmaker extension (next to this script) to generate a steam of
7 # random discovery instance. When interesting case are discovered, information
7 # random discovery instance. When interesting case are discovered, information
8 # about them are print on the stdout.
8 # about them are print on the stdout.
9 from __future__ import print_function
10
9
11 import json
10 import json
12 import os
11 import os
@@ -54,7 +54,6 b' Configurations'
54 # - make perf command for recent feature work correctly with early
54 # - make perf command for recent feature work correctly with early
55 # Mercurial
55 # Mercurial
56
56
57 from __future__ import absolute_import
58 import contextlib
57 import contextlib
59 import functools
58 import functools
60 import gc
59 import gc
@@ -3,7 +3,6 b''
3 # A small script to automatically reject idle Diffs
3 # A small script to automatically reject idle Diffs
4 #
4 #
5 # you need to set the PHABBOT_USER and PHABBOT_TOKEN environment variable for authentication
5 # you need to set the PHABBOT_USER and PHABBOT_TOKEN environment variable for authentication
6 from __future__ import absolute_import, print_function
7
6
8 import datetime
7 import datetime
9 import os
8 import os
@@ -1,7 +1,6 b''
1 '''
1 '''
2 Examples of useful python hooks for Mercurial.
2 Examples of useful python hooks for Mercurial.
3 '''
3 '''
4 from __future__ import absolute_import
5 from mercurial import (
4 from mercurial import (
6 patch,
5 patch,
7 util,
6 util,
@@ -4,7 +4,6 b''
4 # This software may be modified and distributed under the terms
4 # This software may be modified and distributed under the terms
5 # of the BSD license. See the LICENSE file for details.
5 # of the BSD license. See the LICENSE file for details.
6
6
7 from __future__ import absolute_import
8
7
9 import cffi
8 import cffi
10 import distutils.ccompiler
9 import distutils.ccompiler
@@ -5,7 +5,6 b''
5 # This software may be modified and distributed under the terms
5 # This software may be modified and distributed under the terms
6 # of the BSD license. See the LICENSE file for details.
6 # of the BSD license. See the LICENSE file for details.
7
7
8 from __future__ import print_function
9
8
10 from distutils.version import LooseVersion
9 from distutils.version import LooseVersion
11 import os
10 import os
@@ -1,5 +1,3 b''
1 from __future__ import unicode_literals
2
3 import unittest
1 import unittest
4
2
5 import zstandard as zstd
3 import zstandard as zstd
@@ -6,7 +6,6 b''
6
6
7 """Python interface to the Zstandard (zstd) compression library."""
7 """Python interface to the Zstandard (zstd) compression library."""
8
8
9 from __future__ import absolute_import, unicode_literals
10
9
11 # This module serves 2 roles:
10 # This module serves 2 roles:
12 #
11 #
@@ -6,7 +6,6 b''
6
6
7 """Python interface to the Zstandard (zstd) compression library."""
7 """Python interface to the Zstandard (zstd) compression library."""
8
8
9 from __future__ import absolute_import, unicode_literals
10
9
11 # This should match what the C extension exports.
10 # This should match what the C extension exports.
12 __all__ = [
11 __all__ = [
@@ -15,8 +15,6 b' You probably want to run it like this:'
15 $ python3 ../contrib/python3-ratchet.py \
15 $ python3 ../contrib/python3-ratchet.py \
16 > --working-tests=../contrib/python3-whitelist
16 > --working-tests=../contrib/python3-whitelist
17 """
17 """
18 from __future__ import print_function
19 from __future__ import absolute_import
20
18
21 import argparse
19 import argparse
22 import json
20 import json
@@ -8,7 +8,6 b''
8 #
8 #
9 # call with --help for details
9 # call with --help for details
10
10
11 from __future__ import absolute_import, print_function
12 import math
11 import math
13 import optparse # cannot use argparse, python 2.7 only
12 import optparse # cannot use argparse, python 2.7 only
14 import os
13 import os
@@ -4,7 +4,6 b''
4 r"""dump stack trace when receiving SIGQUIT (Ctrl-\) or SIGINFO (Ctrl-T on BSDs)
4 r"""dump stack trace when receiving SIGQUIT (Ctrl-\) or SIGINFO (Ctrl-T on BSDs)
5 """
5 """
6
6
7 from __future__ import absolute_import, print_function
8 import signal
7 import signal
9 import sys
8 import sys
10 import traceback
9 import traceback
@@ -1,5 +1,4 b''
1 #!/usr/bin/env python3
1 #!/usr/bin/env python3
2 from __future__ import absolute_import
3
2
4 import getopt
3 import getopt
5 import sys
4 import sys
@@ -36,7 +36,6 b' A few obvious properties that are not cu'
36 - Symlinks and binary files are ignored
36 - Symlinks and binary files are ignored
37 '''
37 '''
38
38
39 from __future__ import absolute_import
40 import bisect
39 import bisect
41 import collections
40 import collections
42 import itertools
41 import itertools
@@ -5,7 +5,6 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 from __future__ import absolute_import, print_function
9
8
10 import abc
9 import abc
11 import re
10 import re
@@ -3,7 +3,6 b''
3 # $ hg init
3 # $ hg init
4 # $ undumprevlog < repo.dump
4 # $ undumprevlog < repo.dump
5
5
6 from __future__ import absolute_import, print_function
7
6
8 import sys
7 import sys
9 from mercurial.node import bin
8 from mercurial.node import bin
@@ -78,7 +78,6 b''
78 # - Restart the web server and see if things are running.
78 # - Restart the web server and see if things are running.
79 #
79 #
80
80
81 from __future__ import absolute_import
82
81
83 # Configuration file location
82 # Configuration file location
84 hgweb_config = r'c:\your\directory\wsgi.config'
83 hgweb_config = r'c:\your\directory\wsgi.config'
@@ -2,7 +2,6 b''
2 #
2 #
3 # checkseclevel - checking section title levels in each online help document
3 # checkseclevel - checking section title levels in each online help document
4
4
5 from __future__ import absolute_import
6
5
7 import optparse
6 import optparse
8 import os
7 import os
@@ -7,7 +7,6 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 from __future__ import absolute_import, print_function
11
10
12 import os
11 import os
13 import re
12 import re
@@ -4,7 +4,6 b''
4 where DOC is the name of a document
4 where DOC is the name of a document
5 """
5 """
6
6
7 from __future__ import absolute_import
8
7
9 import os
8 import os
10 import sys
9 import sys
@@ -41,7 +41,6 b' A unix-like system keeps an index of the'
41 by the command whatis or apropos.
41 by the command whatis or apropos.
42
42
43 """
43 """
44 from __future__ import absolute_import
45
44
46 __docformat__ = 'reStructuredText'
45 __docformat__ = 'reStructuredText'
47
46
@@ -12,7 +12,6 b''
12 where WRITER is the name of a Docutils writer such as 'html' or 'manpage'
12 where WRITER is the name of a Docutils writer such as 'html' or 'manpage'
13 """
13 """
14
14
15 from __future__ import absolute_import
16
15
17 import sys
16 import sys
18
17
@@ -6,7 +6,6 b''
6 #
6 #
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 from __future__ import absolute_import
10
9
11 import os
10 import os
12 import sys
11 import sys
@@ -11,7 +11,6 b''
11 # demand loading is per-package. Keeping demandimport in the mercurial package
11 # demand loading is per-package. Keeping demandimport in the mercurial package
12 # would disable demand loading for any modules in mercurial.
12 # would disable demand loading for any modules in mercurial.
13
13
14 from __future__ import absolute_import
15
14
16 import os
15 import os
17 import sys
16 import sys
@@ -24,7 +24,6 b' These imports will not be delayed:'
24 b = __import__(a)
24 b = __import__(a)
25 '''
25 '''
26
26
27 from __future__ import absolute_import
28
27
29 import __builtin__ as builtins
28 import __builtin__ as builtins
30 import contextlib
29 import contextlib
@@ -24,7 +24,6 b' This also has some limitations compared '
24 """
24 """
25
25
26 # This line is unnecessary, but it satisfies test-check-py3-compat.t.
26 # This line is unnecessary, but it satisfies test-check-py3-compat.t.
27 from __future__ import absolute_import
28
27
29 import contextlib
28 import contextlib
30 import importlib.util
29 import importlib.util
@@ -5,7 +5,6 b''
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 from __future__ import absolute_import
9
8
10 import contextlib
9 import contextlib
11 import os
10 import os
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import
2 import pkgutil
1 import pkgutil
3
2
4 __path__ = pkgutil.extend_path(__path__, __name__)
3 __path__ = pkgutil.extend_path(__path__, __name__)
@@ -31,7 +31,6 b' amend modified chunks into the correspon'
31 # * Converge getdraftstack() with other code in core
31 # * Converge getdraftstack() with other code in core
32 # * move many attributes on fixupstate to be private
32 # * move many attributes on fixupstate to be private
33
33
34 from __future__ import absolute_import
35
34
36 import collections
35 import collections
37
36
@@ -213,7 +213,6 b' 3) Deny access to a file to anyone but u'
213
213
214 '''
214 '''
215
215
216 from __future__ import absolute_import
217
216
218 from mercurial.i18n import _
217 from mercurial.i18n import _
219 from mercurial import (
218 from mercurial import (
@@ -10,7 +10,6 b' This extension provides an ``amend`` com'
10 ``commit --amend`` but does not prompt an editor.
10 ``commit --amend`` but does not prompt an editor.
11 """
11 """
12
12
13 from __future__ import absolute_import
14
13
15 from mercurial.i18n import _
14 from mercurial.i18n import _
16 from mercurial import (
15 from mercurial import (
@@ -24,7 +24,6 b' The threshold at which a file is conside'
24 #
24 #
25 # See http://markmail.org/thread/5pxnljesvufvom57 for context.
25 # See http://markmail.org/thread/5pxnljesvufvom57 for context.
26
26
27 from __future__ import absolute_import
28
27
29 from mercurial.i18n import _
28 from mercurial.i18n import _
30 from mercurial import (
29 from mercurial import (
@@ -11,7 +11,6 b''
11 A terminal with UTF-8 support and monospace narrow text are required.
11 A terminal with UTF-8 support and monospace narrow text are required.
12 '''
12 '''
13
13
14 from __future__ import absolute_import
15
14
16 from mercurial.i18n import _
15 from mercurial.i18n import _
17 from mercurial import (
16 from mercurial import (
@@ -42,7 +42,6 b' Examples::'
42
42
43 """
43 """
44
44
45 from __future__ import absolute_import
46
45
47 import re
46 import re
48
47
@@ -13,7 +13,6 b''
13 :hg up|co NAME: switch to bookmark
13 :hg up|co NAME: switch to bookmark
14 :hg push -B .: push active bookmark
14 :hg push -B .: push active bookmark
15 """
15 """
16 from __future__ import absolute_import
17
16
18 from mercurial.i18n import _
17 from mercurial.i18n import _
19 from mercurial import (
18 from mercurial import (
@@ -291,7 +291,6 b' All the above add a comment to the Bugzi'
291 Changeset commit comment. Bug 1234.
291 Changeset commit comment. Bug 1234.
292 '''
292 '''
293
293
294 from __future__ import absolute_import
295
294
296 import json
295 import json
297 import re
296 import re
@@ -28,7 +28,6 b' A few informative commands such as ``hg '
28 ignore censored data and merely report that it was encountered.
28 ignore censored data and merely report that it was encountered.
29 """
29 """
30
30
31 from __future__ import absolute_import
32
31
33 from mercurial.i18n import _
32 from mercurial.i18n import _
34 from mercurial.node import short
33 from mercurial.node import short
@@ -14,7 +14,6 b' This extension is deprecated. You should'
14 "children(REV)"` instead.
14 "children(REV)"` instead.
15 '''
15 '''
16
16
17 from __future__ import absolute_import
18
17
19 from mercurial.i18n import _
18 from mercurial.i18n import _
20 from mercurial import (
19 from mercurial import (
@@ -8,7 +8,6 b''
8
8
9 '''command to display statistics about repository history'''
9 '''command to display statistics about repository history'''
10
10
11 from __future__ import absolute_import, division
12
11
13 import datetime
12 import datetime
14 import os
13 import os
@@ -202,7 +202,6 b' instructions when a failure occurs, thus'
202 Mercurial server when the bundle hosting service fails.
202 Mercurial server when the bundle hosting service fails.
203 """
203 """
204
204
205 from __future__ import absolute_import
206
205
207 from mercurial import (
206 from mercurial import (
208 bundlecaches,
207 bundlecaches,
@@ -5,7 +5,6 b''
5
5
6 '''close arbitrary heads without checking them out first'''
6 '''close arbitrary heads without checking them out first'''
7
7
8 from __future__ import absolute_import
9
8
10 from mercurial.i18n import _
9 from mercurial.i18n import _
11 from mercurial import (
10 from mercurial import (
@@ -7,7 +7,6 b''
7
7
8 '''adds a new flag extras to commit (ADVANCED)'''
8 '''adds a new flag extras to commit (ADVANCED)'''
9
9
10 from __future__ import absolute_import
11
10
12 import re
11 import re
13
12
@@ -7,7 +7,6 b''
7
7
8 '''import revisions from foreign VCS repositories into Mercurial'''
8 '''import revisions from foreign VCS repositories into Mercurial'''
9
9
10 from __future__ import absolute_import
11
10
12 from mercurial.i18n import _
11 from mercurial.i18n import _
13 from mercurial import registrar
12 from mercurial import registrar
@@ -8,7 +8,6 b''
8 # This module is for handling Breezy imports or `brz`, but it's also compatible
8 # This module is for handling Breezy imports or `brz`, but it's also compatible
9 # with Bazaar or `bzr`, that was formerly known as Bazaar-NG;
9 # with Bazaar or `bzr`, that was formerly known as Bazaar-NG;
10 # it cannot access `bar` repositories, but they were never used very much.
10 # it cannot access `bar` repositories, but they were never used very much.
11 from __future__ import absolute_import
12
11
13 import os
12 import os
14
13
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import base64
8 import base64
10 import datetime
9 import datetime
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import collections
8 import collections
10 import os
9 import os
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import errno
8 import errno
10 import os
9 import os
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import functools
8 import functools
10 import os
9 import os
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import errno
8 import errno
10 import os
9 import os
@@ -4,7 +4,6 b''
4 # This software may be used and distributed according to the terms of the
4 # This software may be used and distributed according to the terms of the
5 # GNU General Public License version 2 or any later version.
5 # GNU General Public License version 2 or any later version.
6
6
7 from __future__ import absolute_import, print_function
8
7
9 import posixpath
8 import posixpath
10
9
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import os
8 import os
10
9
@@ -5,7 +5,6 b''
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 from __future__ import absolute_import
9
8
10 import os
9 import os
11 import shutil
10 import shutil
@@ -16,7 +16,6 b''
16 # identifier to be stored in the converted revision. This will cause
16 # identifier to be stored in the converted revision. This will cause
17 # the converted revision to have a different identity than the
17 # the converted revision to have a different identity than the
18 # source.
18 # source.
19 from __future__ import absolute_import
20
19
21 import os
20 import os
22 import re
21 import re
@@ -5,7 +5,6 b''
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 from __future__ import absolute_import
9
8
10 import os
9 import os
11 import re
10 import re
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import marshal
8 import marshal
10 import re
9 import re
@@ -1,7 +1,6 b''
1 # Subversion 1.4/1.5 Python API backend
1 # Subversion 1.4/1.5 Python API backend
2 #
2 #
3 # Copyright(C) 2007 Daniel Holth et al
3 # Copyright(C) 2007 Daniel Holth et al
4 from __future__ import absolute_import
5
4
6 import codecs
5 import codecs
7 import locale
6 import locale
@@ -16,7 +16,6 b''
16
16
17 # You should have received a copy of the GNU General Public License
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, see <http://www.gnu.org/licenses/>.
18 # along with this program; if not, see <http://www.gnu.org/licenses/>.
19 from __future__ import absolute_import
20
19
21 import svn.client
20 import svn.client
22 import svn.core
21 import svn.core
@@ -91,7 +91,6 b' See :hg:`help patterns` for more informa'
91 used.
91 used.
92 """
92 """
93
93
94 from __future__ import absolute_import
95
94
96 import os
95 import os
97 import re
96 import re
@@ -81,7 +81,6 b' needed files, so running the external di'
81 pretty fast (at least faster than having to compare the entire tree).
81 pretty fast (at least faster than having to compare the entire tree).
82 '''
82 '''
83
83
84 from __future__ import absolute_import
85
84
86 import os
85 import os
87 import re
86 import re
@@ -45,7 +45,6 b' service entry controls the service name '
45
45
46 '''
46 '''
47
47
48 from __future__ import absolute_import
49
48
50 import os
49 import os
51 from mercurial.i18n import _
50 from mercurial.i18n import _
@@ -101,7 +101,6 b' annotate cache greatly. Run "debugbuildl'
101 #
101 #
102 # * format changes to the revmap file (maybe use length-encoding
102 # * format changes to the revmap file (maybe use length-encoding
103 # instead of null-terminated file paths at least?)
103 # instead of null-terminated file paths at least?)
104 from __future__ import absolute_import
105
104
106 from mercurial.i18n import _
105 from mercurial.i18n import _
107 from mercurial import (
106 from mercurial import (
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import os
9 import os
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import collections
9 import collections
11 import contextlib
10 import contextlib
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9
8
10 class CorruptedFileError(Exception):
9 class CorruptedFileError(Exception):
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 from mercurial.node import (
8 from mercurial.node import (
10 hex,
9 hex,
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import contextlib
8 import contextlib
10 import os
9 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import bisect
9 import bisect
11 import io
10 import io
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from mercurial.pycompat import getattr
9 from mercurial.pycompat import getattr
11 from mercurial import (
10 from mercurial import (
@@ -7,7 +7,6 b''
7 # The format specification for fast-import streams can be found at
7 # The format specification for fast-import streams can be found at
8 # https://git-scm.com/docs/git-fast-import#_input_format
8 # https://git-scm.com/docs/git-fast-import#_input_format
9
9
10 from __future__ import absolute_import
11 import re
10 import re
12
11
13 from mercurial.i18n import _
12 from mercurial.i18n import _
@@ -7,7 +7,6 b''
7
7
8 '''pull, update and merge in one command (DEPRECATED)'''
8 '''pull, update and merge in one command (DEPRECATED)'''
9
9
10 from __future__ import absolute_import
11
10
12 from mercurial.i18n import _
11 from mercurial.i18n import _
13 from mercurial.node import short
12 from mercurial.node import short
@@ -122,7 +122,6 b' amended into the revision being fixed; f'
122 file content back to stdout as documented above.
122 file content back to stdout as documented above.
123 """
123 """
124
124
125 from __future__ import absolute_import
126
125
127 import collections
126 import collections
128 import itertools
127 import itertools
@@ -107,7 +107,6 b' created.'
107 # The issues related to nested repos and subrepos are probably not fundamental
107 # The issues related to nested repos and subrepos are probably not fundamental
108 # ones. Patches to fix them are welcome.
108 # ones. Patches to fix them are welcome.
109
109
110 from __future__ import absolute_import
111
110
112 import codecs
111 import codecs
113 import os
112 import os
@@ -27,7 +27,6 b''
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
29 # no unicode literals
29 # no unicode literals
30 from __future__ import absolute_import, division, print_function
31
30
32 import inspect
31 import inspect
33 import math
32 import math
@@ -27,7 +27,6 b''
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
29 # no unicode literals
29 # no unicode literals
30 from __future__ import absolute_import, division, print_function
31
30
32
31
33 def parse_version(vstr):
32 def parse_version(vstr):
@@ -27,7 +27,6 b''
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
29 # no unicode literals
29 # no unicode literals
30 from __future__ import absolute_import, division, print_function
31
30
32 import sys
31 import sys
33
32
@@ -27,7 +27,6 b''
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
29 # no unicode literals
29 # no unicode literals
30 from __future__ import absolute_import, division, print_function
31
30
32 import sys
31 import sys
33
32
@@ -27,7 +27,6 b''
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
29 # no unicode literals
29 # no unicode literals
30 from __future__ import absolute_import, division, print_function
31
30
32 import ctypes
31 import ctypes
33
32
@@ -27,7 +27,6 b''
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
29 # no unicode literals
29 # no unicode literals
30 from __future__ import absolute_import, division, print_function
31
30
32 import binascii
31 import binascii
33 import collections
32 import collections
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import os
10 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import getpass
9 import getpass
11
10
@@ -4,7 +4,6 b' This is currently super experimental. It'
4 firstborn a la Rumpelstiltskin, etc.
4 firstborn a la Rumpelstiltskin, etc.
5 """
5 """
6
6
7 from __future__ import absolute_import
8
7
9 import os
8 import os
10
9
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import contextlib
1 import contextlib
4 import errno
2 import errno
5 import os
3 import os
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 from mercurial.i18n import _
1 from mercurial.i18n import _
4
2
5 from mercurial.node import (
3 from mercurial.node import (
@@ -1,5 +1,4 b''
1 """utilities to assist in working with pygit2"""
1 """utilities to assist in working with pygit2"""
2 from __future__ import absolute_import
3
2
4 from mercurial.node import bin, hex, sha1nodeconstants
3 from mercurial.node import bin, hex, sha1nodeconstants
5
4
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import collections
1 import collections
4 import os
2 import os
5 import sqlite3
3 import sqlite3
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 from mercurial import (
1 from mercurial import (
4 match as matchmod,
2 match as matchmod,
5 pathutil,
3 pathutil,
@@ -15,7 +15,6 b' If an unknown command or parameter combi'
15 produced.
15 produced.
16 """
16 """
17
17
18 from __future__ import absolute_import
19
18
20 import getopt
19 import getopt
21 import re
20 import re
@@ -5,7 +5,6 b''
5
5
6 '''commands to sign and verify changesets'''
6 '''commands to sign and verify changesets'''
7
7
8 from __future__ import absolute_import
9
8
10 import binascii
9 import binascii
11 import os
10 import os
@@ -15,7 +15,6 b' commands. When this options is given, an'
15 revision graph is also shown.
15 revision graph is also shown.
16 '''
16 '''
17
17
18 from __future__ import absolute_import
19
18
20 from mercurial.i18n import _
19 from mercurial.i18n import _
21 from mercurial import (
20 from mercurial import (
@@ -34,7 +34,6 b' Revisions context menu will now display '
34 vdiff on hovered and selected revisions.
34 vdiff on hovered and selected revisions.
35 '''
35 '''
36
36
37 from __future__ import absolute_import
38
37
39 import os
38 import os
40
39
@@ -26,7 +26,6 b' Pygments will try very hard to identify '
26 match (even matches with a low confidence score) will be used.
26 match (even matches with a low confidence score) will be used.
27 """
27 """
28
28
29 from __future__ import absolute_import
30
29
31 from . import highlight
30 from . import highlight
32 from mercurial.hgweb import (
31 from mercurial.hgweb import (
@@ -8,7 +8,6 b''
8 # The original module was split in an interface and an implementation
8 # The original module was split in an interface and an implementation
9 # file to defer pygments loading and speedup extension setup.
9 # file to defer pygments loading and speedup extension setup.
10
10
11 from __future__ import absolute_import
12
11
13 from mercurial import demandimport
12 from mercurial import demandimport
14
13
@@ -190,7 +190,6 b' unexpectedly::'
190
190
191 """
191 """
192
192
193 from __future__ import absolute_import
194
193
195 # chistedit dependencies that are not available everywhere
194 # chistedit dependencies that are not available everywhere
196 try:
195 try:
@@ -13,7 +13,6 b' implement them as individual hooks or me'
13 extension as option. The functionality itself is planned to be supported
13 extension as option. The functionality itself is planned to be supported
14 long-term.
14 long-term.
15 """
15 """
16 from __future__ import absolute_import
17 from . import (
16 from . import (
18 changeset_obsoleted,
17 changeset_obsoleted,
19 changeset_published,
18 changeset_published,
@@ -17,7 +17,6 b' Usage:'
17 python:hgext.hooklib.changeset_obsoleted.hook
17 python:hgext.hooklib.changeset_obsoleted.hook
18 """
18 """
19
19
20 from __future__ import absolute_import
21
20
22 import email.errors as emailerrors
21 import email.errors as emailerrors
23 import email.utils as emailutils
22 import email.utils as emailutils
@@ -17,7 +17,6 b' Usage:'
17 python:hgext.hooklib.changeset_published.hook
17 python:hgext.hooklib.changeset_published.hook
18 """
18 """
19
19
20 from __future__ import absolute_import
21
20
22 import email.errors as emailerrors
21 import email.errors as emailerrors
23 import email.utils as emailutils
22 import email.utils as emailutils
@@ -14,7 +14,6 b' Usage:'
14 python:hgext.hooklib.enforce_draft_commits.hook
14 python:hgext.hooklib.enforce_draft_commits.hook
15 """
15 """
16
16
17 from __future__ import absolute_import
18
17
19 from mercurial.i18n import _
18 from mercurial.i18n import _
20 from mercurial import (
19 from mercurial import (
@@ -14,7 +14,6 b' Usage:'
14 python:hgext.hooklib.reject_merge_commits.hook
14 python:hgext.hooklib.reject_merge_commits.hook
15 """
15 """
16
16
17 from __future__ import absolute_import
18
17
19 from mercurial.i18n import _
18 from mercurial.i18n import _
20 from mercurial import (
19 from mercurial import (
@@ -14,7 +14,6 b' Usage:'
14 python:hgext.hooklib.reject_new_heads.hook
14 python:hgext.hooklib.reject_new_heads.hook
15 """
15 """
16
16
17 from __future__ import absolute_import
18
17
19 from mercurial.i18n import _
18 from mercurial.i18n import _
20 from mercurial import (
19 from mercurial import (
@@ -87,7 +87,6 b' delete this code at the end of 2020.'
87 bookmarks = True
87 bookmarks = True
88 """
88 """
89
89
90 from __future__ import absolute_import
91
90
92 import collections
91 import collections
93 import contextlib
92 import contextlib
@@ -3,7 +3,6 b''
3 # This software may be used and distributed according to the terms of the
3 # This software may be used and distributed according to the terms of the
4 # GNU General Public License version 2 or any later version.
4 # GNU General Public License version 2 or any later version.
5
5
6 from __future__ import absolute_import
7
6
8 from mercurial.i18n import _
7 from mercurial.i18n import _
9 from mercurial.node import hex
8 from mercurial.node import hex
@@ -3,7 +3,6 b''
3 # This software may be used and distributed according to the terms of the
3 # This software may be used and distributed according to the terms of the
4 # GNU General Public License version 2 or any later version.
4 # GNU General Public License version 2 or any later version.
5
5
6 from __future__ import absolute_import
7
6
8 import os
7 import os
9
8
@@ -11,7 +11,6 b''
11 indexpath = PATH
11 indexpath = PATH
12 """
12 """
13
13
14 from __future__ import absolute_import
15
14
16 import os
15 import os
17
16
@@ -5,8 +5,6 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 from __future__ import absolute_import
9
10
8
11 class indexapi(object):
9 class indexapi(object):
12 """Class that manages access to infinitepush index.
10 """Class that manages access to infinitepush index.
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import logging
9 import logging
11 import os
10 import os
@@ -3,7 +3,6 b''
3
3
4 # based on bundleheads extension by Gregory Szorc <gps@mozilla.com>
4 # based on bundleheads extension by Gregory Szorc <gps@mozilla.com>
5
5
6 from __future__ import absolute_import
7
6
8 import abc
7 import abc
9 import os
8 import os
@@ -11,7 +11,6 b' bookmarks were previously located.'
11
11
12 """
12 """
13
13
14 from __future__ import absolute_import
15
14
16 import collections
15 import collections
17 import errno
16 import errno
@@ -83,8 +83,6 b" like CVS' $Log$, are not supported. A ke"
83 '''
83 '''
84
84
85
85
86 from __future__ import absolute_import
87
88 import os
86 import os
89 import re
87 import re
90 import weakref
88 import weakref
@@ -104,7 +104,6 b' largefile. To add the first largefile to'
104 explicitly do so with the --large flag passed to the :hg:`add`
104 explicitly do so with the --large flag passed to the :hg:`add`
105 command.
105 command.
106 '''
106 '''
107 from __future__ import absolute_import
108
107
109 from mercurial import (
108 from mercurial import (
110 cmdutil,
109 cmdutil,
@@ -7,7 +7,6 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 '''base class for store implementations and store-related utility code'''
9 '''base class for store implementations and store-related utility code'''
10 from __future__ import absolute_import
11
10
12 from mercurial.i18n import _
11 from mercurial.i18n import _
13
12
@@ -7,7 +7,6 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 '''High-level command function for lfconvert, plus the cmdtable.'''
9 '''High-level command function for lfconvert, plus the cmdtable.'''
10 from __future__ import absolute_import
11
10
12 import errno
11 import errno
13 import os
12 import os
@@ -7,7 +7,6 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 '''largefiles utility code: must not import other modules in this package.'''
9 '''largefiles utility code: must not import other modules in this package.'''
10 from __future__ import absolute_import
11
10
12 import contextlib
11 import contextlib
13 import copy
12 import copy
@@ -7,7 +7,6 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 '''store class for local filesystem'''
9 '''store class for local filesystem'''
10 from __future__ import absolute_import
11
10
12 from mercurial.i18n import _
11 from mercurial.i18n import _
13 from mercurial.pycompat import open
12 from mercurial.pycompat import open
@@ -7,7 +7,6 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 '''Overridden Mercurial commands and functions for the largefiles extension'''
9 '''Overridden Mercurial commands and functions for the largefiles extension'''
10 from __future__ import absolute_import
11
10
12 import copy
11 import copy
13 import os
12 import os
@@ -2,7 +2,6 b''
2 #
2 #
3 # This software may be used and distributed according to the terms of the
3 # This software may be used and distributed according to the terms of the
4 # GNU General Public License version 2 or any later version.
4 # GNU General Public License version 2 or any later version.
5 from __future__ import absolute_import
6
5
7 import os
6 import os
8
7
@@ -5,7 +5,6 b''
5 # GNU General Public License version 2 or any later version.
5 # GNU General Public License version 2 or any later version.
6
6
7 '''remote largefile store; the base class for wirestore'''
7 '''remote largefile store; the base class for wirestore'''
8 from __future__ import absolute_import
9
8
10 from mercurial.i18n import _
9 from mercurial.i18n import _
11
10
@@ -7,7 +7,6 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 '''setup for largefiles repositories: reposetup'''
9 '''setup for largefiles repositories: reposetup'''
10 from __future__ import absolute_import
11
10
12 import copy
11 import copy
13
12
@@ -1,7 +1,6 b''
1 # This software may be used and distributed according to the terms of the
1 # This software may be used and distributed according to the terms of the
2 # GNU General Public License version 2 or any later version.
2 # GNU General Public License version 2 or any later version.
3
3
4 from __future__ import absolute_import
5
4
6 import re
5 import re
7
6
@@ -4,7 +4,6 b''
4 # GNU General Public License version 2 or any later version.
4 # GNU General Public License version 2 or any later version.
5
5
6 '''largefile store working over Mercurial's wire protocol'''
6 '''largefile store working over Mercurial's wire protocol'''
7 from __future__ import absolute_import
8
7
9 from . import (
8 from . import (
10 lfutil,
9 lfutil,
@@ -120,7 +120,6 b' Configs::'
120 usercache = /path/to/global/cache
120 usercache = /path/to/global/cache
121 """
121 """
122
122
123 from __future__ import absolute_import
124
123
125 import sys
124 import sys
126
125
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import contextlib
9 import contextlib
11 import errno
10 import errno
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import re
9 import re
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import datetime
9 import datetime
11 import errno
10 import errno
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import hashlib
9 import hashlib
11
10
@@ -32,7 +32,6 b' not ensure that they exit cleanly.'
32
32
33 """
33 """
34
34
35 from __future__ import absolute_import
36
35
37 import os
36 import os
38
37
@@ -62,7 +62,6 b' This extension used to provide a strip c'
62 in the strip extension.
62 in the strip extension.
63 '''
63 '''
64
64
65 from __future__ import absolute_import, print_function
66
65
67 import errno
66 import errno
68 import os
67 import os
@@ -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 '''create clones which fetch history data for subset of files (EXPERIMENTAL)'''
7 '''create clones which fetch history data for subset of files (EXPERIMENTAL)'''
8
8
9 from __future__ import absolute_import
10
9
11 from mercurial import (
10 from mercurial import (
12 localrepo,
11 localrepo,
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import struct
10 import struct
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import itertools
8 import itertools
10 import os
9 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from mercurial.i18n import _
9 from mercurial.i18n import _
11 from mercurial import error
10 from mercurial import error
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from mercurial import wireprototypes
9 from mercurial import wireprototypes
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from mercurial import (
9 from mercurial import (
11 registrar,
10 registrar,
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from mercurial import (
9 from mercurial import (
11 bundle2,
10 bundle2,
@@ -154,7 +154,6 b' web.baseurl'
154 references. See also ``notify.strip``.
154 references. See also ``notify.strip``.
155
155
156 '''
156 '''
157 from __future__ import absolute_import
158
157
159 import email.errors as emailerrors
158 import email.errors as emailerrors
160 import email.utils as emailutils
159 import email.utils as emailutils
@@ -21,7 +21,6 b' takes precedence over ignore options and'
21 [pager]
21 [pager]
22 attend-cat = false
22 attend-cat = false
23 '''
23 '''
24 from __future__ import absolute_import
25
24
26 from mercurial import (
25 from mercurial import (
27 cmdutil,
26 cmdutil,
@@ -71,7 +71,6 b' specified by --flag option are exported '
71 You can set patchbomb to always ask for confirmation by setting
71 You can set patchbomb to always ask for confirmation by setting
72 ``patchbomb.confirm`` to true.
72 ``patchbomb.confirm`` to true.
73 '''
73 '''
74 from __future__ import absolute_import
75
74
76 import email.encoders as emailencoders
75 import email.encoders as emailencoders
77 import email.mime.base as emimebase
76 import email.mime.base as emimebase
@@ -57,7 +57,6 b' Config::'
57 example.phabtoken = cli-xxxxxxxxxxxxxxxxxxxxxxxxxxxx
57 example.phabtoken = cli-xxxxxxxxxxxxxxxxxxxxxxxxxxxx
58 """
58 """
59
59
60 from __future__ import absolute_import
61
60
62 import base64
61 import base64
63 import contextlib
62 import contextlib
@@ -14,7 +14,6 b' For more information:'
14 https://mercurial-scm.org/wiki/RebaseExtension
14 https://mercurial-scm.org/wiki/RebaseExtension
15 '''
15 '''
16
16
17 from __future__ import absolute_import
18
17
19 import errno
18 import errno
20 import os
19 import os
@@ -10,7 +10,6 b''
10 The feature provided by this extension has been moved into core Mercurial as
10 The feature provided by this extension has been moved into core Mercurial as
11 :hg:`commit --interactive`.'''
11 :hg:`commit --interactive`.'''
12
12
13 from __future__ import absolute_import
14
13
15 from mercurial.i18n import _
14 from mercurial.i18n import _
16 from mercurial import (
15 from mercurial import (
@@ -11,7 +11,6 b' The :hg:`releasenotes` command provided '
11 process simpler by automating it.
11 process simpler by automating it.
12 """
12 """
13
13
14 from __future__ import absolute_import
15
14
16 import difflib
15 import difflib
17 import errno
16 import errno
@@ -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 """recreates hardlinks between repository clones"""
8 """recreates hardlinks between repository clones"""
9 from __future__ import absolute_import
10
9
11 import os
10 import os
12 import stat
11 import stat
@@ -124,7 +124,6 b' Configs:'
124 corruption before returning metadata
124 corruption before returning metadata
125
125
126 """
126 """
127 from __future__ import absolute_import
128
127
129 import os
128 import os
130 import time
129 import time
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import collections
1 import collections
4 import errno
2 import errno
5 import mmap
3 import mmap
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import errno
1 import errno
4 import os
2 import os
5 import shutil
3 import shutil
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from mercurial import (
9 from mercurial import (
11 hg,
10 hg,
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import struct
1 import struct
4
2
5 from mercurial.i18n import _
3 from mercurial.i18n import _
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import threading
1 import threading
4
2
5 from mercurial.node import (
3 from mercurial.node import (
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import struct
1 import struct
4 import zlib
2 import zlib
5
3
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import os
8 import os
10 import zlib
9 import zlib
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import io
9 import io
11 import os
10 import os
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import struct
1 import struct
4
2
5 from mercurial.node import (
3 from mercurial.node import (
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 from mercurial.node import (
1 from mercurial.node import (
4 hex,
2 hex,
5 sha1nodeconstants,
3 sha1nodeconstants,
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import collections
8 import collections
10 import time
9 import time
@@ -5,7 +5,6 b''
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 from __future__ import absolute_import
9
8
10 import collections
9 import collections
11 import os
10 import os
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import errno
8 import errno
10 import os
9 import os
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import os
1 import os
4 import time
2 import time
5
3
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 from mercurial.i18n import _
8 from mercurial.i18n import _
10 from mercurial.node import bin, hex
9 from mercurial.node import bin, hex
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import os
8 import os
10
9
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9
8
10 def wrapstore(store):
9 def wrapstore(store):
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import collections
8 import collections
10 import errno
9 import errno
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 from mercurial.i18n import _
8 from mercurial.i18n import _
10 from mercurial import verify
9 from mercurial import verify
@@ -24,7 +24,6 b' remotenames.hoistedpeer'
24 namespace (default: 'default')
24 namespace (default: 'default')
25 """
25 """
26
26
27 from __future__ import absolute_import
28
27
29 from mercurial.i18n import _
28 from mercurial.i18n import _
30
29
@@ -39,7 +39,6 b' For convenience, the extension adds thes'
39 You can override a predefined scheme by defining a new scheme with the
39 You can override a predefined scheme by defining a new scheme with the
40 same name.
40 same name.
41 """
41 """
42 from __future__ import absolute_import
43
42
44 import os
43 import os
45 import re
44 import re
@@ -65,7 +65,6 b' The following ``share.`` config options '
65 and there are no untracked files, delete that share and create a new share.
65 and there are no untracked files, delete that share and create a new share.
66 '''
66 '''
67
67
68 from __future__ import absolute_import
69
68
70 import errno
69 import errno
71 from mercurial.i18n import _
70 from mercurial.i18n import _
@@ -25,7 +25,6 b' The following config options can influen'
25 performed.
25 performed.
26 """
26 """
27
27
28 from __future__ import absolute_import
29
28
30 from mercurial.i18n import _
29 from mercurial.i18n import _
31 from mercurial.node import nullrev
30 from mercurial.node import nullrev
@@ -71,7 +71,6 b' certain files::'
71 tools/tests/**
71 tools/tests/**
72 """
72 """
73
73
74 from __future__ import absolute_import
75
74
76 from mercurial.i18n import _
75 from mercurial.i18n import _
77 from mercurial.pycompat import setattr
76 from mercurial.pycompat import setattr
@@ -7,7 +7,6 b''
7 # GNU General Public License version 2 or any later version.
7 # GNU General Public License version 2 or any later version.
8 """command to split a changeset into smaller ones (EXPERIMENTAL)"""
8 """command to split a changeset into smaller ones (EXPERIMENTAL)"""
9
9
10 from __future__ import absolute_import
11
10
12 from mercurial.i18n import _
11 from mercurial.i18n import _
13
12
@@ -43,7 +43,6 b' option to ``sqlite`` to enable new repos'
43 # --extra-config-opt extensions.sqlitestore= \
43 # --extra-config-opt extensions.sqlitestore= \
44 # --extra-config-opt storage.new-repo-backend=sqlite
44 # --extra-config-opt storage.new-repo-backend=sqlite
45
45
46 from __future__ import absolute_import
47
46
48 import sqlite3
47 import sqlite3
49 import struct
48 import struct
@@ -6,7 +6,6 b' since version 5.7. Please use :hg:`debug'
6 This extension allows you to strip changesets and all their descendants from the
6 This extension allows you to strip changesets and all their descendants from the
7 repository. See the command help for details.
7 repository. See the command help for details.
8 """
8 """
9 from __future__ import absolute_import
10
9
11 from mercurial import commands
10 from mercurial import commands
12
11
@@ -13,7 +13,6 b' possibly in another repository. The tran'
13 Transplanted patches are recorded in .hg/transplant/transplants, as a
13 Transplanted patches are recorded in .hg/transplant/transplants, as a
14 map from a changeset hash to its hash in the source repository.
14 map from a changeset hash to its hash in the source repository.
15 '''
15 '''
16 from __future__ import absolute_import
17
16
18 import os
17 import os
19
18
@@ -17,7 +17,6 b' removed in the changeset will be left un'
17 added and removed in the working directory.
17 added and removed in the working directory.
18 """
18 """
19
19
20 from __future__ import absolute_import
21
20
22 from mercurial.i18n import _
21 from mercurial.i18n import _
23
22
@@ -44,7 +44,6 b' You can specify the encoding by config o'
44
44
45 It is useful for the users who want to commit with UTF-8 log message.
45 It is useful for the users who want to commit with UTF-8 log message.
46 '''
46 '''
47 from __future__ import absolute_import
48
47
49 import os
48 import os
50 import sys
49 import sys
@@ -41,7 +41,6 b' pushed or pulled::'
41 # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
41 # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
42 '''
42 '''
43
43
44 from __future__ import absolute_import
45
44
46 import re
45 import re
47 from mercurial.i18n import _
46 from mercurial.i18n import _
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 """ Multicast DNS Service Discovery for Python, v0.12
1 """ Multicast DNS Service Discovery for Python, v0.12
4 Copyright (C) 2003, Paul Scott-Murphy
2 Copyright (C) 2003, Paul Scott-Murphy
5
3
@@ -22,7 +22,6 b' You can discover Zeroconf-enabled reposi'
22 $ hg paths
22 $ hg paths
23 zc-test = http://example.com:8000/test
23 zc-test = http://example.com:8000/test
24 '''
24 '''
25 from __future__ import absolute_import
26
25
27 import os
26 import os
28 import socket
27 import socket
@@ -1,5 +1,4 b''
1 # name space package to host third party extensions
1 # name space package to host third party extensions
2 from __future__ import absolute_import
3 import pkgutil
2 import pkgutil
4
3
5 __path__ = pkgutil.extend_path(__path__, __name__)
4 __path__ = pkgutil.extend_path(__path__, __name__)
@@ -1,7 +1,6 b''
1 #!/usr/bin/env python3
1 #!/usr/bin/env python3
2 #
2 #
3 # check-translation.py - check Mercurial specific translation problems
3 # check-translation.py - check Mercurial specific translation problems
4 from __future__ import absolute_import
5
4
6 import re
5 import re
7
6
@@ -20,7 +20,6 b' Use xgettext like normal to extract stri'
20 join the message cataloges to get the final catalog.
20 join the message cataloges to get the final catalog.
21 """
21 """
22
22
23 from __future__ import absolute_import, print_function
24
23
25 import inspect
24 import inspect
26 import os
25 import os
@@ -13,7 +13,6 b' modify entries, comments or metadata, et'
13 :func:`~polib.mofile` convenience functions.
13 :func:`~polib.mofile` convenience functions.
14 """
14 """
15
15
16 from __future__ import absolute_import
17
16
18 __author__ = 'David Jean Louis <izimobil@gmail.com>'
17 __author__ = 'David Jean Louis <izimobil@gmail.com>'
19 __version__ = '1.0.7'
18 __version__ = '1.0.7'
@@ -5,7 +5,6 b''
5 # license: MIT/X11/Expat
5 # license: MIT/X11/Expat
6 #
6 #
7
7
8 from __future__ import absolute_import, print_function
9
8
10 import polib
9 import polib
11 import re
10 import re
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 # Allow 'from mercurial import demandimport' to keep working.
9 # Allow 'from mercurial import demandimport' to keep working.
11 import hgdemandimport
10 import hgdemandimport
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import heapq
9 import heapq
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import gzip
9 import gzip
11 import os
10 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import struct
10 import struct
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import struct
9 import struct
11
10
@@ -145,7 +145,6 b' future, dropping the stream may become a'
145 preserve.
145 preserve.
146 """
146 """
147
147
148 from __future__ import absolute_import, division
149
148
150 import collections
149 import collections
151 import errno
150 import errno
@@ -11,7 +11,6 b' This provides a read-only repository int'
11 were part of the actual repository.
11 were part of the actual repository.
12 """
12 """
13
13
14 from __future__ import absolute_import
15
14
16 import os
15 import os
17 import shutil
16 import shutil
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 from . import repoview
8 from . import repoview
10
9
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import struct
9 import struct
11
10
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import cffi
1 import cffi
4 import os
2 import os
5
3
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from ..pure.mpatch import *
9 from ..pure.mpatch import *
11 from ..pure.mpatch import mpatchError # silence pyflakes
10 from ..pure.mpatch import mpatchError # silence pyflakes
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import cffi
1 import cffi
4 import os
2 import os
5
3
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import os
9 import os
11 import stat as statmod
10 import stat as statmod
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import cffi
1 import cffi
4
2
5 ffi = cffi.FFI()
3 ffi = cffi.FFI()
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import os
9 import os
11 import struct
10 import struct
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11 from .node import (
10 from .node import (
@@ -39,7 +39,6 b' Config'
39 skiphash = False
39 skiphash = False
40 """
40 """
41
41
42 from __future__ import absolute_import
43
42
44 import inspect
43 import inspect
45 import os
44 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import copy as copymod
9 import copy as copymod
11 import errno
10 import errno
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import re
9 import re
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import os
10 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import gc
10 import gc
@@ -3,7 +3,6 b''
3 # This software may be used and distributed according to the terms of the
3 # This software may be used and distributed according to the terms of the
4 # GNU General Public License version 2 or any later version.
4 # GNU General Public License version 2 or any later version.
5
5
6 from __future__ import absolute_import
7
6
8 import errno
7 import errno
9
8
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import os
10 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import functools
9 import functools
11 import re
10 import re
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import filecmp
10 import filecmp
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import collections
10 import collections
12 import os
11 import os
@@ -8,7 +8,6 b''
8 # This code is based on the Mark Edgington's crecord extension.
8 # This code is based on the Mark Edgington's crecord extension.
9 # (Itself based on Bryan O'Sullivan's record extension.)
9 # (Itself based on Bryan O'Sullivan's record extension.)
10
10
11 from __future__ import absolute_import
12
11
13 import os
12 import os
14 import re
13 import re
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import heapq
9 import heapq
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import re
9 import re
11 import string
10 import string
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import binascii
9 import binascii
11 import codecs
10 import codecs
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11 from . import bookmarks, error, obsutil, scmutil, stack
10 from . import bookmarks, error, obsutil, scmutil, stack
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11
10
@@ -7,7 +7,6 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 from __future__ import absolute_import
11
10
12 from .i18n import _
11 from .i18n import _
13
12
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import collections
9 import collections
11 import contextlib
10 import contextlib
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import os
9 import os
11 from .i18n import _
10 from .i18n import _
@@ -3,7 +3,6 b''
3 # This software may be used and distributed according to the terms of the
3 # This software may be used and distributed according to the terms of the
4 # GNU General Public License version 2 or any later version.
4 # GNU General Public License version 2 or any later version.
5
5
6 from __future__ import absolute_import
7
6
8 import errno
7 import errno
9
8
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import struct
9 import struct
11
10
@@ -3,7 +3,6 b''
3 # This software may be used and distributed according to the terms of the
3 # This software may be used and distributed according to the terms of the
4 # GNU General Public License version 2 or any later version.
4 # GNU General Public License version 2 or any later version.
5
5
6 from __future__ import absolute_import
7
6
8 import functools
7 import functools
9 import os
8 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import struct
9 import struct
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import functools
9 import functools
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import, print_function
9
8
10 import errno
9 import errno
11 import getopt
10 import getopt
@@ -5,7 +5,6 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 from __future__ import absolute_import, print_function
9
8
10 import locale
9 import locale
11 import os
10 import os
@@ -11,7 +11,6 b' This allows us to catch exceptions at hi'
11 imports.
11 imports.
12 """
12 """
13
13
14 from __future__ import absolute_import
15
14
16 import difflib
15 import difflib
17
16
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import collections
9 import collections
11 import weakref
10 import weakref
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import ast
9 import ast
11 import collections
10 import collections
@@ -9,7 +9,6 b''
9 ### Extension helper ###
9 ### Extension helper ###
10 #####################################################################
10 #####################################################################
11
11
12 from __future__ import absolute_import
13
12
14 from . import (
13 from . import (
15 commands,
14 commands,
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import abc
9 import abc
11 import functools
10 import functools
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11 from .node import nullrev
10 from .node import nullrev
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import contextlib
9 import contextlib
11 import os
10 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import re
10 import re
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11 from .pycompat import getattr
10 from .pycompat import getattr
@@ -105,7 +105,6 b' bar'
105 baz: foo, bar
105 baz: foo, bar
106 """
106 """
107
107
108 from __future__ import absolute_import, print_function
109
108
110 import contextlib
109 import contextlib
111 import itertools
110 import itertools
@@ -17,7 +17,6 b' context of the graph returned. Type is a'
17 Data depends on type.
17 Data depends on type.
18 """
18 """
19
19
20 from __future__ import absolute_import
21
20
22 from .node import nullrev
21 from .node import nullrev
23 from .thirdparty import attr
22 from .thirdparty import attr
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import difflib
9 import difflib
11 import errno
10 import errno
@@ -8,7 +8,6 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 from __future__ import absolute_import
12
11
13 import collections
12 import collections
14 import contextlib
13 import contextlib
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import itertools
9 import itertools
11 import re
10 import re
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import errno
10 import errno
12 import os
11 import os
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import os
10 import os
12
11
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import base64
10 import base64
12 import errno
11 import errno
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import contextlib
10 import contextlib
12 import os
11 import os
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import gc
10 import gc
12 import os
11 import os
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 # import wsgiref.validate
10 # import wsgiref.validate
12
11
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import errno
10 import errno
12 import importlib
11 import importlib
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import copy
9 import copy
11 import mimetypes
10 import mimetypes
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import copy
10 import copy
12 import difflib
11 import difflib
@@ -8,7 +8,6 b''
8 # This was originally copied from the public domain code at
8 # This was originally copied from the public domain code at
9 # http://www.python.org/dev/peps/pep-0333/#the-server-gateway-side
9 # http://www.python.org/dev/peps/pep-0333/#the-server-gateway-side
10
10
11 from __future__ import absolute_import
12
11
13 import os
12 import os
14
13
@@ -9,7 +9,6 b' written by Barry Warsaw.'
9
9
10 # Regular expression that matches `special' characters in parameters, the
10 # Regular expression that matches `special' characters in parameters, the
11 # existence of which force quoting of the parameter value.
11 # existence of which force quoting of the parameter value.
12 from __future__ import absolute_import, print_function
13
12
14 import re
13 import re
15
14
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import contextlib
9 import contextlib
11 import errno
10 import errno
@@ -8,7 +8,6 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 from __future__ import absolute_import
12
11
13 import os
12 import os
14
13
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import errno
10 import errno
12 import io
11 import io
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import gettext as gettextmod
9 import gettext as gettextmod
11 import locale
10 import locale
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import contextlib
1 import contextlib
4
2
5 from . import util as interfaceutil
3 from . import util as interfaceutil
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 from ..i18n import _
10 from ..i18n import _
12 from .. import error
11 from .. import error
@@ -9,7 +9,6 b''
9 # bookkeeping for declaring interfaces. So, we use stubs for various
9 # bookkeeping for declaring interfaces. So, we use stubs for various
10 # zope.interface primitives unless instructed otherwise.
10 # zope.interface primitives unless instructed otherwise.
11
11
12 from __future__ import absolute_import
13
12
14 from .. import encoding
13 from .. import encoding
15
14
@@ -82,7 +82,6 b' EXTRA ATTRIBUTES AND METHODS'
82
82
83 # $Id: keepalive.py,v 1.14 2006/04/04 21:00:32 mstenner Exp $
83 # $Id: keepalive.py,v 1.14 2006/04/04 21:00:32 mstenner Exp $
84
84
85 from __future__ import absolute_import, print_function
86
85
87 import collections
86 import collections
88 import errno
87 import errno
@@ -18,7 +18,6 b' number in the file at the introducing re'
18 deletion is performed on the file, a jump instruction is used to patch
18 deletion is performed on the file, a jump instruction is used to patch
19 in a new body of annotate information.
19 in a new body of annotate information.
20 """
20 """
21 from __future__ import absolute_import, print_function
22
21
23 import abc
22 import abc
24 import struct
23 import struct
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import errno
10 import errno
12 import functools
11 import functools
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import contextlib
9 import contextlib
11 import errno
10 import errno
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import itertools
9 import itertools
11 import os
10 import os
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 from .node import hex
10 from .node import hex
12
11
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import errno
10 import errno
12
11
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import _lsprof
1 import _lsprof
4 import sys
2 import sys
5
3
@@ -10,7 +10,6 b' This software may be used and distribute'
10 of the GNU General Public License, incorporated herein by reference.
10 of the GNU General Public License, incorporated herein by reference.
11 """
11 """
12
12
13 from __future__ import absolute_import
14
13
15 from . import pycompat
14 from . import pycompat
16
15
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import email
9 import email
11 import email.charset
10 import email.charset
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import heapq
9 import heapq
11 import itertools
10 import itertools
@@ -5,7 +5,6 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 from __future__ import absolute_import, print_function
9
8
10 import bisect
9 import bisect
11 import copy
10 import copy
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import re
9 import re
11 import struct
10 import struct
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import collections
9 import collections
11 import errno
10 import errno
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import collections
1 import collections
4 import errno
2 import errno
5 import shutil
3 import shutil
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11
10
@@ -6,7 +6,6 b''
6 #
6 #
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 from __future__ import absolute_import, print_function
10
9
11 import multiprocessing
10 import multiprocessing
12 import struct
11 import struct
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11 from . import (
10 from . import (
@@ -18,7 +18,6 b' Remember to update https://mercurial-scm'
18 when adding support for new constructs.
18 when adding support for new constructs.
19 """
19 """
20
20
21 from __future__ import absolute_import
22
21
23 import re
22 import re
24
23
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 from .i18n import _
1 from .i18n import _
4 from . import (
2 from . import (
5 pycompat,
3 pycompat,
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11 from .pycompat import getattr
10 from .pycompat import getattr
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import binascii
9 import binascii
11
10
@@ -67,7 +67,6 b' The header is followed by the markers. M'
67 comment associated with each format for details.
67 comment associated with each format for details.
68
68
69 """
69 """
70 from __future__ import absolute_import
71
70
72 import errno
71 import errno
73 import struct
72 import struct
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import re
9 import re
11
10
@@ -16,7 +16,6 b''
16 # an action is a tree node name, a tree label, and an optional match
16 # an action is a tree node name, a tree label, and an optional match
17 # __call__(program) parses program into a labeled tree
17 # __call__(program) parses program into a labeled tree
18
18
19 from __future__ import absolute_import, print_function
20
19
21 from .i18n import _
20 from .i18n import _
22 from . import (
21 from . import (
@@ -6,7 +6,6 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 from __future__ import absolute_import, print_function
10
9
11 import collections
10 import collections
12 import contextlib
11 import contextlib
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import contextlib
1 import contextlib
4 import errno
2 import errno
5 import os
3 import os
@@ -100,7 +100,6 b' Note: old client behave as a publishing '
100
100
101 """
101 """
102
102
103 from __future__ import absolute_import
104
103
105 import errno
104 import errno
106 import struct
105 import struct
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import os
9 import os
11 import sys
10 import sys
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import fcntl
10 import fcntl
@@ -5,7 +5,6 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 from __future__ import absolute_import, print_function
9
8
10 import contextlib
9 import contextlib
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import threading
10 import threading
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import struct
9 import struct
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import difflib
9 import difflib
11 import re
10 import re
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import array
9 import array
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import io
9 import io
11 import struct
10 import struct
@@ -5,7 +5,6 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 from __future__ import absolute_import, division
9
8
10 import ctypes
9 import ctypes
11 import ctypes.util
10 import ctypes.util
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import io
9 import io
11 import stat
10 import stat
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from . import (
9 from . import (
11 bookmarks,
10 bookmarks,
@@ -48,7 +48,6 b' Uses:'
48 different branches
48 different branches
49 '''
49 '''
50
50
51 from __future__ import absolute_import
52
51
53 from .node import nullrev
52 from .node import nullrev
54 from . import (
53 from . import (
@@ -8,7 +8,6 b''
8 This contains aliases to hide python version-specific details from the core.
8 This contains aliases to hide python version-specific details from the core.
9 """
9 """
10
10
11 from __future__ import absolute_import
12
11
13 import builtins
12 import builtins
14 import codecs
13 import codecs
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import os
9 import os
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from . import (
9 from . import (
11 configitems,
10 configitems,
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import errno
10 import errno
12
11
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import collections
9 import collections
11 import gc
10 import gc
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import copy
10 import copy
12 import weakref
11 import weakref
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 # obsolete experimental requirements:
9 # obsolete experimental requirements:
11 # - manifestv2: An experimental new manifest format that allowed
10 # - manifestv2: An experimental new manifest format that allowed
@@ -12,7 +12,6 b' This provides efficient delta storage wi'
12 and O(changes) merge between branches.
12 and O(changes) merge between branches.
13 """
13 """
14
14
15 from __future__ import absolute_import
16
15
17 import binascii
16 import binascii
18 import collections
17 import collections
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from ..thirdparty import attr
9 from ..thirdparty import attr
11 from ..interfaces import repository
10 from ..interfaces import repository
@@ -7,7 +7,6 b''
7 # GNU General Public License version 2 or any later version.
7 # GNU General Public License version 2 or any later version.
8 """Helper class to compute deltas stored inside revlogs"""
8 """Helper class to compute deltas stored inside revlogs"""
9
9
10 from __future__ import absolute_import
11
10
12 import struct
11 import struct
13
12
@@ -7,7 +7,6 b''
7 # GNU General Public License version 2 or any later version.
7 # GNU General Public License version 2 or any later version.
8 """Helper class to compute deltas stored inside revlogs"""
8 """Helper class to compute deltas stored inside revlogs"""
9
9
10 from __future__ import absolute_import
11
10
12 import collections
11 import collections
13 import struct
12 import struct
@@ -15,7 +15,6 b''
15 #
15 #
16 # * a data file, containing variable width data for these revisions,
16 # * a data file, containing variable width data for these revisions,
17
17
18 from __future__ import absolute_import
19
18
20 import errno
19 import errno
21 import os
20 import os
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 from ..i18n import _
10 from ..i18n import _
12
11
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 import errno
10 import errno
12 import re
11 import re
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9
8
10 from ..node import sha1nodeconstants
9 from ..node import sha1nodeconstants
@@ -30,7 +30,6 b' This is a simple and effective format. I'
30 the concept.
30 the concept.
31 """
31 """
32
32
33 from __future__ import absolute_import
34
33
35 import collections
34 import collections
36 import struct
35 import struct
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import re
9 import re
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import string
9 import string
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import re
9 import re
11
10
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import array
1 import array
4 import errno
2 import errno
5 import fcntl
3 import fcntl
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import glob
10 import glob
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import os
1 import os
4
2
5 from . import (
3 from . import (
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import os
9 import os
11
10
@@ -40,7 +40,6 b' nodes that will maximize the number of n'
40 classified with it (since all ancestors or descendants will be marked as well).
40 classified with it (since all ancestors or descendants will be marked as well).
41 """
41 """
42
42
43 from __future__ import absolute_import
44
43
45 import collections
44 import collections
46 import random
45 import random
@@ -20,7 +20,6 b' You can have more than one shelved chang'
20 shelved change has a distinct name. For details, see the help for "hg
20 shelved change has a distinct name. For details, see the help for "hg
21 shelve".
21 shelve".
22 """
22 """
23 from __future__ import absolute_import
24
23
25 import collections
24 import collections
26 import errno
25 import errno
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11 from . import (
10 from . import (
@@ -16,7 +16,6 b''
16 # mbp: "you know that thing where cvs gives you conflict markers?"
16 # mbp: "you know that thing where cvs gives you conflict markers?"
17 # s: "i hate that."
17 # s: "i hate that."
18
18
19 from __future__ import absolute_import
20
19
21 from .i18n import _
20 from .i18n import _
22 from . import (
21 from . import (
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .pycompat import getattr
9 from .pycompat import getattr
11 from . import (
10 from . import (
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import os
9 import os
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import re
9 import re
11 import uuid
10 import uuid
@@ -7,7 +7,6 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 from __future__ import absolute_import
11
10
12 import hashlib
11 import hashlib
13 import os
12 import os
@@ -5,8 +5,6 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 from __future__ import absolute_import
9
10
8
11 def getstack(repo, rev=None):
9 def getstack(repo, rev=None):
12 """return a sorted smartrev of the stack containing either rev if it is
10 """return a sorted smartrev of the stack containing either rev if it is
@@ -17,7 +17,6 b' We store the data on disk in cbor, for w'
17 the data.
17 the data.
18 """
18 """
19
19
20 from __future__ import absolute_import
21
20
22 import contextlib
21 import contextlib
23
22
@@ -7,7 +7,6 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 from __future__ import absolute_import
11
10
12 import errno
11 import errno
13
12
@@ -101,7 +101,6 b" significantly off if other threads' work"
101 main thread's work patterns.
101 main thread's work patterns.
102 """
102 """
103 # no-check-code
103 # no-check-code
104 from __future__ import absolute_import, division, print_function
105
104
106 import collections
105 import collections
107 import contextlib
106 import contextlib
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import functools
10 import functools
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import contextlib
9 import contextlib
11 import errno
10 import errno
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 from .i18n import _
1 from .i18n import _
4 from .pycompat import getattr
2 from .pycompat import getattr
5 from . import (
3 from . import (
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import copy
9 import copy
11 import errno
10 import errno
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import os
10 import os
@@ -71,7 +71,6 b''
71 # - put blocks whose nodes come all from p2 first
71 # - put blocks whose nodes come all from p2 first
72 # - write the tag blocks in the sorted order
72 # - write the tag blocks in the sorted order
73
73
74 from __future__ import absolute_import
75
74
76 from .i18n import _
75 from .i18n import _
77 from . import (
76 from . import (
@@ -10,7 +10,6 b''
10 # Eventually, it could take care of updating (adding/removing/moving)
10 # Eventually, it could take care of updating (adding/removing/moving)
11 # tags too.
11 # tags too.
12
12
13 from __future__ import absolute_import
14
13
15 import errno
14 import errno
16 import io
15 import io
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import os
9 import os
11 import re
10 import re
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import re
9 import re
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11 from .node import (
10 from .node import (
@@ -65,7 +65,6 b' mappedgenerator'
65 operation.
65 operation.
66 """
66 """
67
67
68 from __future__ import absolute_import, print_function
69
68
70 import abc
69 import abc
71 import os
70 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import abc
9 import abc
11 import types
10 import types
@@ -1,8 +1,3 b''
1 from __future__ import (
2 absolute_import,
3 division,
4 )
5
6 import os
1 import os
7 import time
2 import time
8
3
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import
2 import unittest
1 import unittest
3
2
4 # picked from test-parse-index2, copied rather than imported
3 # picked from test-parse-index2, copied rather than imported
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import unittest
9 import unittest
11
10
@@ -11,7 +11,6 b''
11 # This software may be used and distributed according to the terms of the
11 # This software may be used and distributed according to the terms of the
12 # GNU General Public License version 2 or any later version.
12 # GNU General Public License version 2 or any later version.
13
13
14 from __future__ import absolute_import
15
14
16 import errno
15 import errno
17
16
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import collections
9 import collections
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11
10
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import collections
9 import collections
11 import contextlib
10 import contextlib
@@ -11,7 +11,6 b''
11 allowing operations like diff and log with revsets.
11 allowing operations like diff and log with revsets.
12 """
12 """
13
13
14 from __future__ import absolute_import
15
14
16 from .i18n import _
15 from .i18n import _
17 from .pycompat import getattr
16 from .pycompat import getattr
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from .i18n import _
9 from .i18n import _
11 from . import (
10 from . import (
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from ..i18n import _
9 from ..i18n import _
11 from .. import (
10 from .. import (
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import stat
10 import stat
@@ -7,7 +7,6 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 from __future__ import absolute_import
11
10
12 import base64
11 import base64
13 import socket
12 import socket
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 from .pycompat import getattr
8 from .pycompat import getattr
10 from . import pycompat
9 from . import pycompat
@@ -13,7 +13,6 b' This contains helper routines that are i'
13 hide platform-specific details from the core.
13 hide platform-specific details from the core.
14 """
14 """
15
15
16 from __future__ import absolute_import, print_function
17
16
18 import abc
17 import abc
19 import collections
18 import collections
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import struct
9 import struct
11 import sys
10 import sys
@@ -4,8 +4,6 b''
4 # GNU General Public License version 2 or any later version.
4 # GNU General Public License version 2 or any later version.
5
5
6
6
7 from __future__ import absolute_import, print_function
8
9 import bz2
7 import bz2
10 import collections
8 import collections
11 import zlib
9 import zlib
@@ -5,7 +5,6 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 from __future__ import absolute_import, print_function
9
8
10 import calendar
9 import calendar
11 import datetime
10 import datetime
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import hashlib
1 import hashlib
4
2
5 try:
3 try:
@@ -7,7 +7,6 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 from __future__ import absolute_import
11
10
12 import contextlib
11 import contextlib
13 import errno
12 import errno
@@ -6,7 +6,6 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 from __future__ import absolute_import
10
9
11 ### Nearest subset relation
10 ### Nearest subset relation
12 # Nearest subset of filter X is a filter Y so that:
11 # Nearest subset of filter X is a filter Y so that:
@@ -7,7 +7,6 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 from __future__ import absolute_import
11
10
12 import imp
11 import imp
13 import os
12 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import re
9 import re
11 import struct
10 import struct
@@ -7,7 +7,6 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 from __future__ import absolute_import
11
10
12 import ast
11 import ast
13 import codecs
12 import codecs
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import os
9 import os
11
10
@@ -4,7 +4,6 b''
4 #
4 #
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 from __future__ import absolute_import
8
7
9 import contextlib
8 import contextlib
10 import errno
9 import errno
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import ctypes
9 import ctypes
11 import ctypes.wintypes as wintypes
10 import ctypes.wintypes as wintypes
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import getpass
10 import getpass
@@ -9,7 +9,6 b''
9 # protocol. For details about the protocol, see
9 # protocol. For details about the protocol, see
10 # `hg help internals.wireprotocol`.
10 # `hg help internals.wireprotocol`.
11
11
12 from __future__ import absolute_import
13
12
14 import collections
13 import collections
15 import struct
14 import struct
@@ -4,7 +4,6 b''
4 # This software may be used and distributed according to the terms of the
4 # This software may be used and distributed according to the terms of the
5 # GNU General Public License version 2 or any later version.
5 # GNU General Public License version 2 or any later version.
6
6
7 from __future__ import absolute_import
8
7
9 import contextlib
8 import contextlib
10 import struct
9 import struct
@@ -3,7 +3,6 b''
3 # This software may be used and distributed according to the terms of the
3 # This software may be used and distributed according to the terms of the
4 # GNU General Public License version 2 or any later version.
4 # GNU General Public License version 2 or any later version.
5
5
6 from __future__ import absolute_import
7
6
8 from .node import (
7 from .node import (
9 bin,
8 bin,
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import sys
9 import sys
11 import weakref
10 import weakref
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import binascii
9 import binascii
11 import os
10 import os
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import errno
9 import errno
11 import os
10 import os
@@ -17,7 +17,6 b''
17 #
17 #
18 # Running with `chg` in your path and `CHGHG` set is recommended for speed.
18 # Running with `chg` in your path and `CHGHG` set is recommended for speed.
19
19
20 from __future__ import absolute_import, print_function
21
20
22 import hashlib
21 import hashlib
23 import os
22 import os
@@ -1,6 +1,5 b''
1 # Extension dedicated to test patch.diff() upgrade modes
1 # Extension dedicated to test patch.diff() upgrade modes
2
2
3 from __future__ import absolute_import
4
3
5 from mercurial import (
4 from mercurial import (
6 error,
5 error,
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import sys
1 import sys
4 import unittest
2 import unittest
5
3
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import
2 import os
1 import os
3 from mercurial import (
2 from mercurial import (
4 dispatch,
3 dispatch,
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from mercurial import (
9 from mercurial import (
11 error,
10 error,
@@ -2,7 +2,6 b''
2 #
2 #
3 # check-perf-code - (historical) portability checker for contrib/perf.py
3 # check-perf-code - (historical) portability checker for contrib/perf.py
4
4
5 from __future__ import absolute_import
6
5
7 import os
6 import os
8 import sys
7 import sys
@@ -1,5 +1,4 b''
1 # common patterns in test at can safely be replaced
1 # common patterns in test at can safely be replaced
2 from __future__ import absolute_import
3
2
4 import os
3 import os
5
4
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 from mercurial.i18n import _
1 from mercurial.i18n import _
4 from mercurial import changegroup, error, extensions
2 from mercurial import changegroup, error, extensions
5
3
@@ -80,7 +80,6 b' Some special comments could have side ef'
80 # split: A -> B, C # 1 to many
80 # split: A -> B, C # 1 to many
81 # prune: A, B, C # many to nothing
81 # prune: A, B, C # many to nothing
82 """
82 """
83 from __future__ import absolute_import, print_function
84
83
85 import collections
84 import collections
86 import itertools
85 import itertools
@@ -1,6 +1,5 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2
2
3 from __future__ import absolute_import
4
3
5 """
4 """
6 Small and dumb HTTP server for use in tests.
5 Small and dumb HTTP server for use in tests.
@@ -2,7 +2,6 b''
2
2
3 """dummy SMTP server for use in tests"""
3 """dummy SMTP server for use in tests"""
4
4
5 from __future__ import absolute_import
6
5
7 import asyncore
6 import asyncore
8 import optparse
7 import optparse
@@ -1,6 +1,5 b''
1 #!/usr/bin/env python3
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import
4
3
5 import os
4 import os
6 import shlex
5 import shlex
@@ -23,7 +23,6 b' This can be used instead of tools like:'
23 md5sum.py
23 md5sum.py
24 """
24 """
25
25
26 from __future__ import absolute_import
27
26
28 import binascii
27 import binascii
29 import glob
28 import glob
@@ -1,6 +1,5 b''
1 # extension to emulate interrupting filemerge._filemerge
1 # extension to emulate interrupting filemerge._filemerge
2
2
3 from __future__ import absolute_import
4
3
5 from mercurial import (
4 from mercurial import (
6 error,
5 error,
@@ -5,7 +5,6 b''
5 # - 'workingctx._poststatusfixup()' (= 'repo.status()')
5 # - 'workingctx._poststatusfixup()' (= 'repo.status()')
6 # - 'committablectx.markcommitted()'
6 # - 'committablectx.markcommitted()'
7
7
8 from __future__ import absolute_import
9
8
10 from mercurial import (
9 from mercurial import (
11 context,
10 context,
@@ -2,7 +2,6 b''
2 #
2 #
3 #
3 #
4
4
5 from __future__ import absolute_import
6
5
7 from mercurial import (
6 from mercurial import (
8 mergestate as mergestatemod,
7 mergestate as mergestatemod,
@@ -1,7 +1,6 b''
1 # extension to emulate invoking 'patch.internalpatch()' at the time
1 # extension to emulate invoking 'patch.internalpatch()' at the time
2 # specified by '[fakepatchtime] fakenow'
2 # specified by '[fakepatchtime] fakenow'
3
3
4 from __future__ import absolute_import
5
4
6 from mercurial import (
5 from mercurial import (
7 extensions,
6 extensions,
@@ -2,7 +2,6 b''
2
2
3 # Filter output by pyflakes to control which warnings we check
3 # Filter output by pyflakes to control which warnings we check
4
4
5 from __future__ import absolute_import, print_function
6
5
7 import re
6 import re
8 import sys
7 import sys
@@ -2,7 +2,6 b''
2
2
3 # Filters traceback lines from stdin.
3 # Filters traceback lines from stdin.
4
4
5 from __future__ import absolute_import, print_function
6
5
7 import io
6 import io
8 import sys
7 import sys
@@ -1,6 +1,5 b''
1 # coding=UTF-8
1 # coding=UTF-8
2
2
3 from __future__ import absolute_import
4
3
5 import base64
4 import base64
6 import zlib
5 import zlib
@@ -11,8 +11,6 b''
11 # Watchman and runs the Mercurial tests against it. This ensures that the global
11 # Watchman and runs the Mercurial tests against it. This ensures that the global
12 # version of Watchman isn't affected by anything this test does.
12 # version of Watchman isn't affected by anything this test does.
13
13
14 from __future__ import absolute_import
15 from __future__ import print_function
16
14
17 import argparse
15 import argparse
18 import contextlib
16 import contextlib
@@ -29,7 +29,6 b''
29 # $ hg forget *_*_*-untracked
29 # $ hg forget *_*_*-untracked
30 # $ rm *_*_missing-*
30 # $ rm *_*_missing-*
31
31
32 from __future__ import absolute_import, print_function
33
32
34 import os
33 import os
35 import sys
34 import sys
@@ -3,7 +3,6 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 from __future__ import absolute_import
7
6
8 import argparse
7 import argparse
9 import json
8 import json
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import sys
1 import sys
4
2
5
3
@@ -4,7 +4,6 b' if all features are there, non-zero othe'
4 prefixed with "no-", the absence of feature is tested.
4 prefixed with "no-", the absence of feature is tested.
5 """
5 """
6
6
7 from __future__ import absolute_import, print_function
8
7
9 import hghave
8 import hghave
10 import optparse
9 import optparse
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import distutils.version
1 import distutils.version
4 import os
2 import os
5 import re
3 import re
@@ -1,6 +1,5 b''
1 # A dummy extension that installs an hgweb command that throws an Exception.
1 # A dummy extension that installs an hgweb command that throws an Exception.
2
2
3 from __future__ import absolute_import
4
3
5 from mercurial.hgweb import webcommands
4 from mercurial.hgweb import webcommands
6
5
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import base64
1 import base64
4 import hashlib
2 import hashlib
5
3
@@ -4,7 +4,6 b''
4 #
4 #
5 # For details see http://hypothesis.readthedocs.org
5 # For details see http://hypothesis.readthedocs.org
6
6
7 from __future__ import absolute_import, print_function
8 import os
7 import os
9 import sys
8 import sys
10 import traceback
9 import traceback
@@ -1,6 +1,5 b''
1 #!/usr/bin/env python3
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import
4 import errno
3 import errno
5 import os
4 import os
6 import signal
5 import signal
@@ -1,8 +1,3 b''
1 from __future__ import (
2 absolute_import,
3 print_function,
4 )
5
6 import argparse
1 import argparse
7 import os
2 import os
8
3
@@ -2,7 +2,6 b''
2 #
2 #
3 # This extension can be used to test race conditions between lock acquisition.
3 # This extension can be used to test race conditions between lock acquisition.
4
4
5 from __future__ import absolute_import
6
5
7 import os
6 import os
8 import time
7 import time
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import inspect
9 import inspect
11 import os
10 import os
@@ -2,7 +2,6 b''
2
2
3 # like ls -l, but do not print date, user, or non-common mode bit, to avoid
3 # like ls -l, but do not print date, user, or non-common mode bit, to avoid
4 # using globs in tests.
4 # using globs in tests.
5 from __future__ import absolute_import, print_function
6
5
7 import os
6 import os
8 import stat
7 import stat
@@ -6,7 +6,6 b''
6 # of the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2, which is
6 # of the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2, which is
7 # GPL-compatible.
7 # GPL-compatible.
8
8
9 from __future__ import absolute_import
10
9
11 import hashlib
10 import hashlib
12 import os
11 import os
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import
2 from mercurial.utils import procutil
1 from mercurial.utils import procutil
3
2
4 # XXX: we should probably offer a devel option to do this in blackbox directly
3 # XXX: we should probably offer a devel option to do this in blackbox directly
@@ -1,6 +1,5 b''
1 # mock out util.makedate() to supply testable values
1 # mock out util.makedate() to supply testable values
2
2
3 from __future__ import absolute_import
4
3
5 import os
4 import os
6
5
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import os
1 import os
4 import time
2 import time
5
3
@@ -12,7 +12,6 b''
12 # - [output] is the name of the output file (default: use sys.stdout)
12 # - [output] is the name of the output file (default: use sys.stdout)
13 # the file will be opened in append mode.
13 # the file will be opened in append mode.
14 #
14 #
15 from __future__ import absolute_import
16 import argparse
15 import argparse
17 import os
16 import os
18 import sys
17 import sys
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import
2 from mercurial.thirdparty import attr
1 from mercurial.thirdparty import attr
3 from mercurial import (
2 from mercurial import (
4 cmdutil,
3 cmdutil,
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from mercurial.i18n import _
9 from mercurial.i18n import _
11 from mercurial import (
10 from mercurial import (
@@ -1,6 +1,5 b''
1 #!/usr/bin/env python3
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import, print_function
4
3
5 import errno
4 import errno
6 import os
5 import os
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 from mercurial.i18n import _
1 from mercurial.i18n import _
4 from mercurial import (
2 from mercurial import (
5 hg,
3 hg,
@@ -17,7 +17,6 b' description:'
17 empty file
17 empty file
18 """
18 """
19
19
20 from __future__ import absolute_import
21 import binascii
20 import binascii
22 import os
21 import os
23 import sys
22 import sys
@@ -1,6 +1,5 b''
1 # Dummy extension to define a namespace containing revision names
1 # Dummy extension to define a namespace containing revision names
2
2
3 from __future__ import absolute_import
4
3
5 from mercurial import namespaces
4 from mercurial import namespaces
6
5
@@ -43,8 +43,6 b''
43 # completes fairly quickly, includes both shell and Python scripts, and
43 # completes fairly quickly, includes both shell and Python scripts, and
44 # includes some scripts that run daemon processes.)
44 # includes some scripts that run daemon processes.)
45
45
46 from __future__ import absolute_import, print_function
47
48
46
49 import argparse
47 import argparse
50 import collections
48 import collections
@@ -7,7 +7,6 b''
7 # seq START STOP [START, STOP] stepping by 1
7 # seq START STOP [START, STOP] stepping by 1
8 # seq START STEP STOP [START, STOP] stepping by STEP
8 # seq START STEP STOP [START, STOP] stepping by STEP
9
9
10 from __future__ import absolute_import, print_function
11 import os
10 import os
12 import sys
11 import sys
13
12
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import, print_function
2 import os
1 import os
3 import sys
2 import sys
4 import unittest
3 import unittest
@@ -10,7 +10,6 b''
10 # $ HGREPOFEATURES="simplestore" ./run-tests.py \
10 # $ HGREPOFEATURES="simplestore" ./run-tests.py \
11 # --extra-config-opt extensions.simplestore=`pwd`/simplestorerepo.py
11 # --extra-config-opt extensions.simplestore=`pwd`/simplestorerepo.py
12
12
13 from __future__ import absolute_import
14
13
15 import stat
14 import stat
16
15
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import
2 import os
1 import os
3
2
4 if os.environ.get('COVERAGE_PROCESS_START'):
3 if os.environ.get('COVERAGE_PROCESS_START'):
@@ -8,7 +8,6 b''
8 # This extension replaces the SSH server started via `hg serve --stdio`.
8 # This extension replaces the SSH server started via `hg serve --stdio`.
9 # The server behaves differently depending on environment variables.
9 # The server behaves differently depending on environment variables.
10
10
11 from __future__ import absolute_import
12
11
13 from mercurial import (
12 from mercurial import (
14 error,
13 error,
@@ -1,6 +1,5 b''
1 #!/usr/bin/env python3
1 #!/usr/bin/env python3
2
2
3 from __future__ import absolute_import
4
3
5 __doc__ = """Same as `echo a >> b`, but ensures a changed mtime of b.
4 __doc__ = """Same as `echo a >> b`, but ensures a changed mtime of b.
6 Without this svn will not detect workspace changes."""
5 Without this svn will not detect workspace changes."""
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import, print_function
2 import sys
1 import sys
3
2
4 from mercurial import (
3 from mercurial import (
@@ -1,7 +1,6 b''
1 # Read the output of a "svn log --xml" command on stdin, parse it and
1 # Read the output of a "svn log --xml" command on stdin, parse it and
2 # print a subset of attributes common to all svn versions tested by
2 # print a subset of attributes common to all svn versions tested by
3 # hg.
3 # hg.
4 from __future__ import absolute_import
5 import sys
4 import sys
6 import xml.dom.minidom
5 import xml.dom.minidom
7
6
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import itertools
1 import itertools
4 from mercurial import pycompat
2 from mercurial import pycompat
5 from hgext import absorb
3 from hgext import absorb
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import binascii
1 import binascii
4 import getopt
2 import getopt
5 import math
3 import math
@@ -1,6 +1,3 b''
1 from __future__ import absolute_import
2 from __future__ import print_function
3
4 import unittest
1 import unittest
5
2
6 from mercurial import (
3 from mercurial import (
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import glob
1 import glob
4 import os
2 import os
5 import shutil
3 import shutil
@@ -5,7 +5,6 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 from __future__ import absolute_import, print_function
9
8
10 import contextlib
9 import contextlib
11
10
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import, print_function
2 import collections
1 import collections
3 import struct
2 import struct
4 import unittest
3 import unittest
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import io
1 import io
4 import unittest
2 import unittest
5
3
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import os
1 import os
4 import sys
2 import sys
5 import unittest
3 import unittest
@@ -1,6 +1,5 b''
1 # Test that certain objects conform to well-defined interfaces.
1 # Test that certain objects conform to well-defined interfaces.
2
2
3 from __future__ import absolute_import, print_function
4
3
5 from mercurial import encoding
4 from mercurial import encoding
6
5
@@ -1,6 +1,5 b''
1 # Test the config layer generated by environment variables
1 # Test the config layer generated by environment variables
2
2
3 from __future__ import absolute_import, print_function
4
3
5 import os
4 import os
6
5
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import, print_function
2 import os
1 import os
3 import stat
2 import stat
4 import sys
3 import sys
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 from mercurial import demandimport
1 from mercurial import demandimport
4
2
5 demandimport.enable()
3 demandimport.enable()
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import unittest
1 import unittest
4
2
5 import silenttestrunner
3 import silenttestrunner
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import, print_function
2 import os
1 import os
3 import sys
2 import sys
4 from mercurial import dispatch
3 from mercurial import dispatch
@@ -1,7 +1,5 b''
1 # this is hack to make sure no escape characters are inserted into the output
1 # this is hack to make sure no escape characters are inserted into the output
2
2
3 from __future__ import absolute_import
4 from __future__ import print_function
5
3
6 import doctest
4 import doctest
7 import os
5 import os
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import, print_function
2 import os
1 import os
3 from mercurial import (
2 from mercurial import (
4 commands,
3 commands,
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import unittest
1 import unittest
4
2
5 from mercurial import encoding
3 from mercurial import encoding
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 from mercurial import extensions
1 from mercurial import extensions
4
2
5
3
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import os
1 import os
4 import tempfile
2 import tempfile
5
3
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import, print_function
2 import os
1 import os
3 import stat
2 import stat
4 import subprocess
3 import subprocess
@@ -2,7 +2,6 b''
2 """
2 """
3 Tests the behavior of filelog w.r.t. data starting with '\1\n'
3 Tests the behavior of filelog w.r.t. data starting with '\1\n'
4 """
4 """
5 from __future__ import absolute_import, print_function
6
5
7 from mercurial.node import hex
6 from mercurial.node import hex
8 from mercurial import (
7 from mercurial import (
@@ -1,6 +1,5 b''
1 # Tests to ensure that sha1dc.sha1 is exactly a drop-in for
1 # Tests to ensure that sha1dc.sha1 is exactly a drop-in for
2 # hashlib.sha1 for our needs.
2 # hashlib.sha1 for our needs.
3 from __future__ import absolute_import
4
3
5 import hashlib
4 import hashlib
6 import unittest
5 import unittest
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import unittest
1 import unittest
4
2
5 from mercurial.utils import urlutil
3 from mercurial.utils import urlutil
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 from mercurial import demandimport
1 from mercurial import demandimport
4
2
5 demandimport.enable()
3 demandimport.enable()
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import os
1 import os
4 from mercurial.hgweb import hgwebdir_mod
2 from mercurial.hgweb import hgwebdir_mod
5
3
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import os
1 import os
4 from mercurial import (
2 from mercurial import (
5 hg,
3 hg,
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import unittest
1 import unittest
4
2
5 from mercurial import store
3 from mercurial import store
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 # Import something from Mercurial, so the module loader gets initialized.
1 # Import something from Mercurial, so the module loader gets initialized.
4 from mercurial import pycompat
2 from mercurial import pycompat
5
3
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import difflib
1 import difflib
4 import random
2 import random
5 import unittest
3 import unittest
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import unittest
1 import unittest
4 from mercurial import error, mdiff
2 from mercurial import error, mdiff
5 from mercurial.utils import stringutil
3 from mercurial.utils import stringutil
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import copy
1 import copy
4 import errno
2 import errno
5 import tempfile
3 import tempfile
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import unittest
1 import unittest
4
2
5 import silenttestrunner
3 import silenttestrunner
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import binascii
1 import binascii
4 import itertools
2 import itertools
5 import silenttestrunner
3 import silenttestrunner
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import unittest
1 import unittest
4
2
5 import silenttestrunner
3 import silenttestrunner
@@ -1,6 +1,3 b''
1 from __future__ import absolute_import
2 from __future__ import print_function
3
4 import unittest
1 import unittest
5
2
6 from mercurial import mdiff
3 from mercurial import mdiff
@@ -1,6 +1,3 b''
1 from __future__ import absolute_import
2 from __future__ import print_function
3
4 from mercurial import minifileset
1 from mercurial import minifileset
5
2
6
3
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import, print_function
2 from mercurial import minirst
1 from mercurial import minirst
3 from mercurial.utils import stringutil
2 from mercurial.utils import stringutil
4
3
@@ -3,7 +3,6 b''
3 It also checks certain aspects of the parsers module as a whole.
3 It also checks certain aspects of the parsers module as a whole.
4 """
4 """
5
5
6 from __future__ import absolute_import, print_function
7
6
8 import os
7 import os
9 import struct
8 import struct
@@ -5,7 +5,6 b''
5 # that have proven likely to expose bugs and divergent behavior in
5 # that have proven likely to expose bugs and divergent behavior in
6 # different encoding implementations.
6 # different encoding implementations.
7
7
8 from __future__ import absolute_import, print_function
9
8
10 import binascii
9 import binascii
11 import collections
10 import collections
@@ -4,7 +4,6 b' The repoview overlay is quite complex. W'
4 property cache of both localrepo and repoview to prevent
4 property cache of both localrepo and repoview to prevent
5 regression."""
5 regression."""
6
6
7 from __future__ import absolute_import, print_function
8 import os
7 import os
9 import subprocess
8 import subprocess
10
9
@@ -1,5 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2 from __future__ import absolute_import, print_function
3
2
4 import hashlib
3 import hashlib
5 import os
4 import os
@@ -1,5 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2 from __future__ import absolute_import
3
2
4 import hashlib
3 import hashlib
5 import os
4 import os
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import, print_function
2 import os
1 import os
3 from mercurial import (
2 from mercurial import (
4 hg,
3 hg,
@@ -1,6 +1,5 b''
1 # test revlog interaction about raw data (flagprocessor)
1 # test revlog interaction about raw data (flagprocessor)
2
2
3 from __future__ import absolute_import, print_function
4
3
5 import collections
4 import collections
6 import hashlib
5 import hashlib
@@ -3,7 +3,6 b''
3 run-test.t only checks positive matches and can not see warnings
3 run-test.t only checks positive matches and can not see warnings
4 (both by design)
4 (both by design)
5 """
5 """
6 from __future__ import absolute_import, print_function
7
6
8 import doctest
7 import doctest
9 import os
8 import os
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import
2 import sys
1 import sys
3 import unittest
2 import unittest
4
3
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import
2 import unittest
1 import unittest
3
2
4 from mercurial import policy
3 from mercurial import policy
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import
2 import unittest
1 import unittest
3
2
4 try:
3 try:
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import unittest
1 import unittest
4 import silenttestrunner
2 import silenttestrunner
5
3
@@ -13,7 +13,6 b''
13 # You should have received a copy of the GNU General Public License
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, see <http://www.gnu.org/licenses/>.
14 # along with this program; if not, see <http://www.gnu.org/licenses/>.
15
15
16 from __future__ import absolute_import
17
16
18 import unittest
17 import unittest
19 from mercurial import (
18 from mercurial import (
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import io
1 import io
4 import unittest
2 import unittest
5
3
@@ -1,5 +1,4 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2 from __future__ import absolute_import, print_function
3
2
4 import sys
3 import sys
5
4
@@ -2,7 +2,6 b''
2 """
2 """
3 Tests the buffering behavior of stdio streams in `mercurial.utils.procutil`.
3 Tests the buffering behavior of stdio streams in `mercurial.utils.procutil`.
4 """
4 """
5 from __future__ import absolute_import
6
5
7 import contextlib
6 import contextlib
8 import errno
7 import errno
@@ -1,6 +1,5 b''
1 # This test verifies the conformance of various classes to various
1 # This test verifies the conformance of various classes to various
2 # storage interfaces.
2 # storage interfaces.
3 from __future__ import absolute_import
4
3
5 import silenttestrunner
4 import silenttestrunner
6
5
@@ -2,7 +2,6 b''
2 # with files from different users/groups, we cheat a bit by
2 # with files from different users/groups, we cheat a bit by
3 # monkey-patching some functions in the util module
3 # monkey-patching some functions in the util module
4
4
5 from __future__ import absolute_import, print_function
6
5
7 import os
6 import os
8 import sys
7 import sys
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import os
1 import os
4 from mercurial import (
2 from mercurial import (
5 dispatch,
3 dispatch,
@@ -1,4 +1,3 b''
1 from __future__ import absolute_import, print_function
2 from mercurial import (
1 from mercurial import (
3 dispatch,
2 dispatch,
4 error,
3 error,
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import os
1 import os
4 from mercurial import (
2 from mercurial import (
5 pycompat,
3 pycompat,
@@ -1,5 +1,4 b''
1 # coding=utf-8
1 # coding=utf-8
2 from __future__ import absolute_import, print_function
3
2
4 import doctest
3 import doctest
5 import os
4 import os
@@ -1,5 +1,4 b''
1 # unit tests for mercuril.util utilities
1 # unit tests for mercuril.util utilities
2 from __future__ import absolute_import
3
2
4 import contextlib
3 import contextlib
5 import io
4 import io
@@ -1,5 +1,3 b''
1 from __future__ import print_function, absolute_import
2
3 """Fuzz testing for operations against a Mercurial repository
1 """Fuzz testing for operations against a Mercurial repository
4
2
5 This uses Hypothesis's stateful testing to generate random repository
3 This uses Hypothesis's stateful testing to generate random repository
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import os
1 import os
4
2
5 from mercurial import (
3 from mercurial import (
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 import sys
1 import sys
4 import unittest
2 import unittest
5 import zlib
3 import zlib
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import unittest
1 import unittest
4
2
5 from mercurial import (
3 from mercurial import (
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import unittest
1 import unittest
4
2
5 from mercurial import (
3 from mercurial import (
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import sys
1 import sys
4
2
5 from mercurial import (
3 from mercurial import (
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import unittest
1 import unittest
4
2
5 from mercurial.hgweb import request as requestmod
3 from mercurial.hgweb import request as requestmod
@@ -44,7 +44,6 b' close-after-send-patterns'
44 request)
44 request)
45 """
45 """
46
46
47 from __future__ import absolute_import
48
47
49 import re
48 import re
50 import socket
49 import socket
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 from mercurial import (
9 from mercurial import (
11 error,
10 error,
@@ -1,7 +1,5 b''
1 # tiny extension to report phase changes during transaction
1 # tiny extension to report phase changes during transaction
2
2
3 from __future__ import absolute_import
4
5
3
6 def reposetup(ui, repo):
4 def reposetup(ui, repo):
7 def reportphasemove(tr):
5 def reportphasemove(tr):
@@ -8,7 +8,6 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 from __future__ import absolute_import
12
11
13 import hashlib
12 import hashlib
14 import struct
13 import struct
@@ -9,7 +9,6 b''
9 # This software may be used and distributed according to the terms of the
9 # This software may be used and distributed according to the terms of the
10 # GNU General Public License version 2 or any later version.
10 # GNU General Public License version 2 or any later version.
11
11
12 from __future__ import absolute_import
13
12
14 import hashlib
13 import hashlib
15 import struct
14 import struct
@@ -9,7 +9,6 b''
9 # This software may be used and distributed according to the terms of the
9 # This software may be used and distributed according to the terms of the
10 # GNU General Public License version 2 or any later version.
10 # GNU General Public License version 2 or any later version.
11
11
12 from __future__ import absolute_import
13
12
14 from mercurial.revlogutils import sidedata
13 from mercurial.revlogutils import sidedata
15
14
@@ -9,7 +9,6 b''
9 # This software may be used and distributed according to the terms of the
9 # This software may be used and distributed according to the terms of the
10 # GNU General Public License version 2 or any later version.
10 # GNU General Public License version 2 or any later version.
11
11
12 from __future__ import absolute_import
13
12
14 import hashlib
13 import hashlib
15 import struct
14 import struct
@@ -5,7 +5,6 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 from __future__ import absolute_import
9
8
10 import hashlib
9 import hashlib
11 import struct
10 import struct
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import
2
3 from mercurial import (
1 from mercurial import (
4 encoding,
2 encoding,
5 extensions,
3 extensions,
@@ -35,7 +35,6 b' It involves 3 process <LEFT> (a writer) '
35 /!\ valid.
35 /!\ valid.
36 """
36 """
37
37
38 from __future__ import print_function
39
38
40 import os
39 import os
41
40
@@ -1,5 +1,4 b''
1 #!/usr/bin/env python3
1 #!/usr/bin/env python3
2 from __future__ import print_function
3
2
4 import io
3 import io
5 import os
4 import os
@@ -3,7 +3,6 b''
3 # This is literally `cat` but in python, one char at a time.
3 # This is literally `cat` but in python, one char at a time.
4 #
4 #
5 # see sigpipe-remote.py for details.
5 # see sigpipe-remote.py for details.
6 from __future__ import print_function
7
6
8 import io
7 import io
9 import os
8 import os
@@ -1,6 +1,5 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2
2
3 from __future__ import absolute_import, print_function
4
3
5 __doc__ = """Tiny HTTP Proxy.
4 __doc__ = """Tiny HTTP Proxy.
6
5
@@ -1,5 +1,3 b''
1 from __future__ import absolute_import, print_function
2
3 import sys
1 import sys
4
2
5 for line in sys.stdin:
3 for line in sys.stdin:
General Comments 0
You need to be logged in to leave comments. Login now