mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[272708] [import/export] fix various bugs with the synchronization support
-detect conflict
This commit is contained in:
parent
72749117f2
commit
8e2ceb4803
1 changed files with 9 additions and 1 deletions
|
@ -175,7 +175,15 @@ public class FileSystemSubscriber extends ThreeWaySubscriber {
|
|||
long storedModificationTime = properties.getRemoteFileTimeStamp();
|
||||
|
||||
if (remoteModificationTime > storedModificationTime){
|
||||
base = new LocalResourceVariant(local);
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue