Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgweb_mod.py @ 3305:0708bdb4987a
hgweb: add file sizes to manifest browsing
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 10 Oct 2006 00:07:46 -0500 |
parents | 98ec107ce723 |
children | e6353b7b102a |
comparison
equal
deleted
inserted
replaced
3304:98ec107ce723 | 3305:0708bdb4987a |
---|---|
428 full, fnode = files[f] | 428 full, fnode = files[f] |
429 if not fnode: | 429 if not fnode: |
430 continue | 430 continue |
431 | 431 |
432 yield {"file": full, | 432 yield {"file": full, |
433 "filenode": hex(fnode), | |
434 "parity": self.stripes(parity), | 433 "parity": self.stripes(parity), |
435 "basename": f, | 434 "basename": f, |
435 "size": ctx.filectx(full).size(), | |
436 "permissions": mf.execf(full)} | 436 "permissions": mf.execf(full)} |
437 parity += 1 | 437 parity += 1 |
438 | 438 |
439 def dirlist(**map): | 439 def dirlist(**map): |
440 parity = 0 | 440 parity = 0 |