1. Danny Tuppeny
  2. FogSharp

Commits

Danny Tuppeny  committed 910291c

Better comments on sample.

  • Participants
  • Parent commits c53bea1
  • Branches default

Comments (0)

Files changed (1)

File FogSharp.Samples/UnreviewedChangesets.cs

View file
 		[Fact]
 		public void GetChangesetsWithoutApprovedReviews()
 		{
-			foreach (var changeset in kiln.GetHistory(7, maxChangesets: 200))
+			// This handles paging automatically, up to maxChangesets (starting at sinceChangeset)
+			foreach (var changeset in kiln.GetHistory(7, sinceChangeset: 5, maxChangesets: 200))
 			{
-				// No reviews :(
+				// Handle changeset with no reviews.
 				if (changeset.ReviewIDs == null || changeset.ReviewIDs.Length == 0)
 				{
 					Console.WriteLine("No review: {0}, {1}", changeset.Author, changeset.Description);
 				}
 
 				// If there are reviews, we need to check if any are not approved. Can't
-				// currently do this in batch :-(
+				// currently do this in batch, so this is really inefficient :-(
 				foreach (var reviewID in changeset.ReviewIDs)
 				{
 					var review = kiln.GetReview(reviewID);