diff -r d67732a4b58a -r 5aac1a1a5beb mercurial/bundle2.py --- a/mercurial/bundle2.py Thu Feb 11 20:36:46 2021 -0800 +++ b/mercurial/bundle2.py Thu Dec 24 11:21:23 2020 -0500 @@ -1769,7 +1769,7 @@ for node in outgoing.ancestorsof: # Don't compute missing, as this may slow down serving. fnode = cache.getfnode(node, computemissing=False) - if fnode is not None: + if fnode: chunks.extend([node, fnode]) if chunks: