Mercurial > hg
comparison mercurial/hgweb/hgweb_mod.py @ 3179:76ab39df0917
gitweb: cosmetic fixes.
Fix the padding around the changelog description.
Alternate row colours for the changeset file list.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 27 Sep 2006 12:08:33 -0700 |
parents | 0d0d7317bbc8 |
children | 48395d2692de |
comparison
equal
deleted
inserted
replaced
3178:0d0d7317bbc8 | 3179:76ab39df0917 |
---|---|
290 changes = cl.read(n) | 290 changes = cl.read(n) |
291 p1 = cl.parents(n)[0] | 291 p1 = cl.parents(n)[0] |
292 | 292 |
293 files = [] | 293 files = [] |
294 mf = self.repo.manifest.read(changes[0]) | 294 mf = self.repo.manifest.read(changes[0]) |
295 parity = 0 | |
295 for f in changes[3]: | 296 for f in changes[3]: |
296 files.append(self.t("filenodelink", | 297 files.append(self.t("filenodelink", |
297 filenode=hex(mf.get(f, nullid)), file=f)) | 298 filenode=hex(mf.get(f, nullid)), file=f, |
299 parity=parity)) | |
300 parity = 1 - parity | |
298 | 301 |
299 def diff(**map): | 302 def diff(**map): |
300 yield self.diff(p1, n, None) | 303 yield self.diff(p1, n, None) |
301 | 304 |
302 yield self.t('changeset', | 305 yield self.t('changeset', |