Show More
@@ -36,4 +36,7 the default, unless the extension is ena | |||||
36 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
|
36 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | |
37 | # be specifying the version(s) of Mercurial they are tested with, or |
|
37 | # be specifying the version(s) of Mercurial they are tested with, or | |
38 | # leave the attribute unspecified. |
|
38 | # leave the attribute unspecified. | |
|
39 | ||||
|
40 | from __future__ import annotations | |||
|
41 | ||||
39 | testedwith = b'ships-with-hg-core' |
|
42 | testedwith = b'ships-with-hg-core' |
@@ -1,3 +1,6 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
|
3 | ||||
1 | def run(): |
|
4 | def run(): | |
2 | from . import demandimport |
|
5 | from . import demandimport | |
3 |
|
6 |
@@ -19,6 +19,8 It is recommended to run these commands | |||||
19 | variable (see :hg:`help scripting`). |
|
19 | variable (see :hg:`help scripting`). | |
20 | """ |
|
20 | """ | |
21 |
|
21 | |||
|
22 | from __future__ import annotations | |||
|
23 | ||||
22 | import shutil |
|
24 | import shutil | |
23 |
|
25 | |||
24 | from ..i18n import _ |
|
26 | from ..i18n import _ |
@@ -5,6 +5,8 | |||||
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
|
8 | from __future__ import annotations | |||
|
9 | ||||
8 | import collections |
|
10 | import collections | |
9 | import copy |
|
11 | import copy | |
10 | import functools |
|
12 | import functools |
@@ -5,6 +5,8 | |||||
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
|
8 | from __future__ import annotations | |||
|
9 | ||||
8 | from .i18n import _ |
|
10 | from .i18n import _ | |
9 | from .admin import chainsaw, verify |
|
11 | from .admin import chainsaw, verify | |
10 | from . import error, registrar, transaction |
|
12 | from . import error, registrar, transaction |
@@ -3,6 +3,8 | |||||
3 | # This software may be used and distributed according to the terms of the |
|
3 | # This software may be used and distributed according to the terms of the | |
4 | # GNU General Public License version 2 or any later version. |
|
4 | # GNU General Public License version 2 or any later version. | |
5 |
|
5 | |||
|
6 | from __future__ import annotations | |||
|
7 | ||||
6 | import collections |
|
8 | import collections | |
7 | import typing |
|
9 | import typing | |
8 |
|
10 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | from ..i18n import _ |
|
3 | from ..i18n import _ | |
2 | from .. import error |
|
4 | from .. import error | |
3 |
|
5 |
@@ -6,6 +6,8 | |||||
6 | # This software may be used and distributed according to the terms of the |
|
6 | # This software may be used and distributed according to the terms of the | |
7 | # GNU General Public License version 2 or any later version. |
|
7 | # GNU General Public License version 2 or any later version. | |
8 |
|
8 | |||
|
9 | from __future__ import annotations | |||
|
10 | ||||
9 | import collections |
|
11 | import collections | |
10 | import string |
|
12 | import string | |
11 |
|
13 |
@@ -3,6 +3,8 | |||||
3 | # This software may be used and distributed according to the terms of the |
|
3 | # This software may be used and distributed according to the terms of the | |
4 | # GNU General Public License version 2 or any later version. |
|
4 | # GNU General Public License version 2 or any later version. | |
5 |
|
5 | |||
|
6 | from __future__ import annotations | |||
|
7 | ||||
6 | import contextlib |
|
8 | import contextlib | |
7 |
|
9 | |||
8 | from ..i18n import _ |
|
10 | from ..i18n import _ |
@@ -7,6 +7,8 | |||||
7 | # This software may be used and distributed according to the terms of the |
|
7 | # This software may be used and distributed according to the terms of the | |
8 | # GNU General Public License version 2 or any later version. |
|
8 | # GNU General Public License version 2 or any later version. | |
9 |
|
9 | |||
|
10 | from __future__ import annotations | |||
|
11 | ||||
10 | import binascii |
|
12 | import binascii | |
11 | import contextlib |
|
13 | import contextlib | |
12 | import os |
|
14 | import os |
@@ -19,6 +19,8 This module and implementation are exper | |||||
19 | optimised to operate on large production graphs. |
|
19 | optimised to operate on large production graphs. | |
20 | """ |
|
20 | """ | |
21 |
|
21 | |||
|
22 | from __future__ import annotations | |||
|
23 | ||||
22 | import itertools |
|
24 | import itertools | |
23 | from ..node import nullrev |
|
25 | from ..node import nullrev | |
24 | from .. import ancestor |
|
26 | from .. import ancestor |
@@ -5,6 +5,8 | |||||
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
|
8 | from __future__ import annotations | |||
|
9 | ||||
8 | import typing |
|
10 | import typing | |
9 |
|
11 | |||
10 | from typing import ( |
|
12 | from typing import ( |
@@ -4,6 +4,9 | |||||
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
|
7 | ||||
|
8 | from __future__ import annotations | |||
|
9 | ||||
7 | from ..i18n import _ |
|
10 | from ..i18n import _ | |
8 |
|
11 | |||
9 | from .. import ( |
|
12 | from .. import ( |
@@ -5,6 +5,8 | |||||
5 | # memorytop in strategic places to show the current memory use by allocation |
|
5 | # memorytop in strategic places to show the current memory use by allocation | |
6 | # site. |
|
6 | # site. | |
7 |
|
7 | |||
|
8 | from __future__ import annotations | |||
|
9 | ||||
8 | import gc |
|
10 | import gc | |
9 | import tracemalloc |
|
11 | import tracemalloc | |
10 |
|
12 |
@@ -4,6 +4,9 | |||||
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
|
7 | ||||
|
8 | from __future__ import annotations | |||
|
9 | ||||
7 | import os |
|
10 | import os | |
8 | import re as remod |
|
11 | import re as remod | |
9 | import socket |
|
12 | import socket |
General Comments 0
You need to be logged in to leave comments.
Login now