Example #1
0
 public string GetCommitMessage(
     IntPtr hParentWnd,
     string parameters, string commonRoot, string[] pathList,
     string originalMessage)
 {
     return(GetCommitMessage(WindowHandleWrapper.TryCreate(hParentWnd), Parameters.Parse(parameters), originalMessage));
 }
Example #2
0
        public string GetCommitMessage2(IntPtr hParentWnd,
                                        string parameters,
                                        string commonURL, string commonRoot, string[] pathList,
                                        string originalMessage, string bugID, out string bugIDOut,
                                        out string[] revPropNames, out string[] revPropValues)
        {
            bugIDOut = bugID;

            Parameters p = Parameters.Parse(parameters);

            if (p.Project.Length == 0)
            {
                // we can extract the project name from the url, e.g.:
                // https://gurtle.googlecode.com/svn/trunk
                // the project name is the first part of the domain
                Uri    url         = new Uri(commonURL);
                string projectName = url.Host.Substring(0, url.Host.IndexOf('.'));
                parameters += " project=" + projectName;
            }

            // If no revision properties are to be set,
            // the plug-in MUST return empty arrays.

            revPropNames  = new string[0];
            revPropValues = new string[0];

            return(GetCommitMessage(WindowHandleWrapper.TryCreate(hParentWnd), Parameters.Parse(parameters), originalMessage));
        }
Example #3
0
 public string ShowOptionsDialog(IntPtr hParentWnd, string parameters)
 {
     return(ShowOptionsDialog(WindowHandleWrapper.TryCreate(hParentWnd), parameters));
 }
Example #4
0
 public string OnCommitFinished(IntPtr hParentWnd,
                                string commonRoot, string[] pathList,
                                string logMessage, int revision)
 {
     return(OnCommitFinished(WindowHandleWrapper.TryCreate(hParentWnd), commonRoot, pathList, logMessage, revision));
 }
Example #5
0
 public bool ValidateParameters(IntPtr hParentWnd, string parameters)
 {
     return(ValidateParameters(WindowHandleWrapper.TryCreate(hParentWnd), parameters));
 }