Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 779
04c3a6026543
parent 537
72b32daeb8d6
child 783
2c59c7893d30
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Mon Dec 27 17:21:59 2010 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Mon Dec 27 18:35:46 2010 +0100
@@ -79,6 +79,10 @@
         self.limitSpinBox.setValue(self.vcs.getPlugin().getPreferences("LogLimit"))
         self.stopCheckBox.setChecked(self.vcs.getPlugin().getPreferences("StopLogOnCopy"))
         
+        if mode in ("incoming", "outgoing"):
+            self.nextButton.setEnabled(False)
+            self.limitSpinBox.setEnabled(False)
+        
         self.__messageRole = Qt.UserRole
         self.__changesRole = Qt.UserRole + 1
         self.__edgesRole   = Qt.UserRole + 2
@@ -497,8 +501,9 @@
         self.vcs.addArguments(args, self.vcs.options['global'])
         self.vcs.addArguments(args, self.vcs.options['log'])
         args.append('--verbose')
-        args.append('--limit')
-        args.append(str(self.limitSpinBox.value()))
+        if self.commandMode not in ("incoming", "outgoing"):
+            args.append('--limit')
+            args.append(str(self.limitSpinBox.value()))
         if self.commandMode in ("incoming", "outgoing"):
             args.append("--newest-first")
         if startRev is not None:

eric ide

mercurial