protected virtual bool FileChangeIsOfInterest(string fileName) { if (HgPath.IsDirectory(fileName)) { return(false); } if (fileName.IndexOf(@"\.hg") != -1) { return(false); } return(HasChanged(fileName)); }
private static string[] GetFileArguments(string root, IEnumerable <string> fileNames) { var args = new List <string>(); var sb = new StringBuilder(); foreach (var fileName in fileNames.Where(x => !HgPath.IsDirectory(x)).Select(x => HgPath.StripRoot(x, root))) { if (sb.Length > ArgumentsLengthLimit - fileName.Length - 3) { args.Add(sb.ToString()); sb.Length = 0; } sb.Append(' ').Append('"').Append(fileName).Append('"'); } args.Add(sb.ToString()); return(args.ToArray()); }