repo: do a full SyncUpBase after a git rebase

This commit is contained in:
Hylke Bons 2011-05-22 17:51:48 +01:00
parent 37cd521d44
commit b18db88b61
2 changed files with 10 additions and 3 deletions

View file

@ -252,7 +252,7 @@ namespace SparkleLib {
EnableWatching ();
OnConflictResolved ();
SyncUp ();
RequestStatus (SyncStatus.SyncUp);
}
EnableWatching ();

View file

@ -347,6 +347,13 @@ namespace SparkleLib {
}
protected void RequestStatus (SyncStatus requested_status)
{
if (requested_status == SyncStatus.SyncUp)
SyncUpBase ();
}
private void SyncUpBase ()
{
try {
@ -355,7 +362,6 @@ namespace SparkleLib {
SparkleHelpers.DebugInfo ("SyncUp", "[" + Name + "] Initiated");
//if (AnyDifferences) {
if (SyncStatusChanged != null)
SyncStatusChanged (SyncStatus.SyncUp);
@ -368,6 +374,7 @@ namespace SparkleLib {
SyncStatusChanged (SyncStatus.Idle);
this.listener.AnnounceBase (new SparkleAnnouncement (Identifier, CurrentRevision));
} else {
SparkleHelpers.DebugInfo ("SyncUp", "[" + Name + "] Error");
@ -378,7 +385,7 @@ namespace SparkleLib {
SyncDownBase ();
}
//}
} finally {
this.remote_timer.Start ();
this.local_timer.Start ();