Show More
@@ -319,19 +319,16 b' def _processpart(op, part):' | |||
|
319 | 319 | The part is guaranteed to have been fully consumed when the function exits |
|
320 | 320 | (even if an exception is raised).""" |
|
321 | 321 | try: |
|
322 | parttype = part.type | |
|
323 | # part key are matched lower case | |
|
324 | key = parttype.lower() | |
|
325 | 322 | try: |
|
326 |
handler = parthandlermapping.get( |
|
|
323 | handler = parthandlermapping.get(part.type) | |
|
327 | 324 | if handler is None: |
|
328 |
raise error.UnsupportedPartError(parttype= |
|
|
329 | op.ui.debug('found a handler for part %r\n' % parttype) | |
|
325 | raise error.UnsupportedPartError(parttype=part.type) | |
|
326 | op.ui.debug('found a handler for part %r\n' % part.type) | |
|
330 | 327 | unknownparams = part.mandatorykeys - handler.params |
|
331 | 328 | if unknownparams: |
|
332 | 329 | unknownparams = list(unknownparams) |
|
333 | 330 | unknownparams.sort() |
|
334 |
raise error.UnsupportedPartError(parttype= |
|
|
331 | raise error.UnsupportedPartError(parttype=part.type, | |
|
335 | 332 | params=unknownparams) |
|
336 | 333 | except error.UnsupportedPartError, exc: |
|
337 | 334 | if part.mandatory: # mandatory parts |
General Comments 0
You need to be logged in to leave comments.
Login now