String rev2 = null;
if (root instanceof FSRevisionRoot) {
FSRevisionRoot revRoot = (FSRevisionRoot) root;
rev2 = "(rev " + revRoot.getRevision() + ")";
} else {
FSTransactionRoot txnRoot = (FSTransactionRoot) root;
rev2 = "(txn " + txnRoot.getTxnID() + ")";
}
generator.displayFileDiff(path, originalFile.myTmpFile, newFile.myTmpFile, rev1, rev2, originalFile.myMimeType, newFile.myMimeType, os);
} else if (printedHeader) {
generator.displayHeader(ISVNGNUDiffGenerator.NO_DIFF, path, null, -1, os);
}