comparison hgext/convert/convcmd.py @ 13479:b14ed1692b27 stable

convert/svn: handle MissingTool exception from converter_sink class The converter_sink class had no way of handling MissingTool exception. This change makes it to abort when there is a MissingTool exception.
author Azhagu Selvan SP <tamizhgeek@gmail.com>
date Thu, 24 Feb 2011 00:45:02 +0530
parents daa8dc6e1f66
children e9628665b670
comparison
equal deleted inserted replaced
13478:c631ac076375 13479:b14ed1692b27
68 try: 68 try:
69 if not type or name == type: 69 if not type or name == type:
70 return sink(ui, path) 70 return sink(ui, path)
71 except NoRepo, inst: 71 except NoRepo, inst:
72 ui.note(_("convert: %s\n") % inst) 72 ui.note(_("convert: %s\n") % inst)
73 except MissingTool, inst:
74 raise util.Abort(_('%s\n') % inst)
73 raise util.Abort(_('%s: unknown repository type') % path) 75 raise util.Abort(_('%s: unknown repository type') % path)
74 76
75 class progresssource(object): 77 class progresssource(object):
76 def __init__(self, ui, source, filecount): 78 def __init__(self, ui, source, filecount):
77 self.ui = ui 79 self.ui = ui