private void LoadFrom(BlameGenerator gen)
        {
            RevCommit   srcCommit    = gen.GetSourceCommit();
            PersonIdent srcAuthor    = gen.GetSourceAuthor();
            PersonIdent srcCommitter = gen.GetSourceCommitter();
            string      srcPath      = gen.GetSourcePath();
            int         srcLine      = gen.GetSourceStart();
            int         resLine      = gen.GetResultStart();
            int         resEnd       = gen.GetResultEnd();

            for (; resLine < resEnd; resLine++)
            {
                // Reverse blame can generate multiple results for the same line.
                // Favor the first one selected, as this is the oldest and most
                // likely to be nearest to the inquiry made by the user.
                if (sourceLines[resLine] != 0)
                {
                    continue;
                }
                sourceCommits[resLine]    = srcCommit;
                sourceAuthors[resLine]    = srcAuthor;
                sourceCommitters[resLine] = srcCommitter;
                sourcePaths[resLine]      = srcPath;
                // Since sourceLines is 1-based to permit hasSourceData to use 0 to
                // mean the line has not been annotated yet, pre-increment instead
                // of the traditional post-increment when making the assignment.
                sourceLines[resLine] = ++srcLine;
            }
        }
        /// <summary>Compute until the entire range has been populated.</summary>
        /// <remarks>Compute until the entire range has been populated.</remarks>
        /// <param name="start">first index to examine.</param>
        /// <param name="end">last index to examine.</param>
        /// <exception cref="System.IO.IOException">the repository cannot be read.</exception>
        public virtual void ComputeRange(int start, int end)
        {
            BlameGenerator gen = generator;

            if (gen == null)
            {
                return;
            }
            while (start < end)
            {
                if (HasSourceData(start, end))
                {
                    return;
                }
                if (!gen.Next())
                {
                    gen.Release();
                    generator = null;
                    return;
                }
                LoadFrom(gen);
                // If the result contains either end of our current range bounds,
                // update the bounds to avoid scanning that section during the
                // next loop iteration.
                int resLine = gen.GetResultStart();
                int resEnd  = gen.GetResultEnd();
                if (resLine <= start && start < resEnd)
                {
                    start = resEnd;
                }
                if (resLine <= end && end < resEnd)
                {
                    end = resLine;
                }
            }
        }