Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

filedata: mercurial repos do not have a maxdiff property

Changeset 3735eea73ba0

Parent ee16bc50ca21

by Angel Ezquerra

Changes to one file · Browse files at 3735eea73ba0 Showing diff from parent ee16bc50ca21 Diff from another changeset...

 
266
267
268
 
269
270
271
272
 
273
274
275
 
283
284
285
286
 
287
288
289
 
296
297
298
299
 
300
301
302
 
266
267
268
269
270
271
272
 
273
274
275
276
 
284
285
286
 
287
288
289
290
 
297
298
299
 
300
301
302
303
@@ -266,10 +266,11 @@
  mde = _('File or diffs not displayed: ') + \   _('File is larger than the specified max size.\n')   + maxdiff = repo.maxdiff   if status in ('R', '!'):   if wfile in ctx.p1():   fctx = ctx.p1()[wfile] - if fctx._filelog.rawsize(fctx.filerev()) > ctx._repo.maxdiff: + if fctx._filelog.rawsize(fctx.filerev()) > maxdiff:   self.error = mde   else:   olddata = fctx.data() @@ -283,7 +284,7 @@
  return     if status in ('I', '?', 'C'): - if os.path.getsize(repo.wjoin(wfile)) > ctx._repo.maxdiff: + if os.path.getsize(repo.wjoin(wfile)) > maxdiff:   self.error = mde   else:   data = util.posixfile(repo.wjoin(wfile), 'r').read() @@ -296,7 +297,7 @@
  return     if status in ('M', 'A'): - res = self.checkMaxDiff(ctx, wfile, repo.maxdiff) + res = self.checkMaxDiff(ctx, wfile, maxdiff)   if res is None:   return   fctx, newdata = res