Esempio n. 1
0
        private bool RequiredValidGitSvnWorikingDir(object owner)
        {
            if (!RequiresValidWorkingDir(owner))
            {
                return(false);
            }

            if (!GitSvnCommandHelpers.ValidSvnWorkingDir())
            {
                MessageBoxes.NotValidGitSVNDirectory(owner as IWin32Window);
                return(false);
            }

            if (!GitSvnCommandHelpers.CheckRefsRemoteSvn())
            {
                MessageBoxes.UnableGetSVNInformation(owner as IWin32Window);
                return(false);
            }

            return(true);
        }
Esempio n. 2
0
        private bool RequiredValidGitSvnWorikingDir()
        {
            if (!RequiresValidWorkingDir())
            {
                return(false);
            }

            if (!GitSvnCommandHelpers.ValidSvnWorkingDir())
            {
                MessageBox.Show("The current directory is not a valid git-svn repository.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(false);
            }

            if (!GitSvnCommandHelpers.CheckRefsRemoteSvn())
            {
                MessageBox.Show("Unable to determine upstream SVN information.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(false);
            }

            return(true);
        }