##// END OF EJS Templates
unbundle: test and fix for clean abort on unknown bundle2 feature...
Pierre-Yves David -
r26410:4c4b3c37 default
parent child Browse files
Show More
@@ -6388,7 +6388,7 b' def unbundle(ui, repo, fname1, *fnames, '
6388 try:
6388 try:
6389 op = bundle2.processbundle(repo, gen, lambda: tr)
6389 op = bundle2.processbundle(repo, gen, lambda: tr)
6390 tr.close()
6390 tr.close()
6391 except error.UnsupportedPartError as exc:
6391 except error.BundleUnknownFeatureError as exc:
6392 raise util.Abort(_('%s: unknown bundle feature, %s')
6392 raise util.Abort(_('%s: unknown bundle feature, %s')
6393 % (fname, exc),
6393 % (fname, exc),
6394 hint=_("see https://mercurial.selenic.com/"
6394 hint=_("see https://mercurial.selenic.com/"
@@ -1219,5 +1219,9 b' unknown compression while unbundling'
1219 $ cat ../rev.hg2.bz | hg statbundle2
1219 $ cat ../rev.hg2.bz | hg statbundle2
1220 abort: unknown parameters: Stream Parameter - Compression='FooBarUnknown'
1220 abort: unknown parameters: Stream Parameter - Compression='FooBarUnknown'
1221 [255]
1221 [255]
1222 $ hg unbundle ../rev.hg2.bz
1223 abort: ../rev.hg2.bz: unknown bundle feature, Stream Parameter - Compression='FooBarUnknown'
1224 (see https://mercurial.selenic.com/wiki/BundleFeature for more information)
1225 [255]
1222
1226
1223 $ cd ..
1227 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now