Show More
@@ -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 os |
|
12 | import os | |
11 | import sys |
|
13 | import sys | |
12 |
|
14 |
@@ -11,6 +11,7 | |||||
11 | # demand loading is per-package. Keeping demandimport in the mercurial package |
|
11 | # demand loading is per-package. Keeping demandimport in the mercurial package | |
12 | # would disable demand loading for any modules in mercurial. |
|
12 | # would disable demand loading for any modules in mercurial. | |
13 |
|
13 | |||
|
14 | from __future__ import annotations | |||
14 |
|
15 | |||
15 | import os |
|
16 | import os | |
16 | import sys |
|
17 | import sys |
@@ -23,6 +23,8 This also has some limitations compared | |||||
23 | enabled. |
|
23 | enabled. | |
24 | """ |
|
24 | """ | |
25 |
|
25 | |||
|
26 | from __future__ import annotations | |||
|
27 | ||||
26 | import contextlib |
|
28 | import contextlib | |
27 | import importlib.util |
|
29 | import importlib.util | |
28 | import sys |
|
30 | import sys |
@@ -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 contextlib |
|
11 | import contextlib | |
10 | import os |
|
12 | import os | |
11 |
|
13 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import pkgutil |
|
3 | import pkgutil | |
2 |
|
4 | |||
3 | __path__ = pkgutil.extend_path(__path__, __name__) |
|
5 | __path__ = pkgutil.extend_path(__path__, __name__) |
@@ -31,6 +31,7 amend modified chunks into the correspon | |||||
31 | # * Converge getdraftstack() with other code in core |
|
31 | # * Converge getdraftstack() with other code in core | |
32 | # * move many attributes on fixupstate to be private |
|
32 | # * move many attributes on fixupstate to be private | |
33 |
|
33 | |||
|
34 | from __future__ import annotations | |||
34 |
|
35 | |||
35 | import collections |
|
36 | import collections | |
36 |
|
37 |
@@ -213,6 +213,7 3) Deny access to a file to anyone but u | |||||
213 |
|
213 | |||
214 | ''' |
|
214 | ''' | |
215 |
|
215 | |||
|
216 | from __future__ import annotations | |||
216 |
|
217 | |||
217 | from mercurial.i18n import _ |
|
218 | from mercurial.i18n import _ | |
218 | from mercurial import ( |
|
219 | from mercurial import ( |
@@ -10,6 +10,7 This extension provides an ``amend`` com | |||||
10 | ``commit --amend`` but does not prompt an editor. |
|
10 | ``commit --amend`` but does not prompt an editor. | |
11 | """ |
|
11 | """ | |
12 |
|
12 | |||
|
13 | from __future__ import annotations | |||
13 |
|
14 | |||
14 | from mercurial.i18n import _ |
|
15 | from mercurial.i18n import _ | |
15 | from mercurial import ( |
|
16 | from mercurial import ( |
@@ -24,6 +24,7 The threshold at which a file is conside | |||||
24 | # |
|
24 | # | |
25 | # See http://markmail.org/thread/5pxnljesvufvom57 for context. |
|
25 | # See http://markmail.org/thread/5pxnljesvufvom57 for context. | |
26 |
|
26 | |||
|
27 | from __future__ import annotations | |||
27 |
|
28 | |||
28 | from mercurial.i18n import _ |
|
29 | from mercurial.i18n import _ | |
29 | from mercurial import ( |
|
30 | from mercurial import ( |
@@ -11,6 +11,7 | |||||
11 | A terminal with UTF-8 support and monospace narrow text are required. |
|
11 | A terminal with UTF-8 support and monospace narrow text are required. | |
12 | ''' |
|
12 | ''' | |
13 |
|
13 | |||
|
14 | from __future__ import annotations | |||
14 |
|
15 | |||
15 | from mercurial.i18n import _ |
|
16 | from mercurial.i18n import _ | |
16 | from mercurial import ( |
|
17 | from mercurial import ( |
@@ -42,6 +42,7 Examples:: | |||||
42 |
|
42 | |||
43 | """ |
|
43 | """ | |
44 |
|
44 | |||
|
45 | from __future__ import annotations | |||
45 |
|
46 | |||
46 | import re |
|
47 | import re | |
47 |
|
48 |
@@ -14,6 +14,8 | |||||
14 | :hg push -B .: push active bookmark |
|
14 | :hg push -B .: push active bookmark | |
15 | """ |
|
15 | """ | |
16 |
|
16 | |||
|
17 | from __future__ import annotations | |||
|
18 | ||||
17 | from mercurial.i18n import _ |
|
19 | from mercurial.i18n import _ | |
18 | from mercurial import ( |
|
20 | from mercurial import ( | |
19 | bookmarks, |
|
21 | bookmarks, |
@@ -291,6 +291,7 All the above add a comment to the Bugzi | |||||
291 | Changeset commit comment. Bug 1234. |
|
291 | Changeset commit comment. Bug 1234. | |
292 | ''' |
|
292 | ''' | |
293 |
|
293 | |||
|
294 | from __future__ import annotations | |||
294 |
|
295 | |||
295 | import json |
|
296 | import json | |
296 | import re |
|
297 | import re |
@@ -31,6 +31,7 following option: | |||||
31 | :config-doc:`censor.policy` |
|
31 | :config-doc:`censor.policy` | |
32 | """ |
|
32 | """ | |
33 |
|
33 | |||
|
34 | from __future__ import annotations | |||
34 |
|
35 | |||
35 | from mercurial.i18n import _ |
|
36 | from mercurial.i18n import _ | |
36 | from mercurial.node import short |
|
37 | from mercurial.node import short |
@@ -14,6 +14,7 This extension is deprecated. You should | |||||
14 | "children(REV)"` instead. |
|
14 | "children(REV)"` instead. | |
15 | ''' |
|
15 | ''' | |
16 |
|
16 | |||
|
17 | from __future__ import annotations | |||
17 |
|
18 | |||
18 | from mercurial.i18n import _ |
|
19 | from mercurial.i18n import _ | |
19 | from mercurial import ( |
|
20 | from mercurial import ( |
@@ -8,6 +8,7 | |||||
8 |
|
8 | |||
9 | '''command to display statistics about repository history''' |
|
9 | '''command to display statistics about repository history''' | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
11 |
|
12 | |||
12 | import datetime |
|
13 | import datetime | |
13 | import os |
|
14 | import os |
@@ -308,6 +308,7 the `$HGCB_BUNDLE_URL` environment varia | |||||
308 | If the file was already deleted, the command must still succeed. |
|
308 | If the file was already deleted, the command must still succeed. | |
309 | """ |
|
309 | """ | |
310 |
|
310 | |||
|
311 | from __future__ import annotations | |||
311 |
|
312 | |||
312 | import os |
|
313 | import os | |
313 | import weakref |
|
314 | import weakref |
@@ -5,6 +5,7 | |||||
5 |
|
5 | |||
6 | '''close arbitrary heads without checking them out first''' |
|
6 | '''close arbitrary heads without checking them out first''' | |
7 |
|
7 | |||
|
8 | from __future__ import annotations | |||
8 |
|
9 | |||
9 | from mercurial.i18n import _ |
|
10 | from mercurial.i18n import _ | |
10 | from mercurial import ( |
|
11 | from mercurial import ( |
@@ -7,6 +7,7 | |||||
7 |
|
7 | |||
8 | '''adds a new flag extras to commit (ADVANCED)''' |
|
8 | '''adds a new flag extras to commit (ADVANCED)''' | |
9 |
|
9 | |||
|
10 | from __future__ import annotations | |||
10 |
|
11 | |||
11 | import re |
|
12 | import re | |
12 |
|
13 |
@@ -7,6 +7,7 | |||||
7 |
|
7 | |||
8 | '''import revisions from foreign VCS repositories into Mercurial''' |
|
8 | '''import revisions from foreign VCS repositories into Mercurial''' | |
9 |
|
9 | |||
|
10 | from __future__ import annotations | |||
10 |
|
11 | |||
11 | from mercurial.i18n import _ |
|
12 | from mercurial.i18n import _ | |
12 | from mercurial import registrar |
|
13 | from mercurial import registrar |
@@ -9,6 +9,8 | |||||
9 | # with Bazaar or `bzr`, that was formerly known as Bazaar-NG; |
|
9 | # with Bazaar or `bzr`, that was formerly known as Bazaar-NG; | |
10 | # it cannot access `bar` repositories, but they were never used very much. |
|
10 | # it cannot access `bar` repositories, but they were never used very much. | |
11 |
|
11 | |||
|
12 | from __future__ import annotations | |||
|
13 | ||||
12 | import os |
|
14 | import os | |
13 |
|
15 | |||
14 | from mercurial.i18n import _ |
|
16 | from mercurial.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 base64 |
|
10 | import base64 | |
9 | import os |
|
11 | import os | |
10 | import pickle |
|
12 | import pickle |
@@ -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 heapq |
|
11 | import heapq | |
10 | import os |
|
12 | import os |
@@ -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 errno |
|
10 | import errno | |
9 | import os |
|
11 | import os | |
10 | import re |
|
12 | import re |
@@ -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 functools |
|
10 | import functools | |
9 | import os |
|
11 | import os | |
10 | import pickle |
|
12 | import pickle |
@@ -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 os |
|
10 | import os | |
9 | import re |
|
11 | import re | |
10 | import shutil |
|
12 | import shutil |
@@ -4,6 +4,7 | |||||
4 | # This software may be used and distributed according to the terms of the |
|
4 | # This software may be used and distributed according to the terms of the | |
5 | # GNU General Public License version 2 or any later version. |
|
5 | # GNU General Public License version 2 or any later version. | |
6 |
|
6 | |||
|
7 | from __future__ import annotations | |||
7 |
|
8 | |||
8 | import posixpath |
|
9 | import posixpath | |
9 | import typing |
|
10 | import typing |
@@ -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 os |
|
10 | import os | |
9 |
|
11 | |||
10 | from mercurial.i18n import _ |
|
12 | from mercurial.i18n import _ |
@@ -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 os |
|
11 | import os | |
10 | import shutil |
|
12 | import shutil | |
11 | import stat |
|
13 | import stat |
@@ -17,6 +17,8 | |||||
17 | # the converted revision to have a different identity than the |
|
17 | # the converted revision to have a different identity than the | |
18 | # source. |
|
18 | # source. | |
19 |
|
19 | |||
|
20 | from __future__ import annotations | |||
|
21 | ||||
20 | import os |
|
22 | import os | |
21 | import re |
|
23 | import re | |
22 | import time |
|
24 | import time |
@@ -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 os |
|
11 | import os | |
10 | import re |
|
12 | import re | |
11 | from typing import ( |
|
13 | from typing 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 marshal |
|
10 | import marshal | |
9 | import re |
|
11 | import re | |
10 |
|
12 |
@@ -2,6 +2,8 | |||||
2 | # |
|
2 | # | |
3 | # Copyright(C) 2007 Daniel Holth et al |
|
3 | # Copyright(C) 2007 Daniel Holth et al | |
4 |
|
4 | |||
|
5 | from __future__ import annotations | |||
|
6 | ||||
5 | import codecs |
|
7 | import codecs | |
6 | import locale |
|
8 | import locale | |
7 | import os |
|
9 | import os |
@@ -17,6 +17,8 | |||||
17 | # You should have received a copy of the GNU General Public License |
|
17 | # You should have received a copy of the GNU General Public License | |
18 | # along with this program; if not, see <http://www.gnu.org/licenses/>. |
|
18 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
19 |
|
19 | |||
|
20 | from __future__ import annotations | |||
|
21 | ||||
20 | # pytype: disable=import-error |
|
22 | # pytype: disable=import-error | |
21 | import svn.client |
|
23 | import svn.client | |
22 | import svn.core |
|
24 | import svn.core |
@@ -91,6 +91,7 See :hg:`help patterns` for more informa | |||||
91 | used. |
|
91 | used. | |
92 | """ |
|
92 | """ | |
93 |
|
93 | |||
|
94 | from __future__ import annotations | |||
94 |
|
95 | |||
95 | import os |
|
96 | import os | |
96 | import re |
|
97 | import re |
@@ -81,6 +81,7 needed files, so running the external di | |||||
81 | pretty fast (at least faster than having to compare the entire tree). |
|
81 | pretty fast (at least faster than having to compare the entire tree). | |
82 | ''' |
|
82 | ''' | |
83 |
|
83 | |||
|
84 | from __future__ import annotations | |||
84 |
|
85 | |||
85 | import os |
|
86 | import os | |
86 | import re |
|
87 | import re |
@@ -45,6 +45,7 service entry controls the service name | |||||
45 |
|
45 | |||
46 | ''' |
|
46 | ''' | |
47 |
|
47 | |||
|
48 | from __future__ import annotations | |||
48 |
|
49 | |||
49 | import os |
|
50 | import os | |
50 | from mercurial.i18n import _ |
|
51 | from mercurial.i18n import _ |
@@ -102,6 +102,8 annotate cache greatly. Run "debugbuildl | |||||
102 | # * format changes to the revmap file (maybe use length-encoding |
|
102 | # * format changes to the revmap file (maybe use length-encoding | |
103 | # instead of null-terminated file paths at least?) |
|
103 | # instead of null-terminated file paths at least?) | |
104 |
|
104 | |||
|
105 | from __future__ import annotations | |||
|
106 | ||||
105 | from mercurial.i18n import _ |
|
107 | from mercurial.i18n import _ | |
106 | from mercurial import ( |
|
108 | from mercurial import ( | |
107 | error as hgerror, |
|
109 | error as hgerror, |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 | from typing import ( |
|
11 | from typing import ( |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import collections |
|
10 | import collections | |
10 | import contextlib |
|
11 | import contextlib |
@@ -4,6 +4,7 | |||||
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
|
7 | from __future__ import annotations | |||
7 |
|
8 | |||
8 |
|
9 | |||
9 | class CorruptedFileError(Exception): |
|
10 | class CorruptedFileError(Exception): |
@@ -4,6 +4,7 | |||||
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
|
7 | from __future__ import annotations | |||
7 |
|
8 | |||
8 | from mercurial.node import ( |
|
9 | from mercurial.node import ( | |
9 | hex, |
|
10 | hex, |
@@ -4,6 +4,7 | |||||
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
|
7 | from __future__ import annotations | |||
7 |
|
8 | |||
8 | import contextlib |
|
9 | import contextlib | |
9 | import os |
|
10 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import bisect |
|
10 | import bisect | |
10 | import io |
|
11 | import io |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from mercurial import ( |
|
10 | from mercurial import ( | |
10 | context as hgcontext, |
|
11 | context as hgcontext, |
@@ -7,6 +7,8 | |||||
7 | # The format specification for fast-import streams can be found at |
|
7 | # The format specification for fast-import streams can be found at | |
8 | # https://git-scm.com/docs/git-fast-import#_input_format |
|
8 | # https://git-scm.com/docs/git-fast-import#_input_format | |
9 |
|
9 | |||
|
10 | from __future__ import annotations | |||
|
11 | ||||
10 | import re |
|
12 | import re | |
11 |
|
13 | |||
12 | from mercurial.i18n import _ |
|
14 | from mercurial.i18n import _ |
@@ -7,6 +7,7 | |||||
7 |
|
7 | |||
8 | '''pull, update and merge in one command (DEPRECATED)''' |
|
8 | '''pull, update and merge in one command (DEPRECATED)''' | |
9 |
|
9 | |||
|
10 | from __future__ import annotations | |||
10 |
|
11 | |||
11 | from mercurial.i18n import _ |
|
12 | from mercurial.i18n import _ | |
12 | from mercurial.node import short |
|
13 | from mercurial.node import short |
@@ -122,6 +122,7 perform other post-fixing work. The supp | |||||
122 | previously passed to the "postfixfile" hook. |
|
122 | previously passed to the "postfixfile" hook. | |
123 | """ |
|
123 | """ | |
124 |
|
124 | |||
|
125 | from __future__ import annotations | |||
125 |
|
126 | |||
126 | import collections |
|
127 | import collections | |
127 | import itertools |
|
128 | import itertools |
@@ -107,6 +107,7 created. | |||||
107 | # The issues related to nested repos and subrepos are probably not fundamental |
|
107 | # The issues related to nested repos and subrepos are probably not fundamental | |
108 | # ones. Patches to fix them are welcome. |
|
108 | # ones. Patches to fix them are welcome. | |
109 |
|
109 | |||
|
110 | from __future__ import annotations | |||
110 |
|
111 | |||
111 | import codecs |
|
112 | import codecs | |
112 | import os |
|
113 | import os |
@@ -26,6 +26,8 | |||||
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
28 |
|
28 | |||
|
29 | from __future__ import annotations | |||
|
30 | ||||
29 | import inspect |
|
31 | import inspect | |
30 | import math |
|
32 | import math | |
31 | import os |
|
33 | import os |
@@ -26,6 +26,8 | |||||
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
28 |
|
28 | |||
|
29 | from __future__ import annotations | |||
|
30 | ||||
29 |
|
31 | |||
30 | def parse_version(vstr): |
|
32 | def parse_version(vstr): | |
31 | res = 0 |
|
33 | res = 0 |
@@ -26,6 +26,8 | |||||
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
28 |
|
28 | |||
|
29 | from __future__ import annotations | |||
|
30 | ||||
29 | import sys |
|
31 | import sys | |
30 |
|
32 | |||
31 |
|
33 |
@@ -26,6 +26,8 | |||||
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
28 |
|
28 | |||
|
29 | from __future__ import annotations | |||
|
30 | ||||
29 | import sys |
|
31 | import sys | |
30 |
|
32 | |||
31 | from . import compat |
|
33 | from . import compat |
@@ -26,6 +26,8 | |||||
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
28 |
|
28 | |||
|
29 | from __future__ import annotations | |||
|
30 | ||||
29 | import ctypes |
|
31 | import ctypes | |
30 |
|
32 | |||
31 |
|
33 |
@@ -26,6 +26,8 | |||||
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
28 |
|
28 | |||
|
29 | from __future__ import annotations | |||
|
30 | ||||
29 | import binascii |
|
31 | import binascii | |
30 | import collections |
|
32 | import collections | |
31 | import ctypes |
|
33 | import ctypes |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import errno |
|
10 | import errno | |
10 | import os |
|
11 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import getpass |
|
10 | import getpass | |
10 |
|
11 |
@@ -4,6 +4,7 This is currently super experimental. It | |||||
4 | firstborn a la Rumpelstiltskin, etc. |
|
4 | firstborn a la Rumpelstiltskin, etc. | |
5 | """ |
|
5 | """ | |
6 |
|
6 | |||
|
7 | from __future__ import annotations | |||
7 |
|
8 | |||
8 | import os |
|
9 | import os | |
9 |
|
10 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import contextlib |
|
3 | import contextlib | |
2 | import os |
|
4 | import os | |
3 |
|
5 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | from mercurial.i18n import _ |
|
3 | from mercurial.i18n import _ | |
2 |
|
4 | |||
3 | from mercurial.node import ( |
|
5 | from mercurial.node import ( |
@@ -1,5 +1,7 | |||||
1 | """utilities to assist in working with pygit2""" |
|
1 | """utilities to assist in working with pygit2""" | |
2 |
|
2 | |||
|
3 | from __future__ import annotations | |||
|
4 | ||||
3 | from mercurial.node import bin, sha1nodeconstants |
|
5 | from mercurial.node import bin, sha1nodeconstants | |
4 |
|
6 | |||
5 | pygit2_module = None |
|
7 | pygit2_module = None |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import collections |
|
3 | import collections | |
2 | import os |
|
4 | import os | |
3 | import sqlite3 |
|
5 | import sqlite3 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | from mercurial import ( |
|
3 | from mercurial import ( | |
2 | match as matchmod, |
|
4 | match as matchmod, | |
3 | pathutil, |
|
5 | pathutil, |
@@ -15,6 +15,7 If an unknown command or parameter combi | |||||
15 | produced. |
|
15 | produced. | |
16 | """ |
|
16 | """ | |
17 |
|
17 | |||
|
18 | from __future__ import annotations | |||
18 |
|
19 | |||
19 | import getopt |
|
20 | import getopt | |
20 | import re |
|
21 | import re |
@@ -5,6 +5,7 | |||||
5 |
|
5 | |||
6 | '''commands to sign and verify changesets''' |
|
6 | '''commands to sign and verify changesets''' | |
7 |
|
7 | |||
|
8 | from __future__ import annotations | |||
8 |
|
9 | |||
9 | import binascii |
|
10 | import binascii | |
10 | import os |
|
11 | import os |
@@ -15,6 +15,7 commands. When this options is given, an | |||||
15 | revision graph is also shown. |
|
15 | revision graph is also shown. | |
16 | ''' |
|
16 | ''' | |
17 |
|
17 | |||
|
18 | from __future__ import annotations | |||
18 |
|
19 | |||
19 | from mercurial.i18n import _ |
|
20 | from mercurial.i18n import _ | |
20 | from mercurial import ( |
|
21 | from mercurial import ( |
@@ -34,6 +34,7 Revisions context menu will now display | |||||
34 | vdiff on hovered and selected revisions. |
|
34 | vdiff on hovered and selected revisions. | |
35 | ''' |
|
35 | ''' | |
36 |
|
36 | |||
|
37 | from __future__ import annotations | |||
37 |
|
38 | |||
38 | import os |
|
39 | import os | |
39 |
|
40 |
@@ -26,6 +26,7 Pygments will try very hard to identify | |||||
26 | match (even matches with a low confidence score) will be used. |
|
26 | match (even matches with a low confidence score) will be used. | |
27 | """ |
|
27 | """ | |
28 |
|
28 | |||
|
29 | from __future__ import annotations | |||
29 |
|
30 | |||
30 | from . import highlight |
|
31 | from . import highlight | |
31 | from mercurial.hgweb import ( |
|
32 | from mercurial.hgweb import ( |
@@ -8,6 +8,7 | |||||
8 | # The original module was split in an interface and an implementation |
|
8 | # The original module was split in an interface and an implementation | |
9 | # file to defer pygments loading and speedup extension setup. |
|
9 | # file to defer pygments loading and speedup extension setup. | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
11 |
|
12 | |||
12 | from mercurial import demandimport |
|
13 | from mercurial import demandimport | |
13 |
|
14 |
@@ -190,6 +190,7 unexpectedly:: | |||||
190 |
|
190 | |||
191 | """ |
|
191 | """ | |
192 |
|
192 | |||
|
193 | from __future__ import annotations | |||
193 |
|
194 | |||
194 | # chistedit dependencies that are not available everywhere |
|
195 | # chistedit dependencies that are not available everywhere | |
195 | try: |
|
196 | try: |
@@ -13,6 +13,9 implement them as individual hooks or me | |||||
13 | extension as option. The functionality itself is planned to be supported |
|
13 | extension as option. The functionality itself is planned to be supported | |
14 | long-term. |
|
14 | long-term. | |
15 | """ |
|
15 | """ | |
|
16 | ||||
|
17 | from __future__ import annotations | |||
|
18 | ||||
16 | from . import ( |
|
19 | from . import ( | |
17 | changeset_obsoleted, |
|
20 | changeset_obsoleted, | |
18 | changeset_published, |
|
21 | changeset_published, |
@@ -17,6 +17,7 Usage: | |||||
17 | python:hgext.hooklib.changeset_obsoleted.hook |
|
17 | python:hgext.hooklib.changeset_obsoleted.hook | |
18 | """ |
|
18 | """ | |
19 |
|
19 | |||
|
20 | from __future__ import annotations | |||
20 |
|
21 | |||
21 | import email.errors as emailerrors |
|
22 | import email.errors as emailerrors | |
22 | import email.utils as emailutils |
|
23 | import email.utils as emailutils |
@@ -17,6 +17,7 Usage: | |||||
17 | python:hgext.hooklib.changeset_published.hook |
|
17 | python:hgext.hooklib.changeset_published.hook | |
18 | """ |
|
18 | """ | |
19 |
|
19 | |||
|
20 | from __future__ import annotations | |||
20 |
|
21 | |||
21 | import email.errors as emailerrors |
|
22 | import email.errors as emailerrors | |
22 | import email.utils as emailutils |
|
23 | import email.utils as emailutils |
@@ -14,6 +14,7 Usage: | |||||
14 | python:hgext.hooklib.enforce_draft_commits.hook |
|
14 | python:hgext.hooklib.enforce_draft_commits.hook | |
15 | """ |
|
15 | """ | |
16 |
|
16 | |||
|
17 | from __future__ import annotations | |||
17 |
|
18 | |||
18 | from mercurial.i18n import _ |
|
19 | from mercurial.i18n import _ | |
19 | from mercurial import ( |
|
20 | from mercurial import ( |
@@ -14,6 +14,7 Usage: | |||||
14 | python:hgext.hooklib.reject_merge_commits.hook |
|
14 | python:hgext.hooklib.reject_merge_commits.hook | |
15 | """ |
|
15 | """ | |
16 |
|
16 | |||
|
17 | from __future__ import annotations | |||
17 |
|
18 | |||
18 | from mercurial.i18n import _ |
|
19 | from mercurial.i18n import _ | |
19 | from mercurial import ( |
|
20 | from mercurial import ( |
@@ -14,6 +14,7 Usage: | |||||
14 | python:hgext.hooklib.reject_new_heads.hook |
|
14 | python:hgext.hooklib.reject_new_heads.hook | |
15 | """ |
|
15 | """ | |
16 |
|
16 | |||
|
17 | from __future__ import annotations | |||
17 |
|
18 | |||
18 | from mercurial.i18n import _ |
|
19 | from mercurial.i18n import _ | |
19 | from mercurial import ( |
|
20 | from mercurial import ( |
@@ -11,6 +11,7 bookmarks were previously located. | |||||
11 |
|
11 | |||
12 | """ |
|
12 | """ | |
13 |
|
13 | |||
|
14 | from __future__ import annotations | |||
14 |
|
15 | |||
15 | import collections |
|
16 | import collections | |
16 | import os |
|
17 | import os |
@@ -83,6 +83,8 like CVS' $Log$, are not supported. A ke | |||||
83 | ''' |
|
83 | ''' | |
84 |
|
84 | |||
85 |
|
85 | |||
|
86 | from __future__ import annotations | |||
|
87 | ||||
86 | import os |
|
88 | import os | |
87 | import re |
|
89 | import re | |
88 | import weakref |
|
90 | import weakref |
@@ -105,6 +105,8 explicitly do so with the --large flag p | |||||
105 | command. |
|
105 | command. | |
106 | ''' |
|
106 | ''' | |
107 |
|
107 | |||
|
108 | from __future__ import annotations | |||
|
109 | ||||
108 | from mercurial import ( |
|
110 | from mercurial import ( | |
109 | cmdutil, |
|
111 | cmdutil, | |
110 | configitems, |
|
112 | configitems, |
@@ -8,6 +8,8 | |||||
8 |
|
8 | |||
9 | '''base class for store implementations and store-related utility code''' |
|
9 | '''base class for store implementations and store-related utility code''' | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
|
12 | ||||
11 | from mercurial.i18n import _ |
|
13 | from mercurial.i18n import _ | |
12 |
|
14 | |||
13 | from mercurial.node import short |
|
15 | from mercurial.node import short |
@@ -8,6 +8,8 | |||||
8 |
|
8 | |||
9 | '''High-level command function for lfconvert, plus the cmdtable.''' |
|
9 | '''High-level command function for lfconvert, plus the cmdtable.''' | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
|
12 | ||||
11 | import binascii |
|
13 | import binascii | |
12 | import os |
|
14 | import os | |
13 | import shutil |
|
15 | import shutil |
@@ -8,6 +8,8 | |||||
8 |
|
8 | |||
9 | '''largefiles utility code: must not import other modules in this package.''' |
|
9 | '''largefiles utility code: must not import other modules in this package.''' | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
|
12 | ||||
11 | import contextlib |
|
13 | import contextlib | |
12 | import copy |
|
14 | import copy | |
13 | import os |
|
15 | import os |
@@ -8,6 +8,8 | |||||
8 |
|
8 | |||
9 | '''store class for local filesystem''' |
|
9 | '''store class for local filesystem''' | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
|
12 | ||||
11 | from mercurial.i18n import _ |
|
13 | from mercurial.i18n import _ | |
12 | from mercurial.pycompat import open |
|
14 | from mercurial.pycompat import open | |
13 | from mercurial import util |
|
15 | from mercurial import util |
@@ -8,6 +8,8 | |||||
8 |
|
8 | |||
9 | '''Overridden Mercurial commands and functions for the largefiles extension''' |
|
9 | '''Overridden Mercurial commands and functions for the largefiles extension''' | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
|
12 | ||||
11 | import contextlib |
|
13 | import contextlib | |
12 | import copy |
|
14 | import copy | |
13 | import os |
|
15 | import os |
@@ -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 os |
|
8 | import os | |
7 |
|
9 | |||
8 | from mercurial.i18n import _ |
|
10 | from mercurial.i18n import _ |
@@ -6,6 +6,8 | |||||
6 |
|
6 | |||
7 | '''remote largefile store; the base class for wirestore''' |
|
7 | '''remote largefile store; the base class for wirestore''' | |
8 |
|
8 | |||
|
9 | from __future__ import annotations | |||
|
10 | ||||
9 | from mercurial.i18n import _ |
|
11 | from mercurial.i18n import _ | |
10 |
|
12 | |||
11 | from mercurial import ( |
|
13 | from mercurial import ( |
@@ -8,6 +8,8 | |||||
8 |
|
8 | |||
9 | '''setup for largefiles repositories: reposetup''' |
|
9 | '''setup for largefiles repositories: reposetup''' | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
|
12 | ||||
11 | import copy |
|
13 | import copy | |
12 |
|
14 | |||
13 | from mercurial.i18n import _ |
|
15 | from mercurial.i18n import _ |
@@ -1,6 +1,7 | |||||
1 | # This software may be used and distributed according to the terms of the |
|
1 | # This software may be used and distributed according to the terms of the | |
2 | # GNU General Public License version 2 or any later version. |
|
2 | # GNU General Public License version 2 or any later version. | |
3 |
|
3 | |||
|
4 | from __future__ import annotations | |||
4 |
|
5 | |||
5 | import re |
|
6 | import re | |
6 |
|
7 |
@@ -5,6 +5,8 | |||||
5 |
|
5 | |||
6 | '''largefile store working over Mercurial's wire protocol''' |
|
6 | '''largefile store working over Mercurial's wire protocol''' | |
7 |
|
7 | |||
|
8 | from __future__ import annotations | |||
|
9 | ||||
8 | from . import ( |
|
10 | from . import ( | |
9 | lfutil, |
|
11 | lfutil, | |
10 | remotestore, |
|
12 | remotestore, |
@@ -120,6 +120,7 Configs:: | |||||
120 | usercache = /path/to/global/cache |
|
120 | usercache = /path/to/global/cache | |
121 | """ |
|
121 | """ | |
122 |
|
122 | |||
|
123 | from __future__ import annotations | |||
123 |
|
124 | |||
124 | import sys |
|
125 | import sys | |
125 |
|
126 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import contextlib |
|
10 | import contextlib | |
10 | import errno |
|
11 | import errno |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import re |
|
10 | import re | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import datetime |
|
10 | import datetime | |
10 | import errno |
|
11 | import errno |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import hashlib |
|
10 | import hashlib | |
10 |
|
11 |
@@ -32,6 +32,7 not ensure that they exit cleanly. | |||||
32 |
|
32 | |||
33 | """ |
|
33 | """ | |
34 |
|
34 | |||
|
35 | from __future__ import annotations | |||
35 |
|
36 | |||
36 | import os |
|
37 | import os | |
37 |
|
38 |
@@ -62,6 +62,7 This extension used to provide a strip c | |||||
62 | in the strip extension. |
|
62 | in the strip extension. | |
63 | ''' |
|
63 | ''' | |
64 |
|
64 | |||
|
65 | from __future__ import annotations | |||
65 |
|
66 | |||
66 | import os |
|
67 | import os | |
67 | import re |
|
68 | import re |
@@ -6,6 +6,7 | |||||
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 | '''create clones which fetch history data for subset of files (EXPERIMENTAL)''' |
|
7 | '''create clones which fetch history data for subset of files (EXPERIMENTAL)''' | |
8 |
|
8 | |||
|
9 | from __future__ import annotations | |||
9 |
|
10 | |||
10 | from mercurial import ( |
|
11 | from mercurial import ( | |
11 | localrepo, |
|
12 | localrepo, |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import struct |
|
10 | import struct | |
10 |
|
11 |
@@ -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 itertools |
|
10 | import itertools | |
9 | import os |
|
11 | import os | |
10 |
|
12 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from mercurial.i18n import _ |
|
10 | from mercurial.i18n import _ | |
10 | from mercurial import error |
|
11 | from mercurial import error |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from mercurial import wireprototypes |
|
10 | from mercurial import wireprototypes | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from mercurial import ( |
|
10 | from mercurial import ( | |
10 | registrar, |
|
11 | registrar, |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from mercurial.i18n import _ |
|
10 | from mercurial.i18n import _ | |
10 |
|
11 |
@@ -155,6 +155,8 web.baseurl | |||||
155 |
|
155 | |||
156 | ''' |
|
156 | ''' | |
157 |
|
157 | |||
|
158 | from __future__ import annotations | |||
|
159 | ||||
158 | import email.errors as emailerrors |
|
160 | import email.errors as emailerrors | |
159 | import email.utils as emailutils |
|
161 | import email.utils as emailutils | |
160 | import fnmatch |
|
162 | import fnmatch |
@@ -22,6 +22,8 takes precedence over ignore options and | |||||
22 | attend-cat = false |
|
22 | attend-cat = false | |
23 | ''' |
|
23 | ''' | |
24 |
|
24 | |||
|
25 | from __future__ import annotations | |||
|
26 | ||||
25 | from mercurial import ( |
|
27 | from mercurial import ( | |
26 | cmdutil, |
|
28 | cmdutil, | |
27 | commands, |
|
29 | commands, |
@@ -72,6 +72,8 You can set patchbomb to always ask for | |||||
72 | ``patchbomb.confirm`` to true. |
|
72 | ``patchbomb.confirm`` to true. | |
73 | ''' |
|
73 | ''' | |
74 |
|
74 | |||
|
75 | from __future__ import annotations | |||
|
76 | ||||
75 | import email.encoders as emailencoders |
|
77 | import email.encoders as emailencoders | |
76 | import email.mime.base as emimebase |
|
78 | import email.mime.base as emimebase | |
77 | import email.mime.multipart as emimemultipart |
|
79 | import email.mime.multipart as emimemultipart |
@@ -57,6 +57,7 Config:: | |||||
57 | example.phabtoken = cli-xxxxxxxxxxxxxxxxxxxxxxxxxxxx |
|
57 | example.phabtoken = cli-xxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
58 | """ |
|
58 | """ | |
59 |
|
59 | |||
|
60 | from __future__ import annotations | |||
60 |
|
61 | |||
61 | import base64 |
|
62 | import base64 | |
62 | import contextlib |
|
63 | import contextlib |
@@ -14,6 +14,7 For more information: | |||||
14 | https://mercurial-scm.org/wiki/RebaseExtension |
|
14 | https://mercurial-scm.org/wiki/RebaseExtension | |
15 | ''' |
|
15 | ''' | |
16 |
|
16 | |||
|
17 | from __future__ import annotations | |||
17 |
|
18 | |||
18 | import os |
|
19 | import os | |
19 |
|
20 |
@@ -10,6 +10,7 | |||||
10 | The feature provided by this extension has been moved into core Mercurial as |
|
10 | The feature provided by this extension has been moved into core Mercurial as | |
11 | :hg:`commit --interactive`.''' |
|
11 | :hg:`commit --interactive`.''' | |
12 |
|
12 | |||
|
13 | from __future__ import annotations | |||
13 |
|
14 | |||
14 | from mercurial.i18n import _ |
|
15 | from mercurial.i18n import _ | |
15 | from mercurial import ( |
|
16 | from mercurial import ( |
@@ -11,6 +11,7 The :hg:`releasenotes` command provided | |||||
11 | process simpler by automating it. |
|
11 | process simpler by automating it. | |
12 | """ |
|
12 | """ | |
13 |
|
13 | |||
|
14 | from __future__ import annotations | |||
14 |
|
15 | |||
15 | import difflib |
|
16 | import difflib | |
16 | import re |
|
17 | import re |
@@ -7,6 +7,8 | |||||
7 |
|
7 | |||
8 | """recreates hardlinks between repository clones""" |
|
8 | """recreates hardlinks between repository clones""" | |
9 |
|
9 | |||
|
10 | from __future__ import annotations | |||
|
11 | ||||
10 | import os |
|
12 | import os | |
11 | import stat |
|
13 | import stat | |
12 |
|
14 |
@@ -125,6 +125,8 Configs: | |||||
125 |
|
125 | |||
126 | """ |
|
126 | """ | |
127 |
|
127 | |||
|
128 | from __future__ import annotations | |||
|
129 | ||||
128 | import os |
|
130 | import os | |
129 | import time |
|
131 | import time | |
130 | import traceback |
|
132 | import traceback |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import collections |
|
3 | import collections | |
2 | import errno |
|
4 | import errno | |
3 | import mmap |
|
5 | import mmap |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import os |
|
3 | import os | |
2 | import shutil |
|
4 | import shutil | |
3 | import stat |
|
5 | import stat |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from mercurial import ( |
|
10 | from mercurial import ( | |
10 | hg, |
|
11 | hg, |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import struct |
|
3 | import struct | |
2 |
|
4 | |||
3 | from mercurial.i18n import _ |
|
5 | from mercurial.i18n import _ |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import threading |
|
3 | import threading | |
2 |
|
4 | |||
3 | from mercurial.node import ( |
|
5 | from mercurial.node import ( |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import struct |
|
3 | import struct | |
2 | import zlib |
|
4 | import zlib | |
3 |
|
5 |
@@ -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 os |
|
10 | import os | |
9 | import zlib |
|
11 | import zlib | |
10 |
|
12 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import io |
|
10 | import io | |
10 | import os |
|
11 | import os |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import struct |
|
3 | import struct | |
2 |
|
4 | |||
3 | from mercurial.node import ( |
|
5 | from mercurial.node import ( |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | from mercurial.node import ( |
|
3 | from mercurial.node import ( | |
2 | hex, |
|
4 | hex, | |
3 | sha1nodeconstants, |
|
5 | sha1nodeconstants, |
@@ -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 time |
|
11 | import time | |
10 |
|
12 |
@@ -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 |
|
12 | |||
11 | from typing import ( |
|
13 | from typing 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 os |
|
10 | import os | |
9 | import stat |
|
11 | import stat | |
10 | import time |
|
12 | import time |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import os |
|
3 | import os | |
2 | import time |
|
4 | import time | |
3 |
|
5 |
@@ -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 mercurial.i18n import _ |
|
10 | from mercurial.i18n import _ | |
9 | from mercurial.node import bin, hex |
|
11 | from mercurial.node import bin, hex | |
10 | from mercurial import ( |
|
12 | from mercurial 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 os |
|
10 | import os | |
9 |
|
11 | |||
10 | from mercurial.i18n import _ |
|
12 | from mercurial.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 |
|
10 | |||
9 | def wrapstore(store): |
|
11 | def wrapstore(store): | |
10 | class shallowstore(store.__class__): |
|
12 | class shallowstore(store.__class__): |
@@ -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 os |
|
11 | import os | |
10 | import stat |
|
12 | import stat |
@@ -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 mercurial.i18n import _ |
|
10 | from mercurial.i18n import _ | |
9 | from mercurial import verify |
|
11 | from mercurial import verify | |
10 |
|
12 |
@@ -24,6 +24,7 remotenames.hoistedpeer | |||||
24 | namespace (default: 'default') |
|
24 | namespace (default: 'default') | |
25 | """ |
|
25 | """ | |
26 |
|
26 | |||
|
27 | from __future__ import annotations | |||
27 |
|
28 | |||
28 | import collections.abc |
|
29 | import collections.abc | |
29 |
|
30 |
@@ -40,6 +40,8 You can override a predefined scheme by | |||||
40 | same name. |
|
40 | same name. | |
41 | """ |
|
41 | """ | |
42 |
|
42 | |||
|
43 | from __future__ import annotations | |||
|
44 | ||||
43 | import os |
|
45 | import os | |
44 | import re |
|
46 | import re | |
45 |
|
47 |
@@ -65,6 +65,7 The following ``share.`` config options | |||||
65 | and there are no untracked files, delete that share and create a new share. |
|
65 | and there are no untracked files, delete that share and create a new share. | |
66 | ''' |
|
66 | ''' | |
67 |
|
67 | |||
|
68 | from __future__ import annotations | |||
68 |
|
69 | |||
69 | from mercurial.i18n import _ |
|
70 | from mercurial.i18n import _ | |
70 | from mercurial import ( |
|
71 | from mercurial import ( |
@@ -25,6 +25,7 The following config options can influen | |||||
25 | performed. |
|
25 | performed. | |
26 | """ |
|
26 | """ | |
27 |
|
27 | |||
|
28 | from __future__ import annotations | |||
28 |
|
29 | |||
29 | from mercurial.i18n import _ |
|
30 | from mercurial.i18n import _ | |
30 | from mercurial.node import nullrev |
|
31 | from mercurial.node import nullrev |
@@ -71,6 +71,7 certain files:: | |||||
71 | tools/tests/** |
|
71 | tools/tests/** | |
72 | """ |
|
72 | """ | |
73 |
|
73 | |||
|
74 | from __future__ import annotations | |||
74 |
|
75 | |||
75 | from mercurial.i18n import _ |
|
76 | from mercurial.i18n import _ | |
76 | from mercurial import ( |
|
77 | from mercurial import ( |
@@ -7,6 +7,7 | |||||
7 | # GNU General Public License version 2 or any later version. |
|
7 | # GNU General Public License version 2 or any later version. | |
8 | """command to split a changeset into smaller ones (EXPERIMENTAL)""" |
|
8 | """command to split a changeset into smaller ones (EXPERIMENTAL)""" | |
9 |
|
9 | |||
|
10 | from __future__ import annotations | |||
10 |
|
11 | |||
11 | from mercurial.i18n import _ |
|
12 | from mercurial.i18n import _ | |
12 |
|
13 |
@@ -43,6 +43,7 option to ``sqlite`` to enable new repos | |||||
43 | # --extra-config-opt extensions.sqlitestore= \ |
|
43 | # --extra-config-opt extensions.sqlitestore= \ | |
44 | # --extra-config-opt storage.new-repo-backend=sqlite |
|
44 | # --extra-config-opt storage.new-repo-backend=sqlite | |
45 |
|
45 | |||
|
46 | from __future__ import annotations | |||
46 |
|
47 | |||
47 | import sqlite3 |
|
48 | import sqlite3 | |
48 | import struct |
|
49 | import struct |
@@ -7,6 +7,8 This extension allows you to strip chang | |||||
7 | repository. See the command help for details. |
|
7 | repository. See the command help for details. | |
8 | """ |
|
8 | """ | |
9 |
|
9 | |||
|
10 | from __future__ import annotations | |||
|
11 | ||||
10 | from mercurial import commands |
|
12 | from mercurial import commands | |
11 |
|
13 | |||
12 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
|
14 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
@@ -14,6 +14,8 Transplanted patches are recorded in .hg | |||||
14 | map from a changeset hash to its hash in the source repository. |
|
14 | map from a changeset hash to its hash in the source repository. | |
15 | ''' |
|
15 | ''' | |
16 |
|
16 | |||
|
17 | from __future__ import annotations | |||
|
18 | ||||
17 | import os |
|
19 | import os | |
18 |
|
20 | |||
19 | from mercurial.i18n import _ |
|
21 | from mercurial.i18n import _ |
@@ -17,6 +17,7 removed in the changeset will be left un | |||||
17 | added and removed in the working directory. |
|
17 | added and removed in the working directory. | |
18 | """ |
|
18 | """ | |
19 |
|
19 | |||
|
20 | from __future__ import annotations | |||
20 |
|
21 | |||
21 | from mercurial.i18n import _ |
|
22 | from mercurial.i18n import _ | |
22 |
|
23 |
@@ -45,6 +45,8 You can specify the encoding by config o | |||||
45 | It is useful for the users who want to commit with UTF-8 log message. |
|
45 | It is useful for the users who want to commit with UTF-8 log message. | |
46 | ''' |
|
46 | ''' | |
47 |
|
47 | |||
|
48 | from __future__ import annotations | |||
|
49 | ||||
48 | import os |
|
50 | import os | |
49 | import sys |
|
51 | import sys | |
50 |
|
52 |
@@ -41,6 +41,7 pushed or pulled:: | |||||
41 | # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr |
|
41 | # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr | |
42 | ''' |
|
42 | ''' | |
43 |
|
43 | |||
|
44 | from __future__ import annotations | |||
44 |
|
45 | |||
45 | import re |
|
46 | import re | |
46 | from mercurial.i18n import _ |
|
47 | from mercurial.i18n import _ |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | """ Multicast DNS Service Discovery for Python, v0.12 |
|
3 | """ Multicast DNS Service Discovery for Python, v0.12 | |
2 | Copyright (C) 2003, Paul Scott-Murphy |
|
4 | Copyright (C) 2003, Paul Scott-Murphy | |
3 |
|
5 |
@@ -23,6 +23,8 You can discover Zeroconf-enabled reposi | |||||
23 | zc-test = http://example.com:8000/test |
|
23 | zc-test = http://example.com:8000/test | |
24 | ''' |
|
24 | ''' | |
25 |
|
25 | |||
|
26 | from __future__ import annotations | |||
|
27 | ||||
26 | import os |
|
28 | import os | |
27 | import socket |
|
29 | import socket | |
28 | import time |
|
30 | import time |
@@ -1,4 +1,7 | |||||
1 | # name space package to host third party extensions |
|
1 | # name space package to host third party extensions | |
|
2 | ||||
|
3 | from __future__ import annotations | |||
|
4 | ||||
2 | import pkgutil |
|
5 | import pkgutil | |
3 |
|
6 | |||
4 | __path__ = pkgutil.extend_path(__path__, __name__) |
|
7 | __path__ = pkgutil.extend_path(__path__, __name__) |
@@ -2,6 +2,8 | |||||
2 | # |
|
2 | # | |
3 | # check-translation.py - check Mercurial specific translation problems |
|
3 | # check-translation.py - check Mercurial specific translation problems | |
4 |
|
4 | |||
|
5 | from __future__ import annotations | |||
|
6 | ||||
5 | import re |
|
7 | import re | |
6 |
|
8 | |||
7 | import polib |
|
9 | import polib |
@@ -20,6 +20,7 Use xgettext like normal to extract stri | |||||
20 | join the message cataloges to get the final catalog. |
|
20 | join the message cataloges to get the final catalog. | |
21 | """ |
|
21 | """ | |
22 |
|
22 | |||
|
23 | from __future__ import annotations | |||
23 |
|
24 | |||
24 | import inspect |
|
25 | import inspect | |
25 | import os |
|
26 | import os |
@@ -13,6 +13,7 modify entries, comments or metadata, et | |||||
13 | :func:`~polib.mofile` convenience functions. |
|
13 | :func:`~polib.mofile` convenience functions. | |
14 | """ |
|
14 | """ | |
15 |
|
15 | |||
|
16 | from __future__ import annotations | |||
16 |
|
17 | |||
17 | __author__ = 'David Jean Louis <izimobil@gmail.com>' |
|
18 | __author__ = 'David Jean Louis <izimobil@gmail.com>' | |
18 | __version__ = '1.0.7' |
|
19 | __version__ = '1.0.7' |
@@ -5,6 +5,7 | |||||
5 | # license: MIT/X11/Expat |
|
5 | # license: MIT/X11/Expat | |
6 | # |
|
6 | # | |
7 |
|
7 | |||
|
8 | from __future__ import annotations | |||
8 |
|
9 | |||
9 | import polib |
|
10 | import polib | |
10 | import re |
|
11 | import re |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | # Allow 'from mercurial import demandimport' to keep working. |
|
10 | # Allow 'from mercurial import demandimport' to keep working. | |
10 | import hgdemandimport |
|
11 | import hgdemandimport |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import heapq |
|
10 | import heapq | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import gzip |
|
10 | import gzip | |
10 | import os |
|
11 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import struct |
|
10 | import struct | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import struct |
|
10 | import struct | |
10 |
|
11 |
@@ -145,6 +145,7 future, dropping the stream may become a | |||||
145 | preserve. |
|
145 | preserve. | |
146 | """ |
|
146 | """ | |
147 |
|
147 | |||
|
148 | from __future__ import annotations | |||
148 |
|
149 | |||
149 | import collections |
|
150 | import collections | |
150 | import errno |
|
151 | import errno |
@@ -11,6 +11,7 This provides a read-only repository int | |||||
11 | were part of the actual repository. |
|
11 | were part of the actual repository. | |
12 | """ |
|
12 | """ | |
13 |
|
13 | |||
|
14 | from __future__ import annotations | |||
14 |
|
15 | |||
15 | import contextlib |
|
16 | import contextlib | |
16 | import os |
|
17 | import os |
@@ -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 . import repoview |
|
10 | from . import repoview | |
9 |
|
11 | |||
10 |
|
12 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import struct |
|
10 | import struct | |
10 |
|
11 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import cffi |
|
3 | import cffi | |
2 | import os |
|
4 | import os | |
3 |
|
5 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from typing import List |
|
10 | from typing import List | |
10 |
|
11 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import cffi |
|
3 | import cffi | |
2 | import os |
|
4 | import os | |
3 |
|
5 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 | import stat as statmod |
|
11 | import stat as statmod |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import cffi |
|
3 | import cffi | |
2 |
|
4 | |||
3 | ffi = cffi.FFI() |
|
5 | ffi = cffi.FFI() |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 | import struct |
|
11 | import struct |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import typing |
|
10 | import typing | |
10 |
|
11 |
@@ -39,6 +39,7 Config | |||||
39 | skiphash = False |
|
39 | skiphash = False | |
40 | """ |
|
40 | """ | |
41 |
|
41 | |||
|
42 | from __future__ import annotations | |||
42 |
|
43 | |||
43 | import inspect |
|
44 | import inspect | |
44 | import os |
|
45 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import copy as copymod |
|
10 | import copy as copymod | |
10 | import errno |
|
11 | import errno |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import re |
|
10 | import re | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 | import re |
|
11 | import re |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import gc |
|
10 | import gc | |
10 | import os |
|
11 | import os |
@@ -3,6 +3,7 | |||||
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 | |||
6 |
|
7 | |||
7 | from .i18n import _ |
|
8 | from .i18n import _ | |
8 | from .node import ( |
|
9 | from .node import ( |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import errno |
|
10 | import errno | |
10 | import os |
|
11 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import functools |
|
10 | import functools | |
10 | import re |
|
11 | import re |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import filecmp |
|
10 | import filecmp | |
10 | import os |
|
11 | import os |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import collections |
|
11 | import collections | |
11 | import os |
|
12 | import os |
@@ -8,6 +8,7 | |||||
8 | # This code is based on the Mark Edgington's crecord extension. |
|
8 | # This code is based on the Mark Edgington's crecord extension. | |
9 | # (Itself based on Bryan O'Sullivan's record extension.) |
|
9 | # (Itself based on Bryan O'Sullivan's record extension.) | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
11 |
|
12 | |||
12 | import os |
|
13 | import os | |
13 | import re |
|
14 | import re |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import heapq |
|
10 | import heapq | |
10 | import typing |
|
11 | import typing |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import re |
|
10 | import re | |
10 | import string |
|
11 | import string |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import binascii |
|
10 | import binascii | |
10 | import codecs |
|
11 | import codecs |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from .i18n import _ |
|
10 | from .i18n import _ | |
10 | from . import bookmarks, error, obsutil, scmutil, stack |
|
11 | from . import bookmarks, error, obsutil, scmutil, stack |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from .i18n import _ |
|
10 | from .i18n import _ | |
10 |
|
11 |
@@ -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 typing |
|
12 | import typing | |
11 |
|
13 | |||
12 | from typing import ( |
|
14 | from typing import ( |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import collections |
|
10 | import collections | |
10 | import contextlib |
|
11 | import contextlib |
@@ -3,6 +3,7 | |||||
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 | |||
6 |
|
7 | |||
7 | from typing import ( |
|
8 | from typing import ( | |
8 | Optional, |
|
9 | Optional, |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import struct |
|
10 | import struct | |
10 |
|
11 |
@@ -3,6 +3,7 | |||||
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 | |||
6 |
|
7 | |||
7 | import functools |
|
8 | import functools | |
8 | import os |
|
9 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import struct |
|
10 | import struct | |
10 | import typing |
|
11 | import typing |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import functools |
|
10 | import functools | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import errno |
|
10 | import errno | |
10 | import getopt |
|
11 | import getopt |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import locale |
|
10 | import locale | |
10 | import os |
|
11 | import os |
@@ -11,6 +11,7 This allows us to catch exceptions at hi | |||||
11 | imports. |
|
11 | imports. | |
12 | """ |
|
12 | """ | |
13 |
|
13 | |||
|
14 | from __future__ import annotations | |||
14 |
|
15 | |||
15 | import difflib |
|
16 | import difflib | |
16 |
|
17 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import collections |
|
10 | import collections | |
10 | import weakref |
|
11 | import weakref |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import ast |
|
10 | import ast | |
10 | import collections |
|
11 | import collections |
@@ -9,6 +9,7 | |||||
9 | ### Extension helper ### |
|
9 | ### Extension helper ### | |
10 | ##################################################################### |
|
10 | ##################################################################### | |
11 |
|
11 | |||
|
12 | from __future__ import annotations | |||
12 |
|
13 | |||
13 | from . import ( |
|
14 | from . import ( | |
14 | commands, |
|
15 | commands, |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import abc |
|
10 | import abc | |
10 | import functools |
|
11 | import functools |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import typing |
|
10 | import typing | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import contextlib |
|
10 | import contextlib | |
10 | import os |
|
11 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import re |
|
10 | import re | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from .i18n import _ |
|
10 | from .i18n import _ | |
10 | from . import ( |
|
11 | from . import ( |
@@ -105,6 +105,7 bar | |||||
105 | baz: foo, bar |
|
105 | baz: foo, bar | |
106 | """ |
|
106 | """ | |
107 |
|
107 | |||
|
108 | from __future__ import annotations | |||
108 |
|
109 | |||
109 | import contextlib |
|
110 | import contextlib | |
110 | import itertools |
|
111 | import itertools |
@@ -17,6 +17,7 context of the graph returned. Type is a | |||||
17 | Data depends on type. |
|
17 | Data depends on type. | |
18 | """ |
|
18 | """ | |
19 |
|
19 | |||
|
20 | from __future__ import annotations | |||
20 |
|
21 | |||
21 | import typing |
|
22 | import typing | |
22 |
|
23 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import difflib |
|
10 | import difflib | |
10 |
|
11 |
@@ -8,6 +8,7 | |||||
8 | # This software may be used and distributed according to the terms of the |
|
8 | # This software may be used and distributed according to the terms of the | |
9 | # GNU General Public License version 2 or any later version. |
|
9 | # GNU General Public License version 2 or any later version. | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
11 |
|
12 | |||
12 | import collections |
|
13 | import collections | |
13 | import contextlib |
|
14 | import contextlib |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import itertools |
|
10 | import itertools | |
10 | import re |
|
11 | import re |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import os |
|
11 | import os | |
11 | import posixpath |
|
12 | import posixpath |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import os |
|
11 | import os | |
11 |
|
12 |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import base64 |
|
11 | import base64 | |
11 | import errno |
|
12 | import errno |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import contextlib |
|
11 | import contextlib | |
11 | import os |
|
12 | import os |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import gc |
|
11 | import gc | |
11 | import os |
|
12 | import os |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | # import wsgiref.validate |
|
11 | # import wsgiref.validate | |
11 |
|
12 |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import errno |
|
11 | import errno | |
11 | import os |
|
12 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import copy |
|
10 | import copy | |
10 | import mimetypes |
|
11 | import mimetypes |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import copy |
|
11 | import copy | |
11 | import difflib |
|
12 | import difflib |
@@ -8,6 +8,7 | |||||
8 | # This was originally copied from the public domain code at |
|
8 | # This was originally copied from the public domain code at | |
9 | # http://www.python.org/dev/peps/pep-0333/#the-server-gateway-side |
|
9 | # http://www.python.org/dev/peps/pep-0333/#the-server-gateway-side | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
11 |
|
12 | |||
12 | from .. import encoding, pycompat |
|
13 | from .. import encoding, pycompat | |
13 |
|
14 |
@@ -9,6 +9,7 written by Barry Warsaw. | |||||
9 |
|
9 | |||
10 | # Regular expression that matches `special' characters in parameters, the |
|
10 | # Regular expression that matches `special' characters in parameters, the | |
11 | # existence of which force quoting of the parameter value. |
|
11 | # existence of which force quoting of the parameter value. | |
|
12 | from __future__ import annotations | |||
12 |
|
13 | |||
13 | import re |
|
14 | import re | |
14 |
|
15 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import contextlib |
|
10 | import contextlib | |
10 | import errno |
|
11 | import errno |
@@ -8,6 +8,7 | |||||
8 | # This software may be used and distributed according to the terms of the |
|
8 | # This software may be used and distributed according to the terms of the | |
9 | # GNU General Public License version 2 or any later version. |
|
9 | # GNU General Public License version 2 or any later version. | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
11 |
|
12 | |||
12 | import os |
|
13 | import os | |
13 |
|
14 |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import errno |
|
11 | import errno | |
11 | import io |
|
12 | import io |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import gettext as gettextmod |
|
10 | import gettext as gettextmod | |
10 | import locale |
|
11 | import locale |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import contextlib |
|
3 | import contextlib | |
2 |
|
4 | |||
3 | from . import util as interfaceutil |
|
5 | from . import util as interfaceutil |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | from ..i18n import _ |
|
11 | from ..i18n import _ | |
11 | from .. import error |
|
12 | from .. import error |
@@ -9,6 +9,7 | |||||
9 | # bookkeeping for declaring interfaces. So, we use stubs for various |
|
9 | # bookkeeping for declaring interfaces. So, we use stubs for various | |
10 | # zope.interface primitives unless instructed otherwise. |
|
10 | # zope.interface primitives unless instructed otherwise. | |
11 |
|
11 | |||
|
12 | from __future__ import annotations | |||
12 |
|
13 | |||
13 | from .. import encoding |
|
14 | from .. import encoding | |
14 |
|
15 |
@@ -82,6 +82,7 EXTRA ATTRIBUTES AND METHODS | |||||
82 |
|
82 | |||
83 | # $Id: keepalive.py,v 1.14 2006/04/04 21:00:32 mstenner Exp $ |
|
83 | # $Id: keepalive.py,v 1.14 2006/04/04 21:00:32 mstenner Exp $ | |
84 |
|
84 | |||
|
85 | from __future__ import annotations | |||
85 |
|
86 | |||
86 | import collections |
|
87 | import collections | |
87 | import hashlib |
|
88 | import hashlib |
@@ -19,6 +19,8 deletion is performed on the file, a jum | |||||
19 | in a new body of annotate information. |
|
19 | in a new body of annotate information. | |
20 | """ |
|
20 | """ | |
21 |
|
21 | |||
|
22 | from __future__ import annotations | |||
|
23 | ||||
22 | import abc |
|
24 | import abc | |
23 | import struct |
|
25 | import struct | |
24 | import typing |
|
26 | import typing |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import functools |
|
11 | import functools | |
11 | import os |
|
12 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import contextlib |
|
10 | import contextlib | |
10 | import errno |
|
11 | import errno |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import itertools |
|
10 | import itertools | |
10 | import os |
|
11 | import os |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | from .node import hex |
|
11 | from .node import hex | |
11 |
|
12 |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import errno |
|
11 | import errno | |
11 |
|
12 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import _lsprof |
|
3 | import _lsprof | |
2 | import sys |
|
4 | import sys | |
3 |
|
5 |
@@ -10,6 +10,7 This software may be used and distribute | |||||
10 | of the GNU General Public License, incorporated herein by reference. |
|
10 | of the GNU General Public License, incorporated herein by reference. | |
11 | """ |
|
11 | """ | |
12 |
|
12 | |||
|
13 | from __future__ import annotations | |||
13 |
|
14 | |||
14 | from . import pycompat |
|
15 | from . import pycompat | |
15 |
|
16 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import email |
|
10 | import email | |
10 | import email.charset |
|
11 | import email.charset |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import heapq |
|
10 | import heapq | |
10 | import itertools |
|
11 | import itertools |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import bisect |
|
10 | import bisect | |
10 | import copy |
|
11 | import copy |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import re |
|
10 | import re | |
10 | import struct |
|
11 | import struct |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import collections |
|
10 | import collections | |
10 | import struct |
|
11 | import struct |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import collections |
|
3 | import collections | |
2 | import shutil |
|
4 | import shutil | |
3 | import struct |
|
5 | import struct |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from .i18n import _ |
|
10 | from .i18n import _ | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from .i18n import _ |
|
10 | from .i18n import _ | |
10 | from . import ( |
|
11 | from . import ( |
@@ -18,6 +18,7 Remember to update https://mercurial-scm | |||||
18 | when adding support for new constructs. |
|
18 | when adding support for new constructs. | |
19 | """ |
|
19 | """ | |
20 |
|
20 | |||
|
21 | from __future__ import annotations | |||
21 |
|
22 | |||
22 | import re |
|
23 | import re | |
23 |
|
24 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | from .i18n import _ |
|
3 | from .i18n import _ | |
2 | from . import ( |
|
4 | from . import ( | |
3 | registrar, |
|
5 | registrar, |
@@ -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 weakref |
|
10 | import weakref | |
9 |
|
11 | |||
10 | from .i18n import _ |
|
12 | from .i18n import _ |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import binascii |
|
10 | import binascii | |
10 |
|
11 |
@@ -68,6 +68,8 comment associated with each format for | |||||
68 |
|
68 | |||
69 | """ |
|
69 | """ | |
70 |
|
70 | |||
|
71 | from __future__ import annotations | |||
|
72 | ||||
71 | import binascii |
|
73 | import binascii | |
72 | import struct |
|
74 | import struct | |
73 | import weakref |
|
75 | import weakref |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import re |
|
10 | import re | |
10 |
|
11 |
@@ -16,6 +16,7 | |||||
16 | # an action is a tree node name, a tree label, and an optional match |
|
16 | # an action is a tree node name, a tree label, and an optional match | |
17 | # __call__(program) parses program into a labeled tree |
|
17 | # __call__(program) parses program into a labeled tree | |
18 |
|
18 | |||
|
19 | from __future__ import annotations | |||
19 |
|
20 | |||
20 | from .i18n import _ |
|
21 | from .i18n import _ | |
21 | from . import ( |
|
22 | from . import ( |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import collections |
|
11 | import collections | |
11 | import contextlib |
|
12 | import contextlib |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import contextlib |
|
3 | import contextlib | |
2 | import errno |
|
4 | import errno | |
3 | import os |
|
5 | import os |
@@ -100,6 +100,7 Note: old client behave as a publishing | |||||
100 |
|
100 | |||
101 | """ |
|
101 | """ | |
102 |
|
102 | |||
|
103 | from __future__ import annotations | |||
103 |
|
104 | |||
104 | import heapq |
|
105 | import heapq | |
105 | import struct |
|
106 | import struct |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 | import sys |
|
11 | import sys |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import errno |
|
10 | import errno | |
10 | import fcntl |
|
11 | import fcntl |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import contextlib |
|
10 | import contextlib | |
10 | import os |
|
11 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import threading |
|
10 | import threading | |
10 | import time |
|
11 | import time |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import struct |
|
10 | import struct | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import difflib |
|
10 | import difflib | |
10 | import re |
|
11 | import re |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import array |
|
10 | import array | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import io |
|
10 | import io | |
10 | import struct |
|
11 | import struct |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import ctypes |
|
10 | import ctypes | |
10 | import ctypes.util |
|
11 | import ctypes.util |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import io |
|
10 | import io | |
10 | import stat |
|
11 | import stat |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from . import ( |
|
10 | from . import ( | |
10 | bookmarks, |
|
11 | bookmarks, |
@@ -48,6 +48,7 Uses: | |||||
48 | different branches |
|
48 | different branches | |
49 | ''' |
|
49 | ''' | |
50 |
|
50 | |||
|
51 | from __future__ import annotations | |||
51 |
|
52 | |||
52 | from .node import nullrev |
|
53 | from .node import nullrev | |
53 | from . import ( |
|
54 | from . import ( |
@@ -8,6 +8,7 | |||||
8 | This contains aliases to hide python version-specific details from the core. |
|
8 | This contains aliases to hide python version-specific details from the core. | |
9 | """ |
|
9 | """ | |
10 |
|
10 | |||
|
11 | from __future__ import annotations | |||
11 |
|
12 | |||
12 | import builtins |
|
13 | import builtins | |
13 | import codecs |
|
14 | import codecs |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from typing import Any, List, Optional, Tuple |
|
10 | from typing import Any, List, Optional, Tuple | |
10 | from . import ( |
|
11 | from . import ( |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | from .i18n import _ |
|
11 | from .i18n import _ | |
11 | from .node import ( |
|
12 | from .node import ( |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import collections |
|
10 | import collections | |
10 | import gc |
|
11 | import gc |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import copy |
|
11 | import copy | |
11 | import weakref |
|
12 | import weakref |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | # obsolete experimental requirements: |
|
10 | # obsolete experimental requirements: | |
10 | # - manifestv2: An experimental new manifest format that allowed |
|
11 | # - manifestv2: An experimental new manifest format that allowed |
@@ -12,6 +12,7 This provides efficient delta storage wi | |||||
12 | and O(changes) merge between branches. |
|
12 | and O(changes) merge between branches. | |
13 | """ |
|
13 | """ | |
14 |
|
14 | |||
|
15 | from __future__ import annotations | |||
15 |
|
16 | |||
16 | import binascii |
|
17 | import binascii | |
17 | import collections |
|
18 | import collections |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import typing |
|
10 | import typing | |
10 |
|
11 |
@@ -7,6 +7,7 | |||||
7 | # GNU General Public License version 2 or any later version. |
|
7 | # GNU General Public License version 2 or any later version. | |
8 | """Helper class to compute deltas stored inside revlogs""" |
|
8 | """Helper class to compute deltas stored inside revlogs""" | |
9 |
|
9 | |||
|
10 | from __future__ import annotations | |||
10 |
|
11 | |||
11 | import struct |
|
12 | import struct | |
12 |
|
13 |
@@ -7,6 +7,7 | |||||
7 | # GNU General Public License version 2 or any later version. |
|
7 | # GNU General Public License version 2 or any later version. | |
8 | """Helper class to compute deltas stored inside revlogs""" |
|
8 | """Helper class to compute deltas stored inside revlogs""" | |
9 |
|
9 | |||
|
10 | from __future__ import annotations | |||
10 |
|
11 | |||
11 | import abc |
|
12 | import abc | |
12 | import collections |
|
13 | import collections |
@@ -15,6 +15,7 | |||||
15 | # |
|
15 | # | |
16 | # * a data file, containing variable width data for these revisions, |
|
16 | # * a data file, containing variable width data for these revisions, | |
17 |
|
17 | |||
|
18 | from __future__ import annotations | |||
18 |
|
19 | |||
19 | import os |
|
20 | import os | |
20 | import random |
|
21 | import random |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | from ..i18n import _ |
|
11 | from ..i18n import _ | |
11 |
|
12 |
@@ -6,6 +6,7 | |||||
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 | |||
9 |
|
10 | |||
10 | import re |
|
11 | import re | |
11 | import struct |
|
12 | import struct |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from ..node import sha1nodeconstants |
|
10 | from ..node import sha1nodeconstants | |
10 | from .constants import ( |
|
11 | from .constants import ( |
@@ -30,6 +30,7 This is a simple and effective format. I | |||||
30 | the concept. |
|
30 | the concept. | |
31 | """ |
|
31 | """ | |
32 |
|
32 | |||
|
33 | from __future__ import annotations | |||
33 |
|
34 | |||
34 | import collections |
|
35 | import collections | |
35 | import struct |
|
36 | import struct |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import binascii |
|
10 | import binascii | |
10 | import functools |
|
11 | import functools |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import string |
|
10 | import string | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import re |
|
10 | import re | |
10 |
|
11 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import array |
|
3 | import array | |
2 | import errno |
|
4 | import errno | |
3 | import fcntl |
|
5 | import fcntl |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import binascii |
|
10 | import binascii | |
10 | import errno |
|
11 | import errno |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import os |
|
3 | import os | |
2 | import winreg # pytype: disable=import-error |
|
4 | import winreg # pytype: disable=import-error | |
3 |
|
5 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 |
|
11 |
@@ -40,6 +40,7 nodes that will maximize the number of n | |||||
40 | classified with it (since all ancestors or descendants will be marked as well). |
|
40 | classified with it (since all ancestors or descendants will be marked as well). | |
41 | """ |
|
41 | """ | |
42 |
|
42 | |||
|
43 | from __future__ import annotations | |||
43 |
|
44 | |||
44 | import collections |
|
45 | import collections | |
45 | import random |
|
46 | import random |
@@ -21,6 +21,8 shelved change has a distinct name. For | |||||
21 | shelve". |
|
21 | shelve". | |
22 | """ |
|
22 | """ | |
23 |
|
23 | |||
|
24 | from __future__ import annotations | |||
|
25 | ||||
24 | import collections |
|
26 | import collections | |
25 | import io |
|
27 | import io | |
26 | import itertools |
|
28 | import itertools |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from .i18n import _ |
|
10 | from .i18n import _ | |
10 | from . import ( |
|
11 | from . import ( |
@@ -16,6 +16,7 | |||||
16 | # mbp: "you know that thing where cvs gives you conflict markers?" |
|
16 | # mbp: "you know that thing where cvs gives you conflict markers?" | |
17 | # s: "i hate that." |
|
17 | # s: "i hate that." | |
18 |
|
18 | |||
|
19 | from __future__ import annotations | |||
19 |
|
20 | |||
20 | from .i18n import _ |
|
21 | from .i18n import _ | |
21 | from . import ( |
|
22 | from . import ( |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from . import ( |
|
10 | from . import ( | |
10 | encoding, |
|
11 | encoding, |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import re |
|
10 | import re | |
10 | import uuid |
|
11 | import uuid |
@@ -7,6 +7,7 | |||||
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 | |||
10 |
|
11 | |||
11 | import hashlib |
|
12 | import hashlib | |
12 | import os |
|
13 | import os |
@@ -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 |
|
10 | |||
9 | def getstack(repo, rev=None): |
|
11 | def getstack(repo, rev=None): | |
10 | """return a sorted smartrev of the stack containing either rev if it is |
|
12 | """return a sorted smartrev of the stack containing either rev if it is |
@@ -17,6 +17,7 We store the data on disk in cbor, for w | |||||
17 | the data. |
|
17 | the data. | |
18 | """ |
|
18 | """ | |
19 |
|
19 | |||
|
20 | from __future__ import annotations | |||
20 |
|
21 | |||
21 | import contextlib |
|
22 | import contextlib | |
22 |
|
23 |
@@ -7,6 +7,7 | |||||
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 | |||
10 |
|
11 | |||
11 | import errno |
|
12 | import errno | |
12 |
|
13 |
@@ -101,6 +101,7 significantly off if other threads' work | |||||
101 | main thread's work patterns. |
|
101 | main thread's work patterns. | |
102 | """ |
|
102 | """ | |
103 | # no-check-code |
|
103 | # no-check-code | |
|
104 | from __future__ import annotations | |||
104 |
|
105 | |||
105 | import collections |
|
106 | import collections | |
106 | import contextlib |
|
107 | import contextlib |
@@ -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 functools |
|
11 | import functools | |
10 | import os |
|
12 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import contextlib |
|
10 | import contextlib | |
10 | import os |
|
11 | import os |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | from .i18n import _ |
|
3 | from .i18n import _ | |
2 | from . import ( |
|
4 | from . import ( | |
3 | bookmarks as bookmarksmod, |
|
5 | bookmarks as bookmarksmod, |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import copy |
|
10 | import copy | |
10 | import errno |
|
11 | import errno |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 | import posixpath |
|
11 | import posixpath |
@@ -71,6 +71,7 | |||||
71 | # - put blocks whose nodes come all from p2 first |
|
71 | # - put blocks whose nodes come all from p2 first | |
72 | # - write the tag blocks in the sorted order |
|
72 | # - write the tag blocks in the sorted order | |
73 |
|
73 | |||
|
74 | from __future__ import annotations | |||
74 |
|
75 | |||
75 | from .i18n import _ |
|
76 | from .i18n import _ | |
76 | from . import ( |
|
77 | from . import ( |
@@ -10,6 +10,7 | |||||
10 | # Eventually, it could take care of updating (adding/removing/moving) |
|
10 | # Eventually, it could take care of updating (adding/removing/moving) | |
11 | # tags too. |
|
11 | # tags too. | |
12 |
|
12 | |||
|
13 | from __future__ import annotations | |||
13 |
|
14 | |||
14 | import binascii |
|
15 | import binascii | |
15 | import io |
|
16 | import io |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 | import re |
|
11 | import re |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import binascii |
|
10 | import binascii | |
10 | import re |
|
11 | import re |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from .i18n import _ |
|
10 | from .i18n import _ | |
10 | from .node import ( |
|
11 | from .node import ( |
@@ -65,6 +65,7 mappedgenerator | |||||
65 | operation. |
|
65 | operation. | |
66 | """ |
|
66 | """ | |
67 |
|
67 | |||
|
68 | from __future__ import annotations | |||
68 |
|
69 | |||
69 | import abc |
|
70 | import abc | |
70 | import os |
|
71 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import abc |
|
10 | import abc | |
10 | import types |
|
11 | import types |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import os |
|
3 | import os | |
2 | import time |
|
4 | import time | |
3 |
|
5 |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import unittest |
|
3 | import unittest | |
2 |
|
4 | |||
3 | # picked from test-parse-index2, copied rather than imported |
|
5 | # picked from test-parse-index2, copied rather than imported |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import unittest |
|
10 | import unittest | |
10 |
|
11 |
@@ -11,6 +11,8 | |||||
11 | # This software may be used and distributed according to the terms of the |
|
11 | # This software may be used and distributed according to the terms of the | |
12 | # GNU General Public License version 2 or any later version. |
|
12 | # GNU General Public License version 2 or any later version. | |
13 |
|
13 | |||
|
14 | from __future__ import annotations | |||
|
15 | ||||
14 | import errno |
|
16 | import errno | |
15 | import os |
|
17 | import os | |
16 |
|
18 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import collections |
|
10 | import collections | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from . import encoding |
|
10 | from . import encoding | |
10 |
|
11 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import collections |
|
10 | import collections | |
10 | import contextlib |
|
11 | import contextlib |
@@ -11,6 +11,8 | |||||
11 | allowing operations like diff and log with revsets. |
|
11 | allowing operations like diff and log with revsets. | |
12 | """ |
|
12 | """ | |
13 |
|
13 | |||
|
14 | from __future__ import annotations | |||
|
15 | ||||
14 | import contextlib |
|
16 | import contextlib | |
15 |
|
17 | |||
16 |
|
18 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | from .i18n import _ |
|
10 | from .i18n import _ | |
10 | from . import ( |
|
11 | from . 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 random |
|
10 | import random | |
9 |
|
11 | |||
10 | from typing import ( |
|
12 | from typing import ( |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import stat |
|
10 | import stat | |
10 |
|
11 |
@@ -7,6 +7,7 | |||||
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 | |||
10 |
|
11 | |||
11 | import base64 |
|
12 | import base64 | |
12 | import socket |
|
13 | import socket |
@@ -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 http.server |
|
10 | import http.server | |
9 | import urllib.error |
|
11 | import urllib.error | |
10 | import urllib.parse |
|
12 | import urllib.parse |
@@ -13,6 +13,7 This contains helper routines that are i | |||||
13 | hide platform-specific details from the core. |
|
13 | hide platform-specific details from the core. | |
14 | """ |
|
14 | """ | |
15 |
|
15 | |||
|
16 | from __future__ import annotations | |||
16 |
|
17 | |||
17 | import abc |
|
18 | import abc | |
18 | import collections |
|
19 | import collections |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import struct |
|
10 | import struct | |
10 |
|
11 |
@@ -3,6 +3,7 | |||||
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 | |||
6 |
|
7 | |||
7 | import bz2 |
|
8 | import bz2 | |
8 | import collections |
|
9 | import collections |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import calendar |
|
10 | import calendar | |
10 | import datetime |
|
11 | import datetime |
@@ -1,3 +1,5 | |||||
|
1 | from __future__ import annotations | |||
|
2 | ||||
1 | import hashlib |
|
3 | import hashlib | |
2 |
|
4 | |||
3 | try: |
|
5 | try: |
@@ -7,6 +7,7 | |||||
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 | |||
10 |
|
11 | |||
11 | import contextlib |
|
12 | import contextlib | |
12 | import errno |
|
13 | import errno |
@@ -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 | from .. import error |
|
11 | from .. import error | |
10 |
|
12 | |||
11 | ### Nearest subset relation |
|
13 | ### Nearest subset relation |
@@ -7,6 +7,7 | |||||
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 | |||
10 |
|
11 | |||
11 | import os |
|
12 | import os | |
12 | import sys |
|
13 | import sys |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import re |
|
10 | import re | |
10 | import struct |
|
11 | import struct |
@@ -7,6 +7,7 | |||||
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 | |||
10 |
|
11 | |||
11 | import ast |
|
12 | import ast | |
12 | import codecs |
|
13 | import codecs |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 |
|
11 |
@@ -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 contextlib |
|
10 | import contextlib | |
9 | import os |
|
11 | import os | |
10 | import shutil |
|
12 | import shutil |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import ctypes |
|
10 | import ctypes | |
10 | import ctypes.wintypes as wintypes |
|
11 | import ctypes.wintypes as wintypes |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import errno |
|
10 | import errno | |
10 | import getpass |
|
11 | import getpass |
@@ -9,6 +9,7 | |||||
9 | # protocol. For details about the protocol, see |
|
9 | # protocol. For details about the protocol, see | |
10 | # `hg help internals.wireprotocol`. |
|
10 | # `hg help internals.wireprotocol`. | |
11 |
|
11 | |||
|
12 | from __future__ import annotations | |||
12 |
|
13 | |||
13 | import collections |
|
14 | import collections | |
14 | import struct |
|
15 | import struct |
@@ -4,6 +4,7 | |||||
4 | # This software may be used and distributed according to the terms of the |
|
4 | # This software may be used and distributed according to the terms of the | |
5 | # GNU General Public License version 2 or any later version. |
|
5 | # GNU General Public License version 2 or any later version. | |
6 |
|
6 | |||
|
7 | from __future__ import annotations | |||
7 |
|
8 | |||
8 | import contextlib |
|
9 | import contextlib | |
9 | import struct |
|
10 | import struct |
@@ -3,6 +3,7 | |||||
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 | |||
6 |
|
7 | |||
7 | import typing |
|
8 | import typing | |
8 |
|
9 |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import sys |
|
10 | import sys | |
10 | import weakref |
|
11 | import weakref |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import binascii |
|
10 | import binascii | |
10 | import os |
|
11 | import os |
@@ -5,6 +5,7 | |||||
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 | |||
8 |
|
9 | |||
9 | import os |
|
10 | import os | |
10 | import pickle |
|
11 | import pickle |
General Comments 0
You need to be logged in to leave comments.
Login now