internal static void UnbindAll() { if (!IsActive) { return; } TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.UnbindAll starts"); HandleComReturn(GetProvider().UnbindAll()); TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.UnbindAll ends"); }
internal static void AnnotateFiles() { if (!IsActive) { return; } TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.AnnotateFiles starts"); HandleComReturn(GetProvider().AnnotateFiles()); TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.AnnotateFiles ends"); }
internal static void ProcessUndoneAdds(string[] fileNames) { if (!IsActive || fileNames == null || fileNames.Length == 0) { return; } TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.ProcessUndoneAdds starts; fileNames={0}{1}", (object)fileNames, (object)string.Empty); HandleComReturn(GetProvider().ProcessUndoneAdds(fileNames)); TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.ProcessUndoneAdds ends"); }
internal static bool Get(string[] localItems, VersionSpec versionSpec, VersionControlGetFlags options) { var flag = false; if (IsActive) { TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.Get starts"); HandleComReturn(GetProvider().Get(localItems, versionSpec.DisplayString, (int)options)); TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.Get ends"); flag = true; } return(flag); }
internal static void OpenFromSCC(string solutionFile, string localDir, string version, VersionControlOpenFromSccOverwrite overwriteMode) { if (!IsActive) { return; } TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.OpenFromSCC starts; solutionFile={0} localDir={1} version={2} overwriteMode={3}", (object)solutionFile, (object)localDir, (object)version, (object)overwriteMode); HandleComReturn(GetProvider().OpenFromSCC(solutionFile, localDir, version, overwriteMode)); TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.OpenFromSCC ends"); }
internal static void LogEvent(TeamFoundationRequestContext requestContext, string message, LogEventInformationLevel informationLevel) { switch (informationLevel) { case LogEventInformationLevel.Information: TeamFoundationTrace.Info(message); break; case LogEventInformationLevel.Warning: TeamFoundationTrace.Warning(message); TeamFoundationApplicationCore.Log(requestContext, message, TeamFoundationEventId.WarehouseErrorsBaseEventId, System.Diagnostics.EventLogEntryType.Warning); break; case LogEventInformationLevel.Error: TeamFoundationTrace.Error(message); TeamFoundationApplicationCore.Log(requestContext, message, TeamFoundationEventId.WarehouseErrorsBaseEventId, System.Diagnostics.EventLogEntryType.Error); break; } }
public static void ViewPendingChanges(Workspace workspace, IEnumerable <PendingChange> changes) { using (UIHost.GetWaitCursor()) { foreach (PendingChange pendingChange in changes) { if (pendingChange.ItemType == ItemType.File) { if ((pendingChange.ServerItem).EndsWith(".sln")) { TeamFoundationTrace.Info(VCTraceKeywordSets.PendingChanges, "View(VS):Opening solution/project '{0}'", (object)pendingChange.ServerItem); OpenSolutionWithWorkspace(workspace, pendingChange.ServerItem, VersionSpec.Latest); } else { var str = VersionControlPath.GetTempFileName(pendingChange.ServerItem, pendingChange.Version); pendingChange.DownloadBaseFile(str); TryOpenFile(str); } } } } }