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