Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/hgweb/hgweb_mod.py @ 3405:970b2d6de3b3
hgweb: link to file parents in filediff, rather than changeset parents
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Sun, 15 Oct 2006 21:20:15 -0700 |
parents | 372999405787 |
children | 03e7e8958a27 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -553,8 +553,8 @@ class hgweb(object): def filediff(self, fctx): n = fctx.node() path = fctx.path() - parents = fctx.changectx().parents() - p1 = parents[0].node() + parents = fctx.parents() + p1 = parents and parents[0].node() or nullid def diff(**map): yield self.diff(p1, n, [path])