コード例 #1
0
 private RevisionId GetToRevision(RevisionRange processedRevisionRange, RevisionId newToRevision)
 {
     if (RevisionComparer.Is(newToRevision).GreaterThan(processedRevisionRange.ToChangeset))
     {
         return(newToRevision);
     }
     return(processedRevisionRange.ToChangeset);
 }
コード例 #2
0
        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);
        }