1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 14:25:37 +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:
David McKnight 2009-04-22 21:05:01 +00:00
parent e80b62240a
commit a51cdab773

View file

@ -178,12 +178,15 @@ public class FileSystemSubscriber extends ThreeWaySubscriber {
// what if it's changed locally too?
long localDownloadTimeStamp = properties.getDownloadFileTimeStamp();
long localTimeStamp = local.getLocalTimeStamp();
if (localTimeStamp > localDownloadTimeStamp){
base = null; // conflict for both
}
else {
//if (localTimeStamp > localDownloadTimeStamp){
// base = null; // conflict for both
//}
//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);
}
//}
}
}
}