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