예제 #1
0
 IMultiFileSystemDiff GetDiff(IMultiFileSystemHistoryService historyService, ConflictInfo conflict)
 {
     return historyService.GetChanges(conflict.SnapshotId, historyService.LatestSnapshot.Id, new[] {conflict.FilePath});         
 }
예제 #2
0
        IMultiFileSystemDiff GetDiff(IMultiFileSystemHistoryService historyService, ISyncPoint syncPoint, IMultiFileSystemChangeFilter filter)
        {
            var fromSnapshotId = syncPoint?.MultiFileSystemSnapshotId;
            var toSnapshotId = historyService.LatestSnapshot.Id;

            var diff = fromSnapshotId == null 
                ? historyService.GetChanges(toSnapshotId) 
                : historyService.GetChanges(fromSnapshotId, toSnapshotId);
    

            return new FilteredMultiFileSystemDiff(diff, filter);
        }