This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 126839
Collapse All | Expand All

(-)a/mercurial/src/org/netbeans/modules/mercurial/util/Bundle.properties (+2 lines)
Lines 80-82 MSG_SEARCH_HISTORY_WARN_FROM_BEFORE_TODA Link Here
80
MSG_SEARCH_HISTORY_WARN_FROM_BEFORE_TODATE_NEEDED_TEXT = The From date is after the To date.\nPlease specify a From date before the To date.
80
MSG_SEARCH_HISTORY_WARN_FROM_BEFORE_TODATE_NEEDED_TEXT = The From date is after the To date.\nPlease specify a From date before the To date.
81
MSG_POSSIBLE_PROXY_ISSUE_TITLE = Command Failed - Possible Proxy Issue
81
MSG_POSSIBLE_PROXY_ISSUE_TITLE = Command Failed - Possible Proxy Issue
82
MSG_POSSIBLE_PROXY_ISSUE_QUERY = The Mercurial command has failed (refer to Output Window).\n\nThis may be due to your proxy settings, do you want to modify them?
82
MSG_POSSIBLE_PROXY_ISSUE_QUERY = The Mercurial command has failed (refer to Output Window).\n\nThis may be due to your proxy settings, do you want to modify them?
83
MSG_LONG_COMMAND_QUERY = The command line for the commit command is too long.\n\nDo you wish to commit all files?
84
MSG_LONG_COMMAND_TITLE = Command Line Too Long
(-)a/mercurial/src/org/netbeans/modules/mercurial/util/HgCommand.java (+26 lines)
Lines 42-47 package org.netbeans.modules.mercurial.u Link Here
42
package org.netbeans.modules.mercurial.util;
42
package org.netbeans.modules.mercurial.util;
43
43
44
import java.awt.EventQueue;
44
import java.awt.EventQueue;
45
import javax.swing.JOptionPane;
45
import java.io.BufferedReader;
46
import java.io.BufferedReader;
46
import java.io.BufferedWriter;
47
import java.io.BufferedWriter;
47
import java.io.FileWriter;
48
import java.io.FileWriter;
Lines 1670-1677 public class HgCommand { Link Here
1670
            command.add(HG_COMMIT_OPT_LOGFILE_CMD);
1671
            command.add(HG_COMMIT_OPT_LOGFILE_CMD);
1671
            command.add(tempfile.getAbsolutePath());
1672
            command.add(tempfile.getAbsolutePath());
1672
1673
1674
            List<String> saveCommand = null;
1675
            if(Utilities.isWindows()) {
1676
                saveCommand = new ArrayList<String>(command);
1677
            }
1673
            for(File f: commitFiles){
1678
            for(File f: commitFiles){
1674
                command.add(f.getAbsolutePath().substring(repository.getAbsolutePath().length()+1));            
1679
                command.add(f.getAbsolutePath().substring(repository.getAbsolutePath().length()+1));            
1680
            }
1681
            if(Utilities.isWindows()) {   
1682
                // Count size of command
1683
                int size = 0;
1684
                for (String line : command) {
1685
                    size += line.length();
1686
                }
1687
                int maxSize = 32767; // Assume CreateProcess is used
1688
                if (size > maxSize) {
1689
                    NotifyDescriptor descriptor = new NotifyDescriptor.Confirmation(NbBundle.getMessage(HgCommand.class, "MSG_LONG_COMMAND_QUERY")); // NOI18N
1690
                    descriptor.setTitle(NbBundle.getMessage(HgCommand.class, "MSG_LONG_COMMAND_TITLE")); // NOI18N
1691
                    descriptor.setMessageType(JOptionPane.WARNING_MESSAGE);
1692
                    descriptor.setOptionType(NotifyDescriptor.YES_NO_OPTION);
1693
1694
                    Object res = DialogDisplayer.getDefault().notify(descriptor)
1695
;
1696
                    if (res == NotifyDescriptor.NO_OPTION) {
1697
                        return;
1698
                    }
1699
                    command = saveCommand;
1700
                }
1675
            }
1701
            }
1676
            List<String> list = exec(command);
1702
            List<String> list = exec(command);
1677
            
1703
            

Return to bug 126839