Index: trunk/tools/analysis/StreamingXMLHistory.php |
— | — | @@ -231,19 +231,14 @@ |
232 | 232 | $textSize = strlen($revision->text); |
233 | 233 | |
234 | 234 | $md5 = md5($revision->text); |
| 235 | + |
| 236 | + $revertIndex = array_search($md5, $this->md5History); |
| 237 | + |
235 | 238 | $isNew = "no"; |
236 | 239 | |
237 | | - $revertIndex = array_search($md5, $this->md5History); |
238 | 240 | if($revertIndex === FALSE ){ |
239 | | - $isNew = 'yes'; |
240 | | - $this->revTypes[] = new Edit(true); |
| 241 | + $isNew = "yes"; |
241 | 242 | } |
242 | | - else{ |
243 | | - $revert = new Revert(count($this->revTypes), $this->revTypes, true, $revertIndex); |
244 | | - $this->revTypes[] = $revert; |
245 | | - $revert->updateHistory(); |
246 | | - } |
247 | | - $this->md5History[] = $md5; |
248 | 243 | |
249 | 244 | $csvData = array( |
250 | 245 | $revision->id, |
— | — | @@ -270,10 +265,18 @@ |
271 | 266 | $this->nextLog = $this->getNextLogDataLine(); |
272 | 267 | } |
273 | 268 | } |
274 | | - fputcsv($this->outputFile, $csvData); |
| 269 | + fputcsv($this->outputFile, $csvData); |
| 270 | + |
| 271 | + if($revertIndex === FALSE ){ |
| 272 | + $this->revTypes[] = new Edit(true); |
| 273 | + } |
| 274 | + else{ |
| 275 | + $revert = new Revert(count($this->revTypes), $this->revTypes, true, $revertIndex); |
| 276 | + $this->revTypes[] = $revert; |
| 277 | + $revert->updateHistory(); |
| 278 | + } |
| 279 | + $this->md5History[] = $md5; |
275 | 280 | } |
276 | | - |
277 | | - |
278 | 281 | } |
279 | 282 | |
280 | 283 | |