# HG changeset patch # User Christian Ebert # Date 1181666726 -7200 # Node ID 017dbf710056c175874a9f70ffea5c99e2dc84ad # Parent aac10ec0a8cd233083563ab97b2b95f12066066d findcmd might be in cmdutil or commands, depending on hg version diff -r aac10ec0a8cd -r 017dbf710056 hgkw/keyword.py --- a/hgkw/keyword.py Fri Jun 08 16:05:44 2007 +0200 +++ b/hgkw/keyword.py Tue Jun 12 18:45:26 2007 +0200 @@ -113,7 +113,10 @@ raise commands.ParseError(None, inst) if args: cmd = args[0] - aliases, i = commands.findcmd(ui, cmd) + if hasattr(cmdutil, "findcmd"): + aliases, i = cmdutil.findcmd(ui, cmd) + else: + aliases, i = commands.findcmd(ui, cmd) return aliases[0] class kwtemplater(object):