IMultiFileSystemDiff GetDiff(IMultiFileSystemHistoryService historyService, ConflictInfo conflict) { return historyService.GetChanges(conflict.SnapshotId, historyService.LatestSnapshot.Id, new[] {conflict.FilePath}); }
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); }