diff -r 0a8e7f81e8ae -r 0cfda08afd24 mercurial/exchange.py --- a/mercurial/exchange.py Tue May 27 17:04:48 2014 -0500 +++ b/mercurial/exchange.py Wed May 28 14:22:24 2014 -0700 @@ -224,11 +224,11 @@ stream = util.chunkbuffer(bundler.getchunks()) try: reply = pushop.remote.unbundle(stream, ['force'], 'push') - except bundle2.UnknownPartError, exc: + except bundle2.BundleValueError, exc: raise util.Abort('missing support for %s' % exc) try: op = bundle2.processbundle(pushop.repo, reply) - except bundle2.UnknownPartError, exc: + except bundle2.BundleValueError, exc: raise util.Abort('missing support for %s' % exc) cgreplies = op.records.getreplies(cgpart.id) assert len(cgreplies['changegroup']) == 1 @@ -554,7 +554,7 @@ bundle = pullop.remote.getbundle('pull', **kwargs) try: op = bundle2.processbundle(pullop.repo, bundle, pullop.gettransaction) - except bundle2.UnknownPartError, exc: + except bundle2.BundleValueError, exc: raise util.Abort('missing support for %s' % exc) if pullop.fetch: