Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

status: use workingfilectx.size() to get file size

Changeset 66134bc6b4f6

Parent 3c16a85fccbb

by Steve Borho

Changes to one file · Browse files at 66134bc6b4f6 Showing diff from parent 3c16a85fccbb Diff from another changeset...

 
495
496
497
498
499
500
501
502
503
504
505
506
 
507
508
509
 
495
496
497
 
498
499
500
501
502
 
503
 
504
505
506
507
@@ -495,15 +495,13 @@
 class WctxModel(QAbstractTableModel):   def __init__(self, wctx, ms, opts, checked, parent=None):   QAbstractTableModel.__init__(self, parent) - repo = wctx._repo   rows = []   def mkrow(fname, st):   ext, sizek = '', ''   try:   mst = fname in ms and ms[fname].upper() or "" - path = repo.wjoin(fname)   name, ext = os.path.splitext(fname) - sizebytes = os.path.getsize(path) + sizebytes = wctx[fname].size()   sizek = (sizebytes + 1023) // 1024   except EnvironmentError:   pass