changeset 7849:d5662e939893

atom: fix URLs used in entry GUIDs
author Matt Mackall <mpm@selenic.com>
date Mon, 16 Mar 2009 17:21:06 -0500
parents 89e05c02a4af
children 74c3baca65c9
files templates/atom/changelogentry.tmpl templates/atom/tagentry.tmpl tests/test-hgweb-commands.out tests/test-hgweb-no-path-info.out tests/test-hgweb-no-request-uri.out tests/test-hgwebdir.out
diffstat 6 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/templates/atom/changelogentry.tmpl	Mon Mar 16 16:58:41 2009 -0500
+++ b/templates/atom/changelogentry.tmpl	Mon Mar 16 17:21:06 2009 -0500
@@ -1,6 +1,6 @@
  <entry>
   <title>#desc|strip|firstline|strip|escape#</title>
-  <id>http://www.selenic.com/mercurial/#changeset-{node}</id>
+  <id>{urlbase}{url}#changeset-{node}</id>
   <link href="{urlbase}{url}rev/{node}"/>
   <author>
    <name>#author|person|escape#</name>
--- a/templates/atom/tagentry.tmpl	Mon Mar 16 16:58:41 2009 -0500
+++ b/templates/atom/tagentry.tmpl	Mon Mar 16 17:21:06 2009 -0500
@@ -1,7 +1,7 @@
  <entry>
   <title>#tag|escape#</title>
   <link rel="alternate" href="{urlbase}{url}rev/{node}"/>
-  <id>http://www.selenic.com/mercurial/#tag-{node}</id>
+  <id>{urlbase}{url}#tag-{node}</id>
   <updated>#date|rfc3339date#</updated>
   <published>#date|rfc3339date#</published>
   <content type="text">#tag|strip|escape#</content>
Binary file tests/test-hgweb-commands.out has changed
--- a/tests/test-hgweb-no-path-info.out	Mon Mar 16 16:58:41 2009 -0500
+++ b/tests/test-hgweb-no-path-info.out	Mon Mar 16 17:21:06 2009 -0500
@@ -19,7 +19,7 @@
 
  <entry>
   <title>test</title>
-  <id>http://www.selenic.com/mercurial/#changeset-4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e</id>
+  <id>http://127.0.0.1/#changeset-4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e</id>
   <link href="http://127.0.0.1/rev/4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e"/>
   <author>
    <name>Testing</name>
--- a/tests/test-hgweb-no-request-uri.out	Mon Mar 16 16:58:41 2009 -0500
+++ b/tests/test-hgweb-no-request-uri.out	Mon Mar 16 17:21:06 2009 -0500
@@ -19,7 +19,7 @@
 
  <entry>
   <title>test</title>
-  <id>http://www.selenic.com/mercurial/#changeset-4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e</id>
+  <id>http://127.0.0.1/#changeset-4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e</id>
   <link href="http://127.0.0.1/rev/4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e"/>
   <author>
    <name>Testing</name>
--- a/tests/test-hgwebdir.out	Mon Mar 16 16:58:41 2009 -0500
+++ b/tests/test-hgwebdir.out	Mon Mar 16 17:21:06 2009 -0500
@@ -64,7 +64,7 @@
 
  <entry>
   <title>a</title>
-  <id>http://127.0.0.1/mercurial/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id>
+  <id>http://127.0.0.1/t/a/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id>
   <link href="http://127.0.0.1/t/a/rev/8580ff50825a50c8f716709acdf8de0deddcd6ab"/>
   <author>
    <name>test</name>
@@ -93,7 +93,7 @@
 
  <entry>
   <title>a</title>
-  <id>http://127.0.0.1/mercurial/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id>
+  <id>http://127.0.0.1/t/a/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id>
   <link href="http://127.0.0.1/t/a/rev/8580ff50825a50c8f716709acdf8de0deddcd6ab"/>
   <author>
    <name>test</name>