precedingCheckInTime = currentCheckInTime;
precedingLogMessage = currentLogMessage;
// checkInTime of the current revision is temporarly the point in time where the current transaction
// finished until we find a newer revision.
transaction.setFinished(new Date(currentCheckInTime));
transaction.addRevision(revision);
// The revision.getFile() == null check is needed for testcases --> we did not want to initialize the whole
// object tree, so file can be null.
LOGGER.debug("Added revision " + ((revision.getFile() == null) ? "null" : revision.getFile().getName())
+ " - " + revision.getNumber() + " to transaction.");