exchange: fix invalid reference to bundle2.UnknownPartError caught by pyflakes stable
authorYuya Nishihara <yuya@tcha.org>
Tue, 29 Apr 2014 12:35:02 +0900
branchstable
changeset 21192 541b2b08f323
parent 21191 a2f4ea82d6d3
child 21193 07f9825865de
exchange: fix invalid reference to bundle2.UnknownPartError caught by pyflakes
mercurial/exchange.py
--- a/mercurial/exchange.py	Tue Apr 29 11:02:40 2014 +0900
+++ b/mercurial/exchange.py	Tue Apr 29 12:35:02 2014 +0900
@@ -587,7 +587,7 @@
     bundle = pullop.remote.getbundle('pull', **kwargs)
     try:
         op = bundle2.processbundle(pullop.repo, bundle, pullop.gettransaction)
-    except UnknownPartError, exc:
+    except bundle2.UnknownPartError, exc:
         raise util.Abort('missing support for %s' % exc)
     assert len(op.records['changegroup']) == 1
     pullop.cgresult = op.records['changegroup'][0]['return']