eventlog: change default size

This commit is contained in:
Hylke Bons 2012-10-15 23:45:03 +01:00
parent efc7d0d237
commit 423717bd1d
3 changed files with 10 additions and 9 deletions

View file

@ -603,13 +603,19 @@ namespace SparkleLib.Git {
return GetChangeSetsInternal (path, count);
}
public override List<SparkleChangeSet> GetChangeSets (int count)
{
return GetChangeSetsInternal (null, count);
}
public override List<SparkleChangeSet> GetChangeSets ()
{
return GetChangeSetsInternal (null, 150);
}
private bool FindError (string line)
{
Error = ErrorStatus.None;
@ -629,6 +635,7 @@ namespace SparkleLib.Git {
if (Error != ErrorStatus.None) {
SparkleLogger.LogInfo ("Git", Name + " | Error status changed to " + Error);
return true;
} else {
return false;
}
@ -640,9 +647,7 @@ namespace SparkleLib.Git {
if (count < 1)
throw new ArgumentOutOfRangeException ("count");
count = 150;
List <SparkleChangeSet> change_sets = new List <SparkleChangeSet> ();
SparkleGit git;
if (path == null) {

View file

@ -54,6 +54,7 @@ namespace SparkleLib {
public abstract bool HasRemoteChanges { get; }
public abstract bool SyncUp ();
public abstract bool SyncDown ();
public abstract List<SparkleChangeSet> GetChangeSets ();
public abstract List<SparkleChangeSet> GetChangeSets (int count);
public abstract List<SparkleChangeSet> GetChangeSets (string path, int count);
public abstract void RestoreFile (string path, string revision, string target_file_path);
@ -206,11 +207,6 @@ namespace SparkleLib {
}
public List<SparkleChangeSet> GetChangeSets () {
return GetChangeSets (30);
}
private Object buffer_lock = new Object ();
public void OnFileActivity (FileSystemEventArgs args)

View file

@ -288,7 +288,7 @@ namespace SparkleShare {
Stopwatch watch = new Stopwatch ();
watch.Start ();
List<SparkleChangeSet> change_sets = repo.GetChangeSets (file_path, 30);
List<SparkleChangeSet> change_sets = repo.GetChangeSets (file_path, 100);
string html = GetHistoryHTMLLog (change_sets, file_path);
watch.Stop ();