diff -r 607e94e01851 -r f4733654f144 mercurial/stack.py --- a/mercurial/stack.py Mon Sep 16 15:36:38 2024 +0200 +++ b/mercurial/stack.py Mon Sep 16 15:36:44 2024 +0200 @@ -5,6 +5,8 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. +from __future__ import annotations + def getstack(repo, rev=None): """return a sorted smartrev of the stack containing either rev if it is