# HG changeset patch # User Matt Mackall # Date 1129702115 25200 # Node ID 17703aa4491ec471cd1b993addf5fd9fc08f1336 # Parent 964baa35faf8218650d412581f0567eb41ae1ee9 hgweb: shorten all the URLs in the standard templates A URL like this: http://www.selenic.com/hg/?cmd=changeset;node=5010207c35273ac1331cae44c253dd41fa07cb7f is now presented as: http://www.selenic.com/hg/?cs=5010207c352 (though the old style still works, of course) diff -r 964baa35faf8 -r 17703aa4491e templates/changelog.tmpl --- a/templates/changelog.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/changelog.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -7,8 +7,8 @@
tags -manifest -rss +manifest +rss

changelog for #repo|escape#

diff -r 964baa35faf8 -r 17703aa4491e templates/changelogentry-rss.tmpl --- a/templates/changelogentry-rss.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/changelogentry-rss.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -1,6 +1,6 @@ #desc|firstline|escape# - #url#?cmd=changeset;node=#node# + #url#?cs=#node|short# #author|obfuscate# #date|rfc822date# diff -r 964baa35faf8 -r 17703aa4491e templates/changelogentry.tmpl --- a/templates/changelogentry.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/changelogentry.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -5,7 +5,7 @@ changeset #rev#: - #node|short# + #node|short# #parent# #changelogtag# @@ -18,7 +18,7 @@ #date|date# - files: + files: #files# diff -r 964baa35faf8 -r 17703aa4491e templates/changeset.tmpl --- a/templates/changeset.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/changeset.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -4,10 +4,10 @@
-changelog +changelog tags -manifest -raw +manifest +raw #archives%archiveentry#
@@ -16,7 +16,7 @@ - + #parent# #changesettag# diff -r 964baa35faf8 -r 17703aa4491e templates/fileannotate.tmpl --- a/templates/fileannotate.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/fileannotate.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -4,12 +4,12 @@

Annotate #file#

@@ -17,7 +17,7 @@
changeset #rev#:#node|short##node|short#
- + #parent# diff -r 964baa35faf8 -r 17703aa4491e templates/filediff.tmpl --- a/templates/filediff.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/filediff.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -4,13 +4,13 @@

#file#

@@ -18,7 +18,7 @@
changeset #rev#:#node|short#
#node|short#
author:
- + #parent#
revision #rev#:#node|short##node|short#
diff -r 964baa35faf8 -r 17703aa4491e templates/filelog.tmpl --- a/templates/filelog.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/filelog.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -1,17 +1,17 @@ #header# #repo|escape#: #file# history + href="?fl=0;file=#file#;style=rss" title="RSS feed for #repo|escape#:#file#">

#file# revision history

diff -r 964baa35faf8 -r 17703aa4491e templates/filelogentry-rss.tmpl --- a/templates/filelogentry-rss.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/filelogentry-rss.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -1,6 +1,6 @@ #desc|firstline|escape# - #url#?cmd=file;file=#file#;filenode=#filenode# + #url#?f=#filenode|short#;file=#file# #author|obfuscate# #date|rfc822date#> diff -r 964baa35faf8 -r 17703aa4491e templates/filelogentry.tmpl --- a/templates/filelogentry.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/filelogentry.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -1,12 +1,12 @@ - + - diff -r 964baa35faf8 -r 17703aa4491e templates/filerevision.tmpl --- a/templates/filerevision.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/filerevision.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -4,13 +4,13 @@

#file#

@@ -18,7 +18,7 @@
#date|age# ago: #desc|firstline|escape#
#desc|firstline|escape#
revision #filerev#: #filenode|short# -(diff) -(annotate) + #filenode|short# +(diff) +(annotate)
author: 
- + #parent# diff -r 964baa35faf8 -r 17703aa4491e templates/manifest.tmpl --- a/templates/manifest.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/manifest.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -4,9 +4,9 @@

manifest for changeset #node|short#: #path#

@@ -14,7 +14,7 @@
changeset #rev#:#node|short#
#node|short#
author:
drwxr-xr-x  - [up] + [up] #dentries%manifestdirentry# #fentries%manifestfileentry#
diff -r 964baa35faf8 -r 17703aa4491e templates/map --- a/templates/map Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/map Tue Oct 18 23:08:35 2005 -0700 @@ -3,39 +3,39 @@ footer = footer.tmpl search = search.tmpl changelog = changelog.tmpl -naventry = "#label# " -filedifflink = "#file# " -filenodelink = "#file# " +naventry = "#label# " +filedifflink = "#file# " +filenodelink = "#file# " fileellipses = "..." changelogentry = changelogentry.tmpl searchentry = changelogentry.tmpl changeset = changeset.tmpl manifest = manifest.tmpl manifestdirentry = "drwxr-xr-x #basename#/" -manifestfileentry = "#permissions|permissions# #basename#" +manifestfileentry = "#permissions|permissions# #basename#" filerevision = filerevision.tmpl fileannotate = fileannotate.tmpl filediff = filediff.tmpl filelog = filelog.tmpl fileline = "
#linenumber##line|escape#
" filelogentry = filelogentry.tmpl -annotateline = "#author|obfuscate#@#rev#
#line|escape#
" +annotateline = "#author|obfuscate#@#rev#
#line|escape#
" difflineplus = "#line|escape#" difflineminus = "#line|escape#" difflineat = "#line|escape#" diffline = "#line|escape#" -changelogparent = "parent #rev#:#node|short#" -changesetparent = "parent #rev#:#node|short#" -filerevparent = "parent:#node|short#" -fileannotateparent = "parent:#node|short#" +changelogparent = "parent #rev#:#node|short#" +changesetparent = "parent #rev#:#node|short#" +filerevparent = "parent:#node|short#" +fileannotateparent = "parent:#node|short#" tags = tags.tmpl -tagentry = "
  • #node# #tag#
  • " +tagentry = "
  • #node# #tag#
  • " diffblock = "
    #lines#
    " changelogtag = "tag:#tag#" changesettag = "tag:#tag#" -filediffparent = "parent #rev#:#node|short#" -filelogparent = "parent #rev#: #node|short#" -indexentry = "#name##shortdesc##contact|obfuscate##lastupdate|age# agoRSS" +filediffparent = "parent #rev#:#node|short#" +filelogparent = "parent #rev#: #node|short#" +indexentry = "#name##shortdesc##contact|obfuscate##lastupdate|age# agoRSS" index = index.tmpl -archiveentry = "#type# " +archiveentry = "#type# " notfound = notfound.tmpl diff -r 964baa35faf8 -r 17703aa4491e templates/search.tmpl --- a/templates/search.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/search.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -4,9 +4,9 @@

    searching for #query|escape#

    diff -r 964baa35faf8 -r 17703aa4491e templates/tags.tmpl --- a/templates/tags.tmpl Tue Oct 18 23:05:30 2005 -0700 +++ b/templates/tags.tmpl Tue Oct 18 23:08:35 2005 -0700 @@ -4,8 +4,8 @@

    tags: