private RevisionId GetToRevision(RevisionRange processedRevisionRange, RevisionId newToRevision) { if (RevisionComparer.Is(newToRevision).GreaterThan(processedRevisionRange.ToChangeset)) { return(newToRevision); } return(processedRevisionRange.ToChangeset); }
private RevisionId GetFromRevision(RevisionRange processedRevisionRange, RevisionId newFromRevision) { if (RevisionComparer.Is(StartRevision).LessThan(newFromRevision)) { newFromRevision = StartRevision; } if (RevisionComparer.Is(newFromRevision).LessThan(processedRevisionRange.FromChangeset)) { return(newFromRevision); } return(processedRevisionRange.FromChangeset); }