dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41ea588
)
Tweak comment
author
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 9 Apr 2008 20:07:07 +0000
(20:07 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 9 Apr 2008 20:07:07 +0000
(20:07 +0000)
maintenance/populateParentId.php
patch
|
blob
|
history
diff --git
a/maintenance/populateParentId.php
b/maintenance/populateParentId.php
index
863d7ed
..
4b73070
100644
(file)
--- a/
maintenance/populateParentId.php
+++ b/
maintenance/populateParentId.php
@@
-41,7
+41,7
@@
function populate_rev_parent_id( $db ) {
foreach( $res as $row ) {
# First, check rows with the same timestamp other than this one
# with a smaller rev ID. The highest ID "wins". This avoids loops
- # as
either id or timestamp need to be going from parent_id to parent_id
+ # as
timestamp can only decrease and never loops with IDs (from parent to parent)
$previousID = $db->selectField( 'revision', 'rev_id',
array( 'rev_page' => $row->rev_page, 'rev_timestamp' => $row->rev_timestamp,
"rev_id < {$row->rev_id}" ),