Changeset 66134bc6b4f6…
Parent 3c16a85fccbb…
by
Changes to one file · Browse files at 66134bc6b4f6 Showing diff from parent 3c16a85fccbb Diff from another changeset...
@@ -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
|
Loading...