# HG changeset patch # User Angel Ezquerra # Date 1361910035 -3600 # Node ID 0bba1ff2ac7b26187a583ca53c08ec4baa372606 # Parent bb38f4f78104f16ba3538df3b8cb3465755e5f57 hgweb: change manifest archive links to only archive the current directory When the web server shows the manifest for a single, non top directory, append the path to the directory to the archive links. This makes the web server generate archive files that only include the current directory (and its subdirectories). Note that archive links in other pages (e.g. changeset) or at the top of the manifest are unchanged. Directory archive links have an extra "/" at the end which does not impact the result of the archive operation. Keeping it there made the implementation of this feature simpler. diff -r bb38f4f78104 -r 0bba1ff2ac7b mercurial/templates/coal/map --- a/mercurial/templates/coal/map Sun Feb 10 11:52:05 2013 +0100 +++ b/mercurial/templates/coal/map Tue Feb 26 21:20:35 2013 +0100 @@ -224,7 +224,7 @@ index = ../paper/index.tmpl archiveentry = '
  • - {type|escape} + {type|escape}
  • ' notfound = ../paper/notfound.tmpl error = ../paper/error.tmpl diff -r bb38f4f78104 -r 0bba1ff2ac7b mercurial/templates/gitweb/map --- a/mercurial/templates/gitweb/map Sun Feb 10 11:52:05 2013 +0100 +++ b/mercurial/templates/gitweb/map Tue Feb 26 21:20:35 2013 +0100 @@ -289,7 +289,7 @@ file | diff | annotate {rename%filelogrename} ' -archiveentry = ' | {type|escape} ' +archiveentry = ' | {type|escape} ' indexentry = ' diff -r bb38f4f78104 -r 0bba1ff2ac7b mercurial/templates/monoblue/map --- a/mercurial/templates/monoblue/map Sun Feb 10 11:52:05 2013 +0100 +++ b/mercurial/templates/monoblue/map Tue Feb 26 21:20:35 2013 +0100 @@ -245,7 +245,7 @@ {rename%filelogrename} ' -archiveentry = '
  • {type|escape}
  • ' +archiveentry = '
  • {type|escape}
  • ' indexentry = ' {name|escape} diff -r bb38f4f78104 -r 0bba1ff2ac7b mercurial/templates/paper/map --- a/mercurial/templates/paper/map Sun Feb 10 11:52:05 2013 +0100 +++ b/mercurial/templates/paper/map Tue Feb 26 21:20:35 2013 +0100 @@ -232,7 +232,7 @@ index = index.tmpl archiveentry = '
  • - {type|escape} + {type|escape}
  • ' notfound = notfound.tmpl error = error.tmpl