log: get commits from the last week, instead of the last X commits

This commit is contained in:
Hylke Bons 2011-07-23 20:57:10 +01:00
parent bff9eb0e5c
commit fba5162e4e
2 changed files with 3 additions and 4 deletions

View file

@ -180,7 +180,7 @@ namespace SparkleLib {
}
public virtual List<SparkleChangeSet> GetChangeSets (int count) {
public virtual List<SparkleChangeSet> GetChangeSets (int since_days_ago) {
return null;
}

View file

@ -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;