Mercurial > public > mercurial-scm > hg
diff hgext/convert/convcmd.py @ 6332:950e72fc7cf3
convert: allow missing tools not to stop source type detection
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Thu, 20 Mar 2008 23:32:43 +0100 |
parents | 2f9de4aaea9e |
children | c9b8d2565b92 |
line wrap: on
line diff
--- a/hgext/convert/convcmd.py Thu Mar 20 22:58:53 2008 +0100 +++ b/hgext/convert/convcmd.py Thu Mar 20 23:32:43 2008 +0100 @@ -5,7 +5,7 @@ # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. -from common import NoRepo, SKIPREV, mapfile +from common import NoRepo, MissingTool, SKIPREV, mapfile from cvs import convert_cvs from darcs import darcs_source from git import convert_git @@ -48,7 +48,7 @@ try: if not type or name == type: return source(ui, path, rev) - except NoRepo, inst: + except (NoRepo, MissingTool), inst: exceptions.append(inst) if not ui.quiet: for inst in exceptions: