eventlog: change default size
This commit is contained in:
parent
efc7d0d237
commit
423717bd1d
|
@ -603,13 +603,19 @@ namespace SparkleLib.Git {
|
||||||
return GetChangeSetsInternal (path, count);
|
return GetChangeSetsInternal (path, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override List<SparkleChangeSet> GetChangeSets (int count)
|
public override List<SparkleChangeSet> GetChangeSets (int count)
|
||||||
{
|
{
|
||||||
return GetChangeSetsInternal (null, count);
|
return GetChangeSetsInternal (null, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public override List<SparkleChangeSet> GetChangeSets ()
|
||||||
|
{
|
||||||
|
return GetChangeSetsInternal (null, 150);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private bool FindError (string line)
|
private bool FindError (string line)
|
||||||
{
|
{
|
||||||
Error = ErrorStatus.None;
|
Error = ErrorStatus.None;
|
||||||
|
@ -629,6 +635,7 @@ namespace SparkleLib.Git {
|
||||||
if (Error != ErrorStatus.None) {
|
if (Error != ErrorStatus.None) {
|
||||||
SparkleLogger.LogInfo ("Git", Name + " | Error status changed to " + Error);
|
SparkleLogger.LogInfo ("Git", Name + " | Error status changed to " + Error);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -640,9 +647,7 @@ namespace SparkleLib.Git {
|
||||||
if (count < 1)
|
if (count < 1)
|
||||||
throw new ArgumentOutOfRangeException ("count");
|
throw new ArgumentOutOfRangeException ("count");
|
||||||
|
|
||||||
count = 150;
|
|
||||||
List <SparkleChangeSet> change_sets = new List <SparkleChangeSet> ();
|
List <SparkleChangeSet> change_sets = new List <SparkleChangeSet> ();
|
||||||
|
|
||||||
SparkleGit git;
|
SparkleGit git;
|
||||||
|
|
||||||
if (path == null) {
|
if (path == null) {
|
||||||
|
|
|
@ -54,6 +54,7 @@ namespace SparkleLib {
|
||||||
public abstract bool HasRemoteChanges { get; }
|
public abstract bool HasRemoteChanges { get; }
|
||||||
public abstract bool SyncUp ();
|
public abstract bool SyncUp ();
|
||||||
public abstract bool SyncDown ();
|
public abstract bool SyncDown ();
|
||||||
|
public abstract List<SparkleChangeSet> GetChangeSets ();
|
||||||
public abstract List<SparkleChangeSet> GetChangeSets (int count);
|
public abstract List<SparkleChangeSet> GetChangeSets (int count);
|
||||||
public abstract List<SparkleChangeSet> GetChangeSets (string path, int count);
|
public abstract List<SparkleChangeSet> GetChangeSets (string path, int count);
|
||||||
public abstract void RestoreFile (string path, string revision, string target_file_path);
|
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 ();
|
private Object buffer_lock = new Object ();
|
||||||
|
|
||||||
public void OnFileActivity (FileSystemEventArgs args)
|
public void OnFileActivity (FileSystemEventArgs args)
|
||||||
|
|
|
@ -288,7 +288,7 @@ namespace SparkleShare {
|
||||||
Stopwatch watch = new Stopwatch ();
|
Stopwatch watch = new Stopwatch ();
|
||||||
watch.Start ();
|
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);
|
string html = GetHistoryHTMLLog (change_sets, file_path);
|
||||||
|
|
||||||
watch.Stop ();
|
watch.Stop ();
|
||||||
|
|
Loading…
Reference in a new issue