Patchwork [1,of,3,STABLE] exchange: fix invalid reference to bundle2.UnknownPartError caught by pyflakes

login
register
mail settings
Submitter Yuya Nishihara
Date April 29, 2014, 4:56 a.m.
Message ID <0b3e8b75ec319048a8ae.1398747399@gimlet>
Download mbox | patch
Permalink /patch/4455/
State Accepted
Commit f0d34f6a17f5621c05f5923f38861ab58d8fa76a
Headers show

Comments

Yuya Nishihara - April 29, 2014, 4:56 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1398742502 -32400
#      Tue Apr 29 12:35:02 2014 +0900
# Branch stable
# Node ID 0b3e8b75ec319048a8ae6ade1340124598cd573d
# Parent  920b654c7a16fc208fe62ca58609434ef34a0247
exchange: fix invalid reference to bundle2.UnknownPartError caught by pyflakes

Patch

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -587,7 +587,7 @@  def _pullbundle2(pullop):
     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']