コード例 #1
0
        /// <summary>
        /// Checks to see if the current project has a repository.
        /// </summary>
        /// <returns>
        /// True if the project has a repository, otherwise false.
        /// </returns>
        public static bool ProjectHasRepository()
        {
            switch (mVersionControlType)
            {
            case VersionControlType.Git:
                return(Git.ProjectHasRepository());

            case VersionControlType.Hg:
                return(Hg.ProjectHasRepository());
            }

            return(false);
        }
コード例 #2
0
        /// <summary>
        /// Finds all repository branches, asynchronously. Use ParseBranches to parse the result.
        /// </summary>
        public static Process FindBranches(System.EventHandler exitEventHandler)
        {
            switch (mVersionControlType)
            {
            case VersionControlType.Git:
                return(Git.FindBranches(exitEventHandler));

            case VersionControlType.Hg:
                return(Hg.FindBranches(exitEventHandler));
            }

            return(null);
        }
コード例 #3
0
        /// <summary>
        /// Parses all repository branches.
        /// </summary>
        public static VCBranch[] ParseBranches(string input)
        {
            switch (mVersionControlType)
            {
            case VersionControlType.Git:
                return(Git.ParseBranches(input));

            case VersionControlType.Hg:
                return(Hg.ParseBranches(input));
            }

            return(null);
        }
コード例 #4
0
        /// <summary>
        /// Returns the location of the project's repository.
        /// </summary>
        public static string RepositoryLocation()
        {
            switch (mVersionControlType)
            {
            case VersionControlType.Git:
                return(Git.RepositoryLocation());

            case VersionControlType.Hg:
                return(Hg.RepositoryLocation());
            }

            return(null);
        }
コード例 #5
0
        public static string ParseRepositoryLocation(string input)
        {
            switch (mVersionControlType)
            {
            case VersionControlType.Git:
                return(Git.ParseRepositoryLocation(input));

            case VersionControlType.Hg:
                return(Hg.ParseRepositoryLocation(input));
            }

            return(null);
        }
コード例 #6
0
        /// <summary>
        /// Gets the location of the project's repository.
        /// </summary>
        public static Process GetRepositoryLocation(System.EventHandler exitEventHandler)
        {
            switch (mVersionControlType)
            {
            case VersionControlType.Git:
                return(Git.GetRepositoryLocation(exitEventHandler));

            case VersionControlType.Hg:
                return(Hg.GetRepositoryLocation(exitEventHandler));
            }

            return(null);
        }
コード例 #7
0
        public static bool ParseProjectHasRepository(string input)
        {
            switch (mVersionControlType)
            {
            case VersionControlType.Git:
                return(Git.ParseProjectHasRepository(input));

            case VersionControlType.Hg:
                return(Hg.ParseProjectHasRepository(input));
            }

            return(false);
        }
コード例 #8
0
        /// <summary>
        /// Checks to see if the current project has a repository.
        /// </summary>
        public static Process ProjectHasRepository(System.EventHandler exitEventHandler)
        {
            switch (mVersionControlType)
            {
            case VersionControlType.Git:
                return(Git.ProjectHasRepository(exitEventHandler));

            case VersionControlType.Hg:
                return(Hg.ProjectHasRepository(exitEventHandler));
            }

            return(null);
        }