| #
2bde879a
|
| 07-Jun-2026 |
Andreas Gohr <andi@splitbrain.org> |
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
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 still exists, so for a deleted page it returned the deletion entry itself and the view ended up comparing the current revision with itself ("no way to compare when less than two revisions", empty diff).
Use getRelativeRevision($rev2, -1) instead, which returns the revision immediately before the current one regardless of whether the page file is still present. This covers both pages deleted through DokuWiki and externally deleted pages (whose synthesized deletion entry is now persisted to the changelog).
Add PageDiffTest and PageChangeLogTest covering the resolved revision pair and the underlying changelog walk-back for both deletion kinds.
show more ...
|
| #
e2d055f5
|
| 29-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Apply rector fixes to inc/Ui
|
| #
4cf9cfac
|
| 06-Feb-2022 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
add fallback when url parameter rev is current
feed.php request to show page or media diff previous with current by url parameter rev that is current revision number.
|
| #
eeda7ada
|
| 23-Jan-2022 |
Gerrit Uitslag <klapinklapin@gmail.com> |
some spelling
|
| #
6714d8ce
|
| 23-Jan-2022 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
use RevisionInfo class more in Diff
use RevisionInfo Rev1, Rev2 instead of array oldRevInfo, newRevInfo obsolete revisionTitle(), use RevisionInfo::showRevisionTitle() change variable names
|
| #
e59e4a07
|
| 23-Jan-2022 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
track current revision in Diff::compare()
|
| #
312e7095
|
| 23-Jan-2022 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
add mechanism to track external current revision
|
| #
e3d05127
|
| 05-Jan-2022 |
Gerrit Uitslag <klapinklapin@gmail.com> |
remove Diff::buildDiffHead
new in development version, is not used.
|
| #
5cb97057
|
| 01-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
get revision pair in Diff:handle()
|
| #
19b5dd7e
|
| 16-Oct-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
set ChangeLog property currentRevision when instantiated
will cause more unittest errors during common_pageinfo_test
|
| #
0ea1f71b
|
| 15-Oct-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
Modernize Ui\Diff, PageDiff, MediaDiff
- define class property RevInfo pair - handle() html form data - preProcess() set RevInfo pair - show() generate html - set RevInfo in CompareWith() when confl
Modernize Ui\Diff, PageDiff, MediaDiff
- define class property RevInfo pair - handle() html form data - preProcess() set RevInfo pair - show() generate html - set RevInfo in CompareWith() when conflict and draft
show more ...
|
| #
64876922
|
| 11-Oct-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
obsolete Diff::getExtendedRevisionInfo()
|
| #
d1575179
|
| 11-Oct-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
use integer $rev in Revision and Diff forms
pass tentative revision instead of 'current' for external edition
|
| #
0a475154
|
| 10-Oct-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
@ssahara update Ui\Diff using ChangeLog\getCurrentRevisionInfo()
remove class property $item remove abstract function itemFN() ignore metadata when considering external edit
|
| #
5d9428a0
|
| 26-Sep-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
WIP: handle External Deletion using time() for dummy rev number
|
| #
3bb461ea
|
| 20-Sep-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
fix Non-obvious Ternary Operators
|
| #
cc5508fe
|
| 14-Sep-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
external edits at diff page
- removed pages used content of last existing version in a diff, this makes diff inconsistent. Now manually set to empty string if doing diff. - dummy entry for newer pag
external edits at diff page
- removed pages used content of last existing version in a diff, this makes diff inconsistent. Now manually set to empty string if doing diff. - dummy entry for newer page has probably no use, as the external edits/deletions are recognized now TODO unknown scenario not yet tested
show more ...
|
| #
2fe2fb53
|
| 04-Jan-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
fix usage get_doku_pref()
|
| #
92440599
|
| 04-Jan-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
var type of $oldRev and $newRev
|
| #
035e5eb8
|
| 04-Jan-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
remove last_rev property
|
| #
d9c75b22
|
| 02-Jan-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
abstract method itemFN()
|
| #
30a159ab
|
| 02-Jan-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
check media id validity
|
| #
3d0f231e
|
| 31-Dec-2020 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
rename variables
|
| #
cb5998b4
|
| 31-Dec-2020 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
remove Ui\Diff::buildDiffHead()
|
| #
179b4660
|
| 31-Dec-2020 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
refactor Diff with extendedRevisionInfo()
obsolete buildDiffHead()
|