internal ServerDiffLinkTranslationService( ServerDiffEngine serverDiffEngine, Guid sourceId, LinkConfigurationLookupService linkConfigurationLookupService) { m_serverDiffEngine = serverDiffEngine; m_sourceId = sourceId; m_linkConfigurationLookupService = linkConfigurationLookupService; }
public WitDiffResult(ServerDiffEngine diffEngine, bool keepLists, bool logDiffs) { m_serverDiffEngine = diffEngine; m_keepLists = keepLists; m_logDiffs = logDiffs; if (keepLists) { m_witDiffPairs = new List <WitDiffPair>(); m_processingErrors = new List <string>(); } }
public void LogDifferenceReport(ServerDiffEngine diffEngine) { diffEngine.LogInfo(MigrationToolkitResources.WitDiffResultReportSeparator); diffEngine.LogInfo(MigrationToolkitResources.WitDiffResultReportHeader); if (m_witDiffPairs.Count > 0) { foreach (WitDiffPair diffPair in m_witDiffPairs) { string side1WorkItemId = diffPair.Side1DiffItem == null ? string.Empty : diffPair.Side1DiffItem.WorkItemId; string side2WorkItemId = diffPair.Side2DiffItem == null ? string.Empty : diffPair.Side2DiffItem.WorkItemId; diffEngine.LogError(String.Format(CultureInfo.InvariantCulture, MigrationToolkitResources.WitDiffResultWorkItemMismatch, side1WorkItemId, diffPair.Side1Name, side2WorkItemId, diffPair.Side2Name, diffPair.DiffType.ToString())); if (diffPair.MissingFields.Count > 0) { diffEngine.LogError(MigrationToolkitResources.WitDiffResultWorkItemFieldMissingHeader); foreach (WitDiffMissingField missingField in diffPair.MissingFields) { diffEngine.LogError(String.Format(CultureInfo.InvariantCulture, MigrationToolkitResources.WitDiffResultWorkItemFieldMissing, missingField.FieldName, missingField.SourceName)); } } if (diffPair.DiffFields.Count > 0) { diffEngine.LogError(MigrationToolkitResources.WitDiffResultWorkItemFieldDiffHeader); foreach (WitDiffField diffField in diffPair.DiffFields) { diffEngine.LogError(String.Format(CultureInfo.InvariantCulture, MigrationToolkitResources.WitDiffResultWorkItemFieldDiffDetail, diffField.FieldName, diffField.SourceValue, diffField.TargetValue)); } } if (diffPair.MissingAttachments.Count > 0) { diffEngine.LogError(MigrationToolkitResources.WitDiffResultWorkItemAttachmentMissingHeader); foreach (string missingAttachment in diffPair.MissingAttachments) { diffEngine.LogError(String.Format(CultureInfo.InvariantCulture, MigrationToolkitResources.WitDiffResultWorkItemAttachmentMissingDetail, missingAttachment)); } } if (diffPair.DiffAttachments.Count > 0) { diffEngine.LogError(MigrationToolkitResources.WitDiffResultWorkItemAttachmentDiffHeader); foreach (WitDiffAttachment diffAttachment in diffPair.DiffAttachments) { diffEngine.LogError(String.Format(CultureInfo.InvariantCulture, MigrationToolkitResources.WitDiffResultWorkItemAttachmentDiffDetail, diffAttachment.SourceAttachmentName, diffAttachment.FieldName, diffAttachment.SourceValue, diffAttachment.TargetValue)); } } if (diffPair.MissingLinks.Count > 0) { diffEngine.LogError(MigrationToolkitResources.WitDiffResultWorkItemLinkMissingHeader); foreach (string missingLink in diffPair.MissingLinks) { diffEngine.LogError(String.Format(CultureInfo.InvariantCulture, MigrationToolkitResources.WitDiffResultWorkItemLinkMissingDetail, missingLink)); } } if (diffPair.DiffLinks.Count > 0) { diffEngine.LogError(MigrationToolkitResources.WitDiffResultWorkItemLinkDiffHeader); foreach (WitDiffLink diffLink in diffPair.DiffLinks) { diffEngine.LogError(String.Format(CultureInfo.InvariantCulture, MigrationToolkitResources.WitDiffResultWorkItemLinkDiffDetail, diffLink.FieldName, diffLink.SourceValue, diffLink.TargetValue)); } } } } if (m_processingErrors.Count > 0) { diffEngine.LogError(MigrationToolkitResources.WitDiffResultWorkItemErrorsHeader); foreach (string error in m_processingErrors) { diffEngine.LogError(error); } } diffEngine.LogInfo(MigrationToolkitResources.WitDiffResultReportSeparator); }
public WITDiffComparer(ServerDiffEngine serverDiffEngine) { m_serverDiffEngine = serverDiffEngine; m_latestSyncPoint = SyncPoint.GetLatestSyncPointForSession(m_serverDiffEngine.Session); }
public VCDiffComparer(ServerDiffEngine serverDiffEngine) { m_serverDiffEngine = serverDiffEngine; }
public WitDiffResult(ServerDiffEngine diffEngine, bool keepLists) : this(diffEngine, keepLists, true) { }
public WitDiffResult(ServerDiffEngine diffEngine) : this(diffEngine, true) { }