protected List <string> GetAllTrackedLocalFiles() { var trackedServerPaths = GetAllTrackedFiles(); // Filtered local paths return(trackedServerPaths.Select(sp => _mapper.MapToLocalFile(sp)).ToList()); }
private void CreateChangeItem(ChangeSet cs, string changeItem) { var ci = new ChangeItem(); // Example // M Visualization.Controls/Strings.resx // A Visualization.Controls/Tools/IHighlighting.cs // R083 Visualization.Controls/Filter/FilterView.xaml Visualization.Controls/Tools/ToolView.xaml var parts = changeItem.Split(new[] { '\t' }, StringSplitOptions.RemoveEmptyEntries); var changeKind = ToKindOfChange(parts[0]); ci.Kind = changeKind; if (changeKind == KindOfChange.Rename || changeKind == KindOfChange.Copy) { Debug.Assert(parts.Length == 3); var oldName = parts[1]; var newName = parts[2]; ci.ServerPath = Decoder.DecodeEscapedBytes(newName); ci.FromServerPath = Decoder.DecodeEscapedBytes(oldName); cs.Items.Add(ci); } else { Debug.Assert(parts.Length == 2 || parts.Length == 3); ci.ServerPath = Decoder.DecodeEscapedBytes(parts[1]); cs.Items.Add(ci); } ci.LocalPath = _mapper.MapToLocalFile(ci.ServerPath); }