Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgweb_mod.py @ 3394:be628f1cd3f4
hgweb: really fix parent/child rename links
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Sat, 14 Oct 2006 16:20:22 -0700 |
parents | 17894d1d9eea |
children | 3c8f0dc9a6d3 |
comparison
equal
deleted
inserted
replaced
3393:22a106cb5650 | 3394:be628f1cd3f4 |
---|---|
69 siblings = [s for s in siblings if s.node() != nullid] | 69 siblings = [s for s in siblings if s.node() != nullid] |
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 d = {'node': hex(s.node()), 'rev': s.rev()} | 73 d = {'node': hex(s.node()), 'rev': s.rev()} |
74 if hasattr(s, 'file'): | 74 if hasattr(s, 'path'): |
75 d['file'] = s.file() | 75 d['file'] = s.path() |
76 d.update(args) | 76 d.update(args) |
77 yield d | 77 yield d |
78 | 78 |
79 def renamelink(self, fl, node): | 79 def renamelink(self, fl, node): |
80 r = fl.renamed(node) | 80 r = fl.renamed(node) |