Mercurial > hg-stable
view templates/summary-gitweb.tmpl @ 2039:0c438fd25e6e
bash_completion: small optimization
Right now we always call "hg help $cmd" to get the canonical name of $cmd
(i.e. to go from "co" to "update").
This patch optimistically assumes that $cmd is already the canonical form
and tries to generate completions for it. If that fails, it falls back
to canonicalizing $cmd and trying again.
This means that:
- if a command or alias is explicitly handled by the
_hg_command_specific function, things get somewhat faster
- as long as the canonical $cmd is handled by _hg_command_specific, all
its aliases and abbreviations are also handled.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 02 Apr 2006 18:20:52 +0200 |
parents | b4df4687a78a |
children | 8a798185809d |
line wrap: on
line source
#header# <title>#repo|escape#: Summary</title> <link rel="alternate" type="application/rss+xml" href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#"> </head> <body> <div class="page_header"> <a href="http://www.selenic.com/mercurial/" title="Mercurial"><div style="float:right;">Mercurial</div></a><a href="?cmd=summary;style=gitweb">#repo|escape#</a> / summary </div> <div class="page_nav"> summary | <a href="?cmd=changelog;style=gitweb">changelog</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=manifest;manifest=#manifest#;path=/;style=gitweb">manifest</a><br/> </div> <div class="title"> </div> <table cellspacing="0"> <tr><td>description</td><td>#desc#</td></tr> <tr><td>owner</td><td>#owner|escape#</td></tr> <!-- <tr><td>last change</td><td>#lastchange|rfc822date#</td></tr> --> </table> <div><a class="title" href="?cmd=changelog;style=gitweb">changes</a></div> <table cellspacing="0"> #shortlog# <tr class="light"><td colspan="3"><a class="list" href="?cmd=changelog;style=gitweb">...</a></td></tr> </table> <div><a class="title" href="?cmd=tags;style=gitweb">tags</a></div> <table cellspacing="0"> #tags# <tr class="light"><td colspan="3"><a class="list" href="?cmd=tags;style=gitweb">...</a></td></tr> </table> #footer#