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