Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/hgweb_mod.py @ 3406: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 Sun Oct 15 20:57:30 2006 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Sun Oct 15 21:20:15 2006 -0700 @@ -553,8 +553,8 @@ 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])