diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -6388,7 +6388,7 @@ def unbundle(ui, repo, fname1, *fnames, 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/" diff --git a/tests/test-bundle2-format.t b/tests/test-bundle2-format.t --- a/tests/test-bundle2-format.t +++ b/tests/test-bundle2-format.t @@ -1219,5 +1219,9 @@ unknown compression while unbundling $ cat ../rev.hg2.bz | hg statbundle2 abort: unknown parameters: Stream Parameter - Compression='FooBarUnknown' [255] + $ hg unbundle ../rev.hg2.bz + abort: ../rev.hg2.bz: unknown bundle feature, Stream Parameter - Compression='FooBarUnknown' + (see https://mercurial.selenic.com/wiki/BundleFeature for more information) + [255] $ cd ..