Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9.1, 0.9.1.1, and 0.9.2

stable changeset: respect 'tortoisehg.maxdiff' configured in repository HGRC

If you use 'self.ui' to get 'tortoisehg.maxdiff' value, it will
ignore repository HGRC and read user HGRC, even though it should be
overwritten with values configured in repository HGRC.
So you need to use 'self.repo.ui' instead of it.

Changeset 79ff9e447904

Parent 79ce52d8945c

by Yuki KODAMA

Changes to one file · Browse files at 79ff9e447904 Showing diff from parent 79ce52d8945c Diff from another changeset...

 
276
277
278
279
 
280
281
282
 
276
277
278
 
279
280
281
282
@@ -276,7 +276,7 @@
  fctx = self.repo[rev].filectx(wfile)   except hglib.LookupError:   fctx = None - if fctx and fctx.size() > hglib.getmaxdiffsize(self.ui): + if fctx and fctx.size() > hglib.getmaxdiffsize(self.repo.ui):   lines = ['diff',   _(' %s is larger than the specified max diff size') % wfile]   else: