Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 366:21306bd3e0f5
hgweb: remove pointless manifest reads
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hgweb: remove pointless manifest reads
pointed out by Goffredo Baroncelli
manifest hash: 7aa5b93dc73755f02887702d0a01118d91b3b289
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCsNK6ywK+sNU5EO8RAhJeAJ9ck6KYdupiuuyXXU5Mr8upx+D/NgCcDJmI
y7ZVFQoiaYFoJy+GWQ2zFes=
=RHPt
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Wed, 15 Jun 2005 17:15:38 -0800 |
parents | 0c4688e9ee5c |
children | 09f24af48b82 |
comparison
equal
deleted
inserted
replaced
365:f94d3632a323 | 366:21306bd3e0f5 |
---|---|
375 cn = cl.node(changerev) | 375 cn = cl.node(changerev) |
376 cs = cl.read(cn) | 376 cs = cl.read(cn) |
377 p1, p2 = fl.parents(n) | 377 p1, p2 = fl.parents(n) |
378 t = float(cs[2].split(' ')[0]) | 378 t = float(cs[2].split(' ')[0]) |
379 mfn = cs[0] | 379 mfn = cs[0] |
380 self.repo.manifest.read(mfn) | |
381 | 380 |
382 def lines(): | 381 def lines(): |
383 for l, t in enumerate(text.splitlines(1)): | 382 for l, t in enumerate(text.splitlines(1)): |
384 yield self.t("fileline", line = t, | 383 yield self.t("fileline", line = t, |
385 linenumber = "% 6d" % (l + 1), | 384 linenumber = "% 6d" % (l + 1), |
416 cn = cl.node(changerev) | 415 cn = cl.node(changerev) |
417 cs = cl.read(cn) | 416 cs = cl.read(cn) |
418 p1, p2 = fl.parents(n) | 417 p1, p2 = fl.parents(n) |
419 t = float(cs[2].split(' ')[0]) | 418 t = float(cs[2].split(' ')[0]) |
420 mfn = cs[0] | 419 mfn = cs[0] |
421 self.repo.manifest.read(mfn) | |
422 | 420 |
423 def annotate(): | 421 def annotate(): |
424 parity = 1 | 422 parity = 1 |
425 last = None | 423 last = None |
426 for r, l in fl.annotate(n): | 424 for r, l in fl.annotate(n): |