changeset 21192:541b2b08f323 stable

exchange: fix invalid reference to bundle2.UnknownPartError caught by pyflakes
author Yuya Nishihara <yuya@tcha.org>
date Tue, 29 Apr 2014 12:35:02 +0900
parents a2f4ea82d6d3
children 07f9825865de
files mercurial/exchange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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']