예제 #1
0
        public GVFSFunctionalTestEnlistment(string pathToGVFS, string enlistmentRoot, string repoUrl, string commitish)
        {
            this.EnlistmentRoot = enlistmentRoot;
            this.RepoUrl        = repoUrl;
            this.Commitish      = commitish;

            this.gvfsProcess = new GVFSProcess(pathToGVFS, this.EnlistmentRoot);
        }
예제 #2
0
 private GVFSFunctionalTestEnlistment(string pathToGVFS, string enlistmentRoot, string repoUrl, string commitish)
 {
     this.EnlistmentRoot = enlistmentRoot;
     this.RepoUrl        = repoUrl;
     this.Commitish      = commitish;
     this.gvfsProcess    = new GVFSProcess(pathToGVFS, this.EnlistmentRoot);
     this.ObjectRoot     = Path.Combine(this.DotGVFSRoot, "gitObjectCache");
 }
        private GVFSFunctionalTestEnlistment(string pathToGVFS, string enlistmentRoot, string repoUrl, string commitish)
        {
            this.EnlistmentRoot = Path.Combine(enlistmentRoot, Guid.NewGuid().ToString("N"));
            this.RepoUrl        = repoUrl;
            this.Commitish      = commitish;

            this.gvfsProcess = new GVFSProcess(pathToGVFS, this.EnlistmentRoot);
        }
        private GVFSFunctionalTestEnlistment(string pathToGVFS, string enlistmentRoot, string repoUrl, string commitish, string localCacheRoot = null)
        {
            this.EnlistmentRoot = enlistmentRoot;
            this.RepoUrl        = repoUrl;
            this.Commitish      = commitish;

            if (localCacheRoot == null)
            {
                if (GVFSTestConfig.NoSharedCache)
                {
                    // eg C:\Repos\GVFSFunctionalTests\enlistment\7942ca69d7454acbb45ea39ef5be1d15\.gvfs\.gvfsCache
                    localCacheRoot = GetRepoSpecificLocalCacheRoot(enlistmentRoot);
                }
                else
                {
                    // eg C:\Repos\GVFSFunctionalTests\.gvfsCache
                    // Ensures the general cache is not cleaned up between test runs
                    localCacheRoot = Path.Combine(Properties.Settings.Default.EnlistmentRoot, "..", ".gvfsCache");
                }
            }

            this.LocalCacheRoot = localCacheRoot;
            this.gvfsProcess    = new GVFSProcess(pathToGVFS, this.EnlistmentRoot, this.LocalCacheRoot);
        }