1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 12:35:22 +02:00

[272708] [import/export] fix various bugs with the synchronization support

-detect conflict
This commit is contained in:
David McKnight 2009-04-22 17:37:03 +00:00
parent 72749117f2
commit 8e2ceb4803

View file

@ -175,11 +175,19 @@ public class FileSystemSubscriber extends ThreeWaySubscriber {
long storedModificationTime = properties.getRemoteFileTimeStamp();
if (remoteModificationTime > storedModificationTime){
// what if it's changed locally too?
long localDownloadTimeStamp = properties.getDownloadFileTimeStamp();
long localTimeStamp = local.getLocalTimeStamp();
if (localTimeStamp > localDownloadTimeStamp){
base = null; // conflict for both
}
else {
base = new LocalResourceVariant(local);
}
}
}
}
}
FileSystemSyncInfo info = new FileSystemSyncInfo(local, base, remote, new RSEResourceVariantComparator(getSynchronizer()));
info.init();