<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in PageDiffTest.php</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2025</copyright>
    <generator>Java</generator><item>
        <title>2bde879a12352d26be5e3f11e86855f463734d2d - Fix diff view comparing a deleted page with itself (#4635)</title>
        <link>http://127.0.0.1:8080/history/dokuwiki/_test/tests/Ui/PageDiffTest.php#2bde879a12352d26be5e3f11e86855f463734d2d</link>
        <description>Fix diff view comparing a deleted page with itself (#4635)When opening the diff of a deleted page without explicit rev parameters(?do=diff), Diff::handle() resolved the older side via getRevisions(0, 1).That helper only skips the current revision when the item file stillexists, so for a deleted page it returned the deletion entry itself andthe view ended up comparing the current revision with itself (&quot;no way tocompare when less than two revisions&quot;, empty diff).Use getRelativeRevision($rev2, -1) instead, which returns the revisionimmediately before the current one regardless of whether the page fileis still present. This covers both pages deleted through DokuWiki andexternally deleted pages (whose synthesized deletion entry is nowpersisted to the changelog).Add PageDiffTest and PageChangeLogTest covering the resolved revisionpair and the underlying changelog walk-back for both deletion kinds.

            List of files:
            /dokuwiki/_test/tests/Ui/PageDiffTest.php</description>
        <pubDate>Sun, 07 Jun 2026 10:17:48 +0000</pubDate>
        <dc:creator>Andreas Gohr &lt;andi@splitbrain.org&gt;</dc:creator>
    </item>
</channel>
</rss>
