comparison tests/test-hgweb-filelog.t @ 13547:a2dc8819bb0d stable

hgweb: fix filelog rss links generation
author Patrick Mezard <pmezard@gmail.com>
date Sun, 06 Mar 2011 22:03:30 +0100
parents d664547ef540
children 38c9837b1f75
comparison
equal deleted inserted replaced
13546:f3c2261023e5 13547:a2dc8819bb0d
654 654
655 </body> 655 </body>
656 </html> 656 </html>
657 657
658 658
659 rss log
660
661 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rss-log/tip/a')
662 200 Script output follows
663
664 <?xml version="1.0" encoding="ascii"?>
665 <rss version="2.0">
666 <channel>
667 <link>http://*:$HGPORT/</link> (glob)
668 <language>en-us</language>
669
670 <title>test: a history</title>
671 <description>a revision history</description>
672 <item>
673 <title>second a</title>
674 <link>http://*:$HGPORT/log01de2d66a28d/a</link> (glob)
675 <description><![CDATA[second a]]></description>
676 <author>&#116;&#101;&#115;&#116;</author>
677 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
678 </item>
679 <item>
680 <title>first a</title>
681 <link>http://*:$HGPORT/log5ed941583260/a</link> (glob)
682 <description><![CDATA[first a]]></description>
683 <author>&#116;&#101;&#115;&#116;</author>
684 <pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
685 </item>
686
687 </channel>
688 </rss>
689
690 atom log
691
692 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/atom-log/tip/a')
693 200 Script output follows
694
695 <?xml version="1.0" encoding="ascii"?>
696 <feed xmlns="http://www.w3.org/2005/Atom">
697 <id>http://*:$HGPORT/atom-log/tip/a</id> (glob)
698 <link rel="self" href="http://*:$HGPORT/atom-log/tip/a"/> (glob)
699 <title>test: a history</title>
700 <updated>1970-01-01T00:00:00+00:00</updated>
701
702 <entry>
703 <title>second a</title>
704 <id>http://*:$HGPORT/#changeset-01de2d66a28df5549090991dccda788726948517</id> (glob)
705 <link href="http://*:$HGPORT/rev/01de2d66a28d"/> (glob)
706 <author>
707 <name>test</name>
708 <email>&#116;&#101;&#115;&#116;</email>
709 </author>
710 <updated>1970-01-01T00:00:00+00:00</updated>
711 <published>1970-01-01T00:00:00+00:00</published>
712 <content type="xhtml">
713 <div xmlns="http://www.w3.org/1999/xhtml">
714 <pre xml:space="preserve">second a</pre>
715 </div>
716 </content>
717 </entry>
718 <entry>
719 <title>first a</title>
720 <id>http://*:$HGPORT/#changeset-5ed941583260248620985524192fdc382ef57c36</id> (glob)
721 <link href="http://*:$HGPORT/rev/5ed941583260"/> (glob)
722 <author>
723 <name>test</name>
724 <email>&#116;&#101;&#115;&#116;</email>
725 </author>
726 <updated>1970-01-01T00:00:00+00:00</updated>
727 <published>1970-01-01T00:00:00+00:00</published>
728 <content type="xhtml">
729 <div xmlns="http://www.w3.org/1999/xhtml">
730 <pre xml:space="preserve">first a</pre>
731 </div>
732 </content>
733 </entry>
734
735 </feed>
736
659 errors 737 errors
660 738
661 $ cat errors.log 739 $ cat errors.log