changeset 21181:a92619a2dbd7 stable

bundle2: catch UnknownPartError during pull We narrow the exception catching while pulling.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 21 Apr 2014 19:43:01 -0700
parents b056777221bf
children 08c84fd99aac
files mercurial/exchange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/exchange.py	Mon Apr 21 19:42:51 2014 -0700
+++ b/mercurial/exchange.py	Mon Apr 21 19:43:01 2014 -0700
@@ -584,7 +584,7 @@
     bundle = pullop.remote.getbundle('pull', **kwargs)
     try:
         op = bundle2.processbundle(pullop.repo, bundle, pullop.gettransaction)
-    except KeyError, exc:
+    except UnknownPartError, exc:
         raise util.Abort('missing support for %s' % exc)
     assert len(op.records['changegroup']) == 1
     pullop.cgresult = op.records['changegroup'][0]['return']