bundle2: catch UnknownPartError during pull stable
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 21 Apr 2014 19:43:01 -0700
branchstable
changeset 21181 a92619a2dbd7
parent 21180 b056777221bf
child 21182 08c84fd99aac
bundle2: catch UnknownPartError during pull We narrow the exception catching while pulling.
mercurial/exchange.py
--- 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']