comparison 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
comparison
equal deleted inserted replaced
3404:2e1d8b238b6c 3405:970b2d6de3b3
551 archives=self.archivelist("tip")) 551 archives=self.archivelist("tip"))
552 552
553 def filediff(self, fctx): 553 def filediff(self, fctx):
554 n = fctx.node() 554 n = fctx.node()
555 path = fctx.path() 555 path = fctx.path()
556 parents = fctx.changectx().parents() 556 parents = fctx.parents()
557 p1 = parents[0].node() 557 p1 = parents and parents[0].node() or nullid
558 558
559 def diff(**map): 559 def diff(**map):
560 yield self.diff(p1, n, [path]) 560 yield self.diff(p1, n, [path])
561 561
562 yield self.t("filediff", 562 yield self.t("filediff",