diff -r b482d80e041b -r 3e102a8dd52c mercurial/commands.py --- a/mercurial/commands.py Thu Jun 22 10:15:15 2017 -0700 +++ b/mercurial/commands.py Fri Jun 16 16:56:16 2017 -0700 @@ -5218,7 +5218,7 @@ else: txnname = 'unbundle\n%s' % util.hidepassword(url) with repo.transaction(txnname) as tr: - modheads = gen.apply(repo, tr, 'unbundle', url) + modheads, addednodes = gen.apply(repo, tr, 'unbundle', url) return postincoming(ui, repo, modheads, opts.get(r'update'), None, None)