public static GVFSFunctionalTestEnlistment CloneAndMount(string pathToGvfs)
        {
            GVFSFunctionalTestEnlistment enlistment = GVFSFunctionalTestEnlistment.Create(pathToGvfs);

            enlistment.UnmountAndDeleteAll();
            enlistment.CloneAndMount();

            return(enlistment);
        }
        public static GVFSFunctionalTestEnlistment CloneAndMount(string pathToGvfs)
        {
            GVFSFunctionalTestEnlistment enlistment = GVFSFunctionalTestEnlistment.Create(pathToGvfs);

            enlistment.UnmountAndDeleteAll();
            enlistment.CloneAndMount(LocalHistoryOptions.FullLocalHistory, PhysicalCheckoutOptions.NoPhysicalCheckout);

            return(enlistment);
        }
Esempio n. 3
0
        private static GVFSFunctionalTestEnlistment CloneAndMount(string pathToGvfs, string enlistmentRoot, string commitish)
        {
            GVFSFunctionalTestEnlistment enlistment = new GVFSFunctionalTestEnlistment(
                pathToGvfs,
                enlistmentRoot ?? GetUniqueEnlistmentRoot(),
                Properties.Settings.Default.RepoToClone,
                commitish ?? Properties.Settings.Default.Commitish);

            try
            {
                enlistment.CloneAndMount();
            }
            catch (Exception e)
            {
                Console.WriteLine("Unhandled exception in CloneAndMount: " + e.ToString());
                TestResultsHelper.OutputGVFSLogs(enlistment);
                throw;
            }

            return(enlistment);
        }
        public static GVFSFunctionalTestEnlistment CloneAndMount(string pathToGvfs, string commitish = null)
        {
            GVFSFunctionalTestEnlistment enlistment = new GVFSFunctionalTestEnlistment(
                pathToGvfs,
                Properties.Settings.Default.EnlistmentRoot,
                Properties.Settings.Default.RepoToClone,
                commitish == null ? Properties.Settings.Default.Commitish : commitish);

            try
            {
                enlistment.UnmountAndDeleteAll();
                enlistment.CloneAndMount();
            }
            catch (Exception e)
            {
                Console.WriteLine("Unhandled exception in CloneAndMount: " + e.ToString());
                TestResultsHelper.OutputGVFSLogs(enlistment);
                throw;
            }

            return(enlistment);
        }