Translations:Manual:PopulateParentId.php/10/en

This avoids loops as the timestamp can only decrease and never loops with IDs (from parent to parent).