diff -r 5a59a0ed0a37 -r 0afe96e374a7 mercurial/commands.py --- a/mercurial/commands.py Thu Apr 15 09:23:19 2021 +0200 +++ b/mercurial/commands.py Thu Apr 15 09:23:28 2021 +0200 @@ -4985,11 +4985,7 @@ finally: other.close() - repo._subtoppath = path.pushloc or path.loc - try: - return hg.outgoing(ui, repo, dest, opts) - finally: - del repo._subtoppath + return hg.outgoing(ui, repo, dest, opts) @command(