Show More
@@ -523,7 +523,7 b' class unbundle20(unpackermixin):' | |||
|
523 | 523 | if name[0].islower(): |
|
524 | 524 | self.ui.debug("ignoring unknown parameter %r\n" % name) |
|
525 | 525 | else: |
|
526 |
raise |
|
|
526 | raise error.BundleValueError(params=(name,)) | |
|
527 | 527 | |
|
528 | 528 | |
|
529 | 529 | def iterparts(self): |
@@ -166,7 +166,7 b' Create an extension to test bundle2 API' | |||
|
166 | 166 | > unbundler = bundle2.unbundle20(ui, sys.stdin) |
|
167 | 167 | > try: |
|
168 | 168 | > params = unbundler.params |
|
169 |
> except |
|
|
169 | > except error.BundleValueError, exc: | |
|
170 | 170 | > raise util.Abort('unknown parameters: %s' % exc) |
|
171 | 171 | > ui.write('options count: %i\n' % len(params)) |
|
172 | 172 | > for key in sorted(params): |
@@ -304,7 +304,7 b' Test unknown mandatory option' | |||
|
304 | 304 | --------------------------------------------------- |
|
305 | 305 | |
|
306 | 306 | $ hg bundle2 --param 'Gravity' | hg statbundle2 |
|
307 |
abort: unknown parameters: |
|
|
307 | abort: unknown parameters: Stream Parameter - Gravity | |
|
308 | 308 | [255] |
|
309 | 309 | |
|
310 | 310 | Test debug output |
General Comments 0
You need to be logged in to leave comments.
Login now