diff -r 029b76d645dc -r a0da5075bca3 mercurial/localrepo.py --- a/mercurial/localrepo.py Wed Mar 02 10:23:53 2022 -0500 +++ b/mercurial/localrepo.py Wed Mar 02 10:24:49 2022 -0500 @@ -16,6 +16,7 @@ import time import weakref +from concurrent import futures from .i18n import _ from .node import ( bin, @@ -278,7 +279,7 @@ # method on the peer and return a resolved future. fn = getattr(self._peer, pycompat.sysstr(command)) - f = pycompat.futures.Future() + f = futures.Future() try: result = fn(**pycompat.strkwargs(args))