diff -r 7a8ea1397816 -r d718eddf01d9 mercurial/wireprotov1server.py --- a/mercurial/wireprotov1server.py Thu Dec 08 15:33:19 2022 +0100 +++ b/mercurial/wireprotov1server.py Thu Aug 31 23:56:15 2023 +0200 @@ -721,7 +721,7 @@ r = exchange.unbundle( repo, gen, their_heads, b'serve', proto.client() ) - if util.safehasattr(r, 'addpart'): + if hasattr(r, 'addpart'): # The return looks streamable, we are in the bundle2 case # and should return a stream. return wireprototypes.streamreslegacy(gen=r.getchunks())