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