protected override void ExcludeItems(string projectFile, string[] itemNames)
        {
            List <string> changed = null;

            foreach (string item in itemNames)
            {
                if (!IsSafeSccPath(item))
                {
                    continue;
                }

                string path = SvnTools.GetNormalizedFullPath(item);

                if (!ProjectMap.IsSccExcluded(path))
                {
                    ProjectMap.SccExclude(path);

                    if (changed == null)
                    {
                        changed = new List <string>();
                    }
                    changed.Add(path);

                    StatusCache.SetSolutionContained(path, ProjectMap.ContainsFile(path), true);
                }
            }

            if (changed != null)
            {
                PendingChanges.Refresh(changed);
            }
        }
        protected override void UndoExcludeItems(string projectFile, string[] itemNames)
        {
            List <string> changed = null;

            foreach (string item in itemNames)
            {
                if (!IsSafeSccPath(item))
                {
                    continue;
                }

                string path = SvnTools.GetNormalizedFullPath(item);

                if (ProjectMap.SccRemoveExcluded(path))
                {
                    if (changed == null)
                    {
                        changed = new List <string>();
                    }
                    changed.Add(path);
                }
            }

            if (changed != null)
            {
                PendingChanges.Refresh(changed);
            }
        }
Ejemplo n.º 3
0
 internal void RemovedFromSolution(string fullPath)
 {
     StatusCache.SetSolutionContained(fullPath, false, false);
     PendingChanges.Refresh(fullPath);
 }