diff -r 5d9a5b919863 -r 81c97964d123 mercurial/dispatch.py --- a/mercurial/dispatch.py Tue Oct 11 18:48:45 2011 +0200 +++ b/mercurial/dispatch.py Tue Oct 11 17:20:03 2011 -0500 @@ -366,7 +366,7 @@ # definition might not exist or it might not be a cmdalias pass - cmdtable[aliasdef.cmd] = (aliasdef, aliasdef.opts, aliasdef.help) + cmdtable[aliasdef.name] = (aliasdef, aliasdef.opts, aliasdef.help) if aliasdef.norepo: commands.norepo += ' %s' % alias