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