mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-07 00:05:53 +02:00
[272708] [import/export] fix various bugs with the synchronization support
-we have to choose a base in order to get accurate diffs
This commit is contained in:
parent
e80b62240a
commit
a51cdab773
1 changed files with 8 additions and 5 deletions
|
@ -178,12 +178,15 @@ public class FileSystemSubscriber extends ThreeWaySubscriber {
|
||||||
// what if it's changed locally too?
|
// what if it's changed locally too?
|
||||||
long localDownloadTimeStamp = properties.getDownloadFileTimeStamp();
|
long localDownloadTimeStamp = properties.getDownloadFileTimeStamp();
|
||||||
long localTimeStamp = local.getLocalTimeStamp();
|
long localTimeStamp = local.getLocalTimeStamp();
|
||||||
if (localTimeStamp > localDownloadTimeStamp){
|
//if (localTimeStamp > localDownloadTimeStamp){
|
||||||
base = null; // conflict for both
|
// base = null; // conflict for both
|
||||||
}
|
//}
|
||||||
else {
|
//else {
|
||||||
|
// leaving the local base, since 1 base is better than none
|
||||||
|
// if there is no base, then we can't accurately show the diffs
|
||||||
|
// need to provide something better
|
||||||
base = new LocalResourceVariant(local);
|
base = new LocalResourceVariant(local);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue