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