diff mercurial/commands.py @ 26410:4c4b3c37776c

unbundle: test and fix for clean abort on unknown bundle2 feature This introduce a test for the feature and fix the exception name that is different on default.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 24 Sep 2015 17:52:21 -0700
parents 0224d22ef5d8
children 4b0fc75f9403
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Sep 29 14:33:31 2015 -0500
+++ b/mercurial/commands.py	Thu Sep 24 17:52:21 2015 -0700
@@ -6388,7 +6388,7 @@
                 try:
                     op = bundle2.processbundle(repo, gen, lambda: tr)
                     tr.close()
-                except error.UnsupportedPartError as exc:
+                except error.BundleUnknownFeatureError as exc:
                     raise util.Abort(_('%s: unknown bundle feature, %s')
                                      % (fname, exc),
                                      hint=_("see https://mercurial.selenic.com/"