Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/webcommands.py @ 7410:f1111704061e
coal/paper: show branch name in changeset view
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 25 Nov 2008 22:53:01 +0100 |
parents | 0fa3b6677027 |
children | cf7741aa1e96 |
comparison
equal
deleted
inserted
replaced
7409:0fa3b6677027 | 7410:f1111704061e |
---|---|
225 return changelog(web, req, tmpl, shortlog = True) | 225 return changelog(web, req, tmpl, shortlog = True) |
226 | 226 |
227 def changeset(web, req, tmpl): | 227 def changeset(web, req, tmpl): |
228 ctx = webutil.changectx(web.repo, req) | 228 ctx = webutil.changectx(web.repo, req) |
229 showtags = webutil.showtag(web.repo, tmpl, 'changesettag', ctx.node()) | 229 showtags = webutil.showtag(web.repo, tmpl, 'changesettag', ctx.node()) |
230 showbranch = webutil.nodebranchnodefault(ctx) | |
230 parents = ctx.parents() | 231 parents = ctx.parents() |
231 | 232 |
232 files = [] | 233 files = [] |
233 parity = paritygen(web.stripecount) | 234 parity = paritygen(web.stripecount) |
234 for f in ctx.files(): | 235 for f in ctx.files(): |
244 rev=ctx.rev(), | 245 rev=ctx.rev(), |
245 node=ctx.hex(), | 246 node=ctx.hex(), |
246 parent=webutil.siblings(parents), | 247 parent=webutil.siblings(parents), |
247 child=webutil.siblings(ctx.children()), | 248 child=webutil.siblings(ctx.children()), |
248 changesettag=showtags, | 249 changesettag=showtags, |
250 changesetbranch=showbranch, | |
249 author=ctx.user(), | 251 author=ctx.user(), |
250 desc=ctx.description(), | 252 desc=ctx.description(), |
251 date=ctx.date(), | 253 date=ctx.date(), |
252 files=files, | 254 files=files, |
253 archives=web.archivelist(ctx.hex()), | 255 archives=web.archivelist(ctx.hex()), |