changeset 603:24c73f35f3cf

metacommand: use AmbiguousCommand from hg for consistency.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Wed, 14 Apr 2010 20:33:27 +0200
parents 7c44bc259505
children 1290ab9def8f
files hgsubversion/svncommands.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svncommands.py
+++ b/hgsubversion/svncommands.py
@@ -243,8 +243,7 @@ def help_(ui, args=None, **opts):
             if len(candidates) == 1:
                 subcommand = candidates[0]
             elif len(candidates) > 1:
-                ui.status('Ambiguous command. Could have been:\n%s\n' %
-                          ' '.join(candidates))
+                raise error.AmbiguousCommand(subcommand, candidates)
                 return
         doc = table[subcommand].__doc__
         if doc is None: