No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ConfigurePartialWorkspace.cs 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. using System.Collections.Generic;
  2. using System.IO;
  3. using Codice.Client.Commands.WkTree;
  4. using Codice.Client.Common;
  5. using Codice.Client.Common.GameUI;
  6. using Codice.CM.Common;
  7. using Codice.CM.Common.Mount;
  8. using Codice.CM.Common.Partial;
  9. using Codice.CM.WorkspaceServer.DataStore.Configuration;
  10. namespace Unity.PlasticSCM.Editor.Configuration
  11. {
  12. internal static class ConfigurePartialWorkspace
  13. {
  14. internal static void AsFullyChecked(WorkspaceInfo wkInfo)
  15. {
  16. string rootPath = WorkspacePath.GetWorkspacePathFromCmPath(
  17. wkInfo.ClientPath, "/", Path.DirectorySeparatorChar);
  18. WorkspaceTreeNode rootWkNode = CmConnection.Get().GetWorkspaceTreeHandler().
  19. WkGetWorkspaceTreeNode(rootPath);
  20. FullyCheckedDirectory rootDirectory = new FullyCheckedDirectory(
  21. MountPointId.WORKSPACE_ROOT, rootWkNode.RevInfo.ItemId);
  22. List<FullyCheckedDirectory> directoryList = new List<FullyCheckedDirectory>();
  23. directoryList.Add(rootDirectory);
  24. FullyCheckedDirectoriesStorage.Save(wkInfo, directoryList);
  25. }
  26. }
  27. }