Пример #1
0
        private static string GetOriginalFileName(string fileName)
        {
            if (VisualHgFileStatus.Matches(fileName, HgFileStatus.Renamed | HgFileStatus.Copied))
            {
                return(Hg.GetRenamedFileOriginalName(fileName));
            }

            return(fileName);
        }
Пример #2
0
 private static bool HasPendingChildren(IVsHierarchy hierarchy)
 {
     return(VisualHgSolution.GetChildrenFiles(hierarchy).Any(x => VisualHgFileStatus.IsPending(x)));
 }
Пример #3
0
 private bool NeedToSearchChildren(string fileName, HgFileStatus status)
 {
     return(VisualHgOptions.Global.ProjectStatusIncludesChildren &&
            IsProject(fileName) &&
            !VisualHgFileStatus.Matches(status, HgFileStatus.Pending));
 }
Пример #4
0
 public static bool SelectedFileStatusMatches(HgFileStatus pattern)
 {
     return(VisualHgFileStatus.Matches(SelectedFile, pattern));
 }
Пример #5
0
        private static bool ItemStatusMatches(uint itemId, IVsProject project, HgFileStatus pattern)
        {
            var fileName = GetItemFileName(project, itemId);

            return(VisualHgFileStatus.Matches(fileName, pattern));
        }
Пример #6
0
        private static bool ItemStatusMatches(VSITEMSELECTION item, HgFileStatus pattern)
        {
            var fileName = GetItemFileName(item);

            return(VisualHgFileStatus.Matches(fileName, pattern));
        }