From fba5162e4e36bd9e600a824745825c4d352bfa46 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 23 Jul 2011 20:57:10 +0100 Subject: [PATCH] log: get commits from the last week, instead of the last X commits --- SparkleLib/SparkleRepoBase.cs | 2 +- SparkleShare/SparkleController.cs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/SparkleLib/SparkleRepoBase.cs b/SparkleLib/SparkleRepoBase.cs index f5373aa5..e7c0859f 100644 --- a/SparkleLib/SparkleRepoBase.cs +++ b/SparkleLib/SparkleRepoBase.cs @@ -180,7 +180,7 @@ namespace SparkleLib { } - public virtual List GetChangeSets (int count) { + public virtual List GetChangeSets (int since_days_ago) { return null; } diff --git a/SparkleShare/SparkleController.cs b/SparkleShare/SparkleController.cs index 97a2987a..5c6fb265 100644 --- a/SparkleShare/SparkleController.cs +++ b/SparkleShare/SparkleController.cs @@ -280,11 +280,10 @@ namespace SparkleShare { return GetLog (); string path = Path.Combine (SparklePaths.SparklePath, name); - int log_size = 50; - + foreach (SparkleRepoBase repo in Repositories) { if (repo.LocalPath.Equals (path)) - return repo.GetChangeSets (log_size); + return repo.GetChangeSets (7); } return null;