private static string GetOriginalFileName(string fileName) { if (VisualHgFileStatus.Matches(fileName, HgFileStatus.Renamed | HgFileStatus.Copied)) { return(Hg.GetRenamedFileOriginalName(fileName)); } return(fileName); }
private static bool HasPendingChildren(IVsHierarchy hierarchy) { return(VisualHgSolution.GetChildrenFiles(hierarchy).Any(x => VisualHgFileStatus.IsPending(x))); }
private bool NeedToSearchChildren(string fileName, HgFileStatus status) { return(VisualHgOptions.Global.ProjectStatusIncludesChildren && IsProject(fileName) && !VisualHgFileStatus.Matches(status, HgFileStatus.Pending)); }
public static bool SelectedFileStatusMatches(HgFileStatus pattern) { return(VisualHgFileStatus.Matches(SelectedFile, pattern)); }
private static bool ItemStatusMatches(uint itemId, IVsProject project, HgFileStatus pattern) { var fileName = GetItemFileName(project, itemId); return(VisualHgFileStatus.Matches(fileName, pattern)); }
private static bool ItemStatusMatches(VSITEMSELECTION item, HgFileStatus pattern) { var fileName = GetItemFileName(item); return(VisualHgFileStatus.Matches(fileName, pattern)); }