private static bool ItemStatusMatches(VSITEMSELECTION item, HgFileStatus pattern) { var fileName = GetItemFileName(item); return VisualHgFileStatus.Matches(fileName, pattern); }