Esempio n. 1
0
 private void SetComputedPaths()
 {
     this.NamedPipeName = EnlistmentUtils.GetNamedPipeName(this.EnlistmentRoot);
     this.DotGVFSRoot   = Path.Combine(this.EnlistmentRoot, GVFSConstants.DotGVFSPath);
     this.GVFSLogsRoot  = Path.Combine(this.DotGVFSRoot, GVFSConstants.GVFSLogFolderName);
     /* TODO: Story 957530 Remove code using GVFS_HEAD with next breaking change. */
     this.GVFSHeadFile = Path.Combine(this.DotGVFSRoot, GVFSConstants.GVFSHeadCommitName);
 }
Esempio n. 2
0
        public static GVFSEnlistment CreateFromDirectory(string directory, string cacheServerUrl, string gitBinRoot, string gvfsHooksRoot)
        {
            if (Directory.Exists(directory))
            {
                string enlistmentRoot = EnlistmentUtils.GetEnlistmentRoot(directory);
                if (enlistmentRoot != null)
                {
                    return(new GVFSEnlistment(enlistmentRoot, cacheServerUrl, gitBinRoot, gvfsHooksRoot));
                }
            }

            return(null);
        }
Esempio n. 3
0
        public static GVFSEnlistment CreateWithoutRepoUrlFromDirectory(string directory, string gitBinRoot)
        {
            if (Directory.Exists(directory))
            {
                string enlistmentRoot = EnlistmentUtils.GetEnlistmentRoot(directory);
                if (enlistmentRoot != null)
                {
                    return(new GVFSEnlistment(enlistmentRoot, gitBinRoot));
                }
            }

            return(null);
        }
Esempio n. 4
0
        public static string GetMutexName(string enlistmentRoot)
        {
            string pipeName = EnlistmentUtils.GetNamedPipeName(enlistmentRoot);

            return("Global\\" + pipeName.Replace('\\', ':'));
        }
Esempio n. 5
0
 private void SetComputedPaths()
 {
     this.NamedPipeName = EnlistmentUtils.GetNamedPipeName(this.EnlistmentRoot);
     this.DotGVFSRoot   = Path.Combine(this.EnlistmentRoot, GVFSConstants.DotGVFSPath);
     this.GVFSLogsRoot  = Path.Combine(this.DotGVFSRoot, GVFSConstants.GVFSLogFolderName);
 }