Mercurial > hg-stable
diff mercurial/exchange.py @ 21180:b056777221bf stable
bundle2: catch UnknownPartError during push
We narrow the exception catching while unbundling the push reply.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 21 Apr 2014 19:42:51 -0700 |
parents | 024f38f6d5f6 |
children | a92619a2dbd7 |
line wrap: on
line diff
--- a/mercurial/exchange.py Mon Apr 21 19:42:40 2014 -0700 +++ b/mercurial/exchange.py Mon Apr 21 19:42:51 2014 -0700 @@ -228,7 +228,7 @@ reply = pushop.remote.unbundle(stream, ['force'], 'push') try: op = bundle2.processbundle(pushop.repo, reply) - except KeyError, exc: + except bundle2.UnknownPartError, exc: raise util.Abort('missing support for %s' % exc) cgreplies = op.records.getreplies(cgpart.id) assert len(cgreplies['changegroup']) == 1