This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
public void getOriginalFile(File workingCopy, File originalFile) {
FileInformation info = fileStatusCache.getStatus(workingCopy);
LOG.log(Level.FINE, "getOriginalFile: {0} {1}", new Object[] {workingCopy, info}); // NOI18N
if ((info.getStatus() & STATUS_DIFFABLE) == 0) return;
// We can get status returned as UptoDate instead of LocallyNew
// because refreshing of status after creation has been scheduled
// but may not have happened yet.
try {
File original = VersionsCache.getInstance().getFileRevision(workingCopy, Setup.REVISION_BASE);
if (original == null) {
if (original == null) return;
throw new IOException("Unable to get BASE revision of " + workingCopy);
}
org.netbeans.modules.versioning.util.Utils.copyStreamsCloseAll(new FileOutputStream(originalFile), new FileInputStream(original));
original.delete();
} catch (IOException e) {