diff -r 3800a6aafb6f -r 279df499511e mercurial/commands.py --- a/mercurial/commands.py Wed Apr 14 17:29:27 2021 +0200 +++ b/mercurial/commands.py Wed Apr 14 17:41:02 2021 +0200 @@ -4351,11 +4351,7 @@ finally: other.close() - repo._subtoppath = ui.expandpath(source) - try: - return hg.incoming(ui, repo, source, opts) - finally: - del repo._subtoppath + return hg.incoming(ui, repo, source, opts) @command(