eventlog: change default size
This commit is contained in:
parent
efc7d0d237
commit
423717bd1d
|
@ -610,6 +610,12 @@ namespace SparkleLib.Git {
|
|||
}
|
||||
|
||||
|
||||
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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue