public void Save()
{
try {
this.vcsWrapper.CheckOutFile(this.vcsHistoryPath, this.localHistoryPath, true, string.Empty);
SyncHistory.Serialize(this.history.Clone(this.historyLimit), localHistoryPath);
this.vcsWrapper.CheckInFile(vcsHistoryPath, localHistoryPath, string.Empty);
}
catch (Exception ex) {
Log.Error($"Save history to {vcsHistoryPath} failed.", ex);
throw;
}
}