# 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 --git a/templates/changelog.tmpl b/templates/changelog.tmpl --- a/templates/changelog.tmpl +++ b/templates/changelog.tmpl @@ -7,8 +7,8 @@
tags -manifest -rss +manifest +rss

changelog for #repo|escape#

diff --git a/templates/changelogentry-rss.tmpl b/templates/changelogentry-rss.tmpl --- a/templates/changelogentry-rss.tmpl +++ b/templates/changelogentry-rss.tmpl @@ -1,6 +1,6 @@ #desc|firstline|escape# - #url#?cmd=changeset;node=#node# + #url#?cs=#node|short# #author|obfuscate# #date|rfc822date# diff --git a/templates/changelogentry.tmpl b/templates/changelogentry.tmpl --- a/templates/changelogentry.tmpl +++ b/templates/changelogentry.tmpl @@ -5,7 +5,7 @@ changeset #rev#: - #node|short# + #node|short# #parent# #changelogtag# @@ -18,7 +18,7 @@ #date|date# - files: + files: #files# diff --git a/templates/changeset.tmpl b/templates/changeset.tmpl --- a/templates/changeset.tmpl +++ b/templates/changeset.tmpl @@ -4,10 +4,10 @@
-changelog +changelog tags -manifest -raw +manifest +raw #archives%archiveentry#
@@ -16,7 +16,7 @@ - + #parent# #changesettag# diff --git a/templates/fileannotate.tmpl b/templates/fileannotate.tmpl --- a/templates/fileannotate.tmpl +++ b/templates/fileannotate.tmpl @@ -4,12 +4,12 @@

Annotate #file#

@@ -17,7 +17,7 @@
changeset #rev#:#node|short##node|short#
- + #parent# diff --git a/templates/filediff.tmpl b/templates/filediff.tmpl --- a/templates/filediff.tmpl +++ b/templates/filediff.tmpl @@ -4,13 +4,13 @@

#file#

@@ -18,7 +18,7 @@
changeset #rev#:#node|short#
#node|short#
author:
- + #parent#
revision #rev#:#node|short##node|short#
diff --git a/templates/filelog.tmpl b/templates/filelog.tmpl --- a/templates/filelog.tmpl +++ b/templates/filelog.tmpl @@ -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 --git a/templates/filelogentry-rss.tmpl b/templates/filelogentry-rss.tmpl --- a/templates/filelogentry-rss.tmpl +++ b/templates/filelogentry-rss.tmpl @@ -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 --git a/templates/filelogentry.tmpl b/templates/filelogentry.tmpl --- a/templates/filelogentry.tmpl +++ b/templates/filelogentry.tmpl @@ -1,12 +1,12 @@ - + - diff --git a/templates/filerevision.tmpl b/templates/filerevision.tmpl --- a/templates/filerevision.tmpl +++ b/templates/filerevision.tmpl @@ -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 --git a/templates/manifest.tmpl b/templates/manifest.tmpl --- a/templates/manifest.tmpl +++ b/templates/manifest.tmpl @@ -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 --git a/templates/map b/templates/map --- a/templates/map +++ b/templates/map @@ -3,39 +3,39 @@ header = header.tmpl 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 --git a/templates/search.tmpl b/templates/search.tmpl --- a/templates/search.tmpl +++ b/templates/search.tmpl @@ -4,9 +4,9 @@

    searching for #query|escape#

    diff --git a/templates/tags.tmpl b/templates/tags.tmpl --- a/templates/tags.tmpl +++ b/templates/tags.tmpl @@ -4,8 +4,8 @@

    tags: