Show More
@@ -70,7 +70,11 b' class hgweb(object):' | |||||
70 | if len(siblings) == 1 and siblings[0].rev() == hiderev: |
|
70 | if len(siblings) == 1 and siblings[0].rev() == hiderev: | |
71 | return |
|
71 | return | |
72 | for s in siblings: |
|
72 | for s in siblings: | |
73 |
|
|
73 | d = {'node': hex(s.node()), 'rev': s.rev()} | |
|
74 | if hasattr(s, 'file'): | |||
|
75 | d['file'] = s.file() | |||
|
76 | d.update(args) | |||
|
77 | yield d | |||
74 |
|
78 | |||
75 | def renamelink(self, fl, node): |
|
79 | def renamelink(self, fl, node): | |
76 | r = fl.renamed(node) |
|
80 | r = fl.renamed(node) | |
@@ -318,8 +322,8 b' class hgweb(object):' | |||||
318 | "author": ctx.user(), |
|
322 | "author": ctx.user(), | |
319 | "date": ctx.date(), |
|
323 | "date": ctx.date(), | |
320 | "rename": self.renamelink(fl, n), |
|
324 | "rename": self.renamelink(fl, n), | |
321 |
"parent": self.siblings(fctx.parents() |
|
325 | "parent": self.siblings(fctx.parents()), | |
322 |
"child": self.siblings(fctx.children() |
|
326 | "child": self.siblings(fctx.children()), | |
323 | "desc": ctx.description()}) |
|
327 | "desc": ctx.description()}) | |
324 | parity = 1 - parity |
|
328 | parity = 1 - parity | |
325 |
|
329 | |||
@@ -357,8 +361,8 b' class hgweb(object):' | |||||
357 | node=hex(fctx.node()), |
|
361 | node=hex(fctx.node()), | |
358 | author=fctx.user(), |
|
362 | author=fctx.user(), | |
359 | date=fctx.date(), |
|
363 | date=fctx.date(), | |
360 |
parent=self.siblings(fctx.parents() |
|
364 | parent=self.siblings(fctx.parents()), | |
361 |
child=self.siblings(fctx.children() |
|
365 | child=self.siblings(fctx.children()), | |
362 | rename=self.renamelink(fl, n), |
|
366 | rename=self.renamelink(fl, n), | |
363 | permissions=fctx.manifest().execf(f)) |
|
367 | permissions=fctx.manifest().execf(f)) | |
364 |
|
368 | |||
@@ -395,8 +399,8 b' class hgweb(object):' | |||||
395 | date=fctx.date(), |
|
399 | date=fctx.date(), | |
396 | desc=fctx.description(), |
|
400 | desc=fctx.description(), | |
397 | rename=self.renamelink(fl, n), |
|
401 | rename=self.renamelink(fl, n), | |
398 |
parent=self.siblings(fctx.parents() |
|
402 | parent=self.siblings(fctx.parents()), | |
399 |
child=self.siblings(fctx.children() |
|
403 | child=self.siblings(fctx.children()), | |
400 | permissions=fctx.manifest().execf(f)) |
|
404 | permissions=fctx.manifest().execf(f)) | |
401 |
|
405 | |||
402 | def manifest(self, ctx, path): |
|
406 | def manifest(self, ctx, path): |
General Comments 0
You need to be logged in to leave comments.
Login now