use short identifiers in atom feed
authorRaoul Bhatia [IPAX] <r.bhatia@ipax.at>
Fri, 09 Oct 2009 16:27:05 +0200
changeset 9581 3b93032516b3
parent 9580 25858f9e65e8
child 9582 a25af3af941c
use short identifiers in atom feed
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
--- a/templates/atom/changelogentry.tmpl	Sun Oct 11 13:58:53 2009 -0500
+++ b/templates/atom/changelogentry.tmpl	Fri Oct 09 16:27:05 2009 +0200
@@ -1,7 +1,7 @@
  <entry>
   <title>{desc|strip|firstline|strip|escape|nonempty}</title>
   <id>{urlbase}{url}#changeset-{node}</id>
-  <link href="{urlbase}{url}rev/{node}"/>
+  <link href="{urlbase}{url}rev/{node|short}"/>
   <author>
    <name>{author|person|escape}</name>
    <email>{author|email|obfuscate}</email>
--- a/templates/atom/tagentry.tmpl	Sun Oct 11 13:58:53 2009 -0500
+++ b/templates/atom/tagentry.tmpl	Fri Oct 09 16:27:05 2009 +0200
@@ -1,6 +1,6 @@
  <entry>
   <title>{tag|escape}</title>
-  <link rel="alternate" href="{urlbase}{url}rev/{node}"/>
+  <link rel="alternate" href="{urlbase}{url}rev/{node|short}"/>
   <id>{urlbase}{url}#tag-{node}</id>
   <updated>{date|rfc3339date}</updated>
   <published>{date|rfc3339date}</published>
--- a/tests/test-hgweb-commands.out	Sun Oct 11 13:58:53 2009 -0500
+++ b/tests/test-hgweb-commands.out	Fri Oct 09 16:27:05 2009 +0200
@@ -17,7 +17,7 @@
  <entry>
   <title>branch</title>
   <id>http://127.0.0.1/#changeset-1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe</id>
-  <link href="http://127.0.0.1/rev/1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe"/>
+  <link href="http://127.0.0.1/rev/1d22e65f027e"/>
   <author>
    <name>test</name>
    <email>&#116;&#101;&#115;&#116;</email>
@@ -33,7 +33,7 @@
  <entry>
   <title>Added tag 1.0 for changeset 2ef0ac749a14</title>
   <id>http://127.0.0.1/#changeset-a4f92ed23982be056b9852de5dfe873eaac7f0de</id>
-  <link href="http://127.0.0.1/rev/a4f92ed23982be056b9852de5dfe873eaac7f0de"/>
+  <link href="http://127.0.0.1/rev/a4f92ed23982"/>
   <author>
    <name>test</name>
    <email>&#116;&#101;&#115;&#116;</email>
@@ -49,7 +49,7 @@
  <entry>
   <title>base</title>
   <id>http://127.0.0.1/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id>
-  <link href="http://127.0.0.1/rev/2ef0ac749a14e4f57a5a822464a0902c6f7f448f"/>
+  <link href="http://127.0.0.1/rev/2ef0ac749a14"/>
   <author>
    <name>test</name>
    <email>&#116;&#101;&#115;&#116;</email>
@@ -78,7 +78,7 @@
  <entry>
   <title>branch</title>
   <id>http://127.0.0.1/#changeset-1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe</id>
-  <link href="http://127.0.0.1/rev/1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe"/>
+  <link href="http://127.0.0.1/rev/1d22e65f027e"/>
   <author>
    <name>test</name>
    <email>&#116;&#101;&#115;&#116;</email>
@@ -94,7 +94,7 @@
  <entry>
   <title>Added tag 1.0 for changeset 2ef0ac749a14</title>
   <id>http://127.0.0.1/#changeset-a4f92ed23982be056b9852de5dfe873eaac7f0de</id>
-  <link href="http://127.0.0.1/rev/a4f92ed23982be056b9852de5dfe873eaac7f0de"/>
+  <link href="http://127.0.0.1/rev/a4f92ed23982"/>
   <author>
    <name>test</name>
    <email>&#116;&#101;&#115;&#116;</email>
@@ -110,7 +110,7 @@
  <entry>
   <title>base</title>
   <id>http://127.0.0.1/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id>
-  <link href="http://127.0.0.1/rev/2ef0ac749a14e4f57a5a822464a0902c6f7f448f"/>
+  <link href="http://127.0.0.1/rev/2ef0ac749a14"/>
   <author>
    <name>test</name>
    <email>&#116;&#101;&#115;&#116;</email>
@@ -137,7 +137,7 @@
  <entry>
   <title>base</title>
   <id>http://127.0.0.1/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id>
-  <link href="http://127.0.0.1/rev/2ef0ac749a14e4f57a5a822464a0902c6f7f448f"/>
+  <link href="http://127.0.0.1/rev/2ef0ac749a14"/>
   <author>
    <name>test</name>
    <email>&#116;&#101;&#115;&#116;</email>
@@ -476,7 +476,7 @@
 
  <entry>
   <title>1.0</title>
-  <link rel="alternate" href="http://127.0.0.1/rev/2ef0ac749a14e4f57a5a822464a0902c6f7f448f"/>
+  <link rel="alternate" href="http://127.0.0.1/rev/2ef0ac749a14"/>
   <id>http://127.0.0.1/#tag-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id>
   <updated>1970-01-01T00:00:00+00:00</updated>
   <published>1970-01-01T00:00:00+00:00</published>
--- a/tests/test-hgweb-no-path-info.out	Sun Oct 11 13:58:53 2009 -0500
+++ b/tests/test-hgweb-no-path-info.out	Fri Oct 09 16:27:05 2009 +0200
@@ -20,7 +20,7 @@
  <entry>
   <title>test</title>
   <id>http://127.0.0.1/#changeset-4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e</id>
-  <link href="http://127.0.0.1/rev/4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e"/>
+  <link href="http://127.0.0.1/rev/4cbec7e6f8c4"/>
   <author>
    <name>Testing</name>
    <email>&#84;&#101;&#115;&#116;&#105;&#110;&#103;</email>
--- a/tests/test-hgweb-no-request-uri.out	Sun Oct 11 13:58:53 2009 -0500
+++ b/tests/test-hgweb-no-request-uri.out	Fri Oct 09 16:27:05 2009 +0200
@@ -20,7 +20,7 @@
  <entry>
   <title>test</title>
   <id>http://127.0.0.1/#changeset-4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e</id>
-  <link href="http://127.0.0.1/rev/4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e"/>
+  <link href="http://127.0.0.1/rev/4cbec7e6f8c4"/>
   <author>
    <name>Testing</name>
    <email>&#84;&#101;&#115;&#116;&#105;&#110;&#103;</email>
--- a/tests/test-hgwebdir.out	Sun Oct 11 13:58:53 2009 -0500
+++ b/tests/test-hgwebdir.out	Fri Oct 09 16:27:05 2009 +0200
@@ -237,7 +237,7 @@
  <entry>
   <title>a</title>
   <id>http://127.0.0.1/t/a/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id>
-  <link href="http://127.0.0.1/t/a/rev/8580ff50825a50c8f716709acdf8de0deddcd6ab"/>
+  <link href="http://127.0.0.1/t/a/rev/8580ff50825a"/>
   <author>
    <name>test</name>
    <email>&#116;&#101;&#115;&#116;</email>
@@ -266,7 +266,7 @@
  <entry>
   <title>a</title>
   <id>http://127.0.0.1/t/a/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id>
-  <link href="http://127.0.0.1/t/a/rev/8580ff50825a50c8f716709acdf8de0deddcd6ab"/>
+  <link href="http://127.0.0.1/t/a/rev/8580ff50825a"/>
   <author>
    <name>test</name>
    <email>&#116;&#101;&#115;&#116;</email>