public static Matches ( HgFileStatus status, HgFileStatus pattern ) : bool | ||
status | HgFileStatus | |
pattern | HgFileStatus | |
return | bool |
private static string GetOriginalFileName(string fileName) { if (VisualHgFileStatus.Matches(fileName, HgFileStatus.Renamed | HgFileStatus.Copied)) { return(Hg.GetRenamedFileOriginalName(fileName)); } return(fileName); }
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)); }