annotate templates/filelog-gitweb.tmpl @ 1587:851bc33ff545

Less annoying directory completion (see http://bugs.debian.org/343458) The current bash completion script is quite painful in conjuntion with deep directory trees because it adds a space after each successful directory completion. Eg. "hg clone /ho<tab>" is completed to "hg clone /home " when what you really want is "hg clone /home/" (assuming the complete path to the repository looks like /home/foo/hg...). That's because the 'complete' command does not know about the type of completion it receives from the _hg shell function. When only a single completion is returned, it assumes completion is complete and tells readline to add a trailing space. This behaviour is usually wanted, but not in the case of directory completion. I've attached a patch that circumvents this problem by only returning successful completions for directories that contain a .hg subdirectory. If no repositories are found, no completions are returned either, and bash falls back to ordinary (filename) completion. I find this behaviour a lot less annoying than the current one. Alternative: Use option nospace for the 'complete' command and let _hg itself take care of adding a trailing space where appropriate. That's a far more intrusive change, though.
author Daniel Kobras <kobras@debian.org>
date Thu, 15 Dec 2005 15:40:14 +0100
parents 145cc9f68c05
children f2ebd5251e88
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1572
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
1 #header#
1576
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
2 <title>#repo|escape#: Manifest</title>
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
3 <link rel="alternate" type="application/rss+xml"
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
4 href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
5 </head>
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
6 <body>
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
7
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
8 <div class="page_header">
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
9 <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> / manifest
1572
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
10 </div>
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
11
1576
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
12 <div class="page_nav">
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
13 <a href="?cmd=summary;style=gitweb">summary</a> | <a href="?cmd=changelog;style=gitweb">changelog</a> | <a href="?cmd=tags;style=gitweb">tags</a> | <a href="?cmd=file;file=#file#;filenode=#filenode#;style=gitweb">file</a> | revisions | <a href="?cmd=annotate;file=#file#;filenode=#filenode#;style=gitweb">annotate</a> | <a href="?fl=#filenode|short#;file=#file#;style=rss">rss</a><br/>
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
14 </div>
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
15
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
16 <table>
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
17 #entries%filelogentry#
145cc9f68c05 File log and some FIXMEs
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 1572
diff changeset
18 </table>
1572
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
19
385b8872b8e3 [hgweb] Initial import of the "gitweb" style
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
20 #footer#