Changeset a754cc7ad564…
Parent 84306567956d…
by
Changes to 2 files · Browse files at a754cc7ad564 Showing diff from parent 84306567956d Diff from another changeset...
@@ -8,6 +8,7 @@ # GNU General Public License version 2, incorporated herein by reference.
import os
+import sys
import errno
import gtk
import gobject
@@ -207,6 +208,11 @@ def toggle_showtoolbar(button):
self.showtoolbar = button.get_active()
self._show_toolbar(self.showtoolbar)
+ def disable_maxdiff(menuitem):
+ if menuitem.get_active():
+ hglib._maxdiff = sys.maxint
+ else:
+ hglib._maxdiff = None
if self.mqloaded:
mq_item = [dict(text=_('Patch Queue'), name='mq', ascheck=True,
func=self.mq_clicked, check=self.setting_mqvis) ]
@@ -225,7 +231,9 @@ dict(text=_('Refresh'), func=refresh, icon=gtk.STOCK_REFRESH),
dict(text='----'),
dict(name='always-show-output', text=_('Always Show Output'),
- ascheck=True, func=toggle_showoutput, check=self.showoutput)
+ ascheck=True, func=toggle_showoutput, check=self.showoutput),
+ dict(name='ignore-max-diff', text=_('Ignore Max Diff Size'),
+ ascheck=True, func=disable_maxdiff, check=self.showoutput)
]),
dict(text=_('_Operations'), subitems=[
dict(text=_('_Commit'), func=self.commit_clicked,
|
@@ -92,7 +92,6 @@ self.preview_tab_name_label = None
self.subrepos = []
self.colorstyle = self.repo.ui.config('tortoisehg', 'diffcolorstyle')
- self.ignoremaxdiff = False
def auto_check(self):
# Only auto-check files once, and only if a pattern was given.
@@ -1159,8 +1158,6 @@
def check_max_diff(self, pfile):
lines = []
- if self.ignoremaxdiff:
- return lines
ctx = self.repo[self._node1]
try:
fctx = ctx.filectx(pfile)
|
Loading...