Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 976:5d5ab159d197
hgweb: Changed file page to list format syntax
author | Josef "Jeff" Sipek <jeffpc@optonline.net> |
---|---|
date | Wed, 17 Aug 2005 21:59:02 -0500 |
parents | bdd7c53fca00 |
children | 289975641886 |
comparison
equal
deleted
inserted
replaced
975:bdd7c53fca00 | 976:5d5ab159d197 |
---|---|
429 t = float(cs[2].split(' ')[0]) | 429 t = float(cs[2].split(' ')[0]) |
430 mfn = cs[0] | 430 mfn = cs[0] |
431 | 431 |
432 def lines(): | 432 def lines(): |
433 for l, t in enumerate(text.splitlines(1)): | 433 for l, t in enumerate(text.splitlines(1)): |
434 yield self.t("fileline", line = t, | 434 yield {"line": t, |
435 linenumber = "% 6d" % (l + 1), | 435 "linenumber": "% 6d" % (l + 1), |
436 parity = l & 1) | 436 "parity": l & 1} |
437 | 437 |
438 yield self.t("filerevision", file = f, | 438 yield self.t("filerevision", file = f, |
439 filenode = node, | 439 filenode = node, |
440 path = up(f), | 440 path = up(f), |
441 text = lines(), | 441 text = lines(), |