Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

stable commit: add toggle for 'ignore max diff size' to view menu

This brings the functionality up to par with the history tool. Uses
the same string as the history tool to avoid making new work for translators.

Closes #897

Changeset a754cc7ad564

Parent 84306567956d

by Steve Borho

Changes to 2 files · Browse files at a754cc7ad564 Showing diff from parent 84306567956d Diff from another changeset...

 
8
9
10
 
11
12
13
 
207
208
209
 
 
 
 
 
210
211
212
 
225
226
227
228
 
 
 
229
230
231
 
8
9
10
11
12
13
14
 
208
209
210
211
212
213
214
215
216
217
218
 
231
232
233
 
234
235
236
237
238
239
@@ -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
93
94
95
96
97
98
 
1159
1160
1161
1162
1163
1164
1165
1166
 
92
93
94
 
95
96
97
 
1158
1159
1160
 
 
1161
1162
1163
@@ -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)