mercurial/hgweb.py
changeset 377 e5d769afd3ef
parent 375 b29219389b00
parent 376 fadc9e126369
child 391 5f65a108a559
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -563,7 +563,7 @@ class hgweb:
                      footer = self.footer(),
                      repo = self.reponame,
                      file = file,
-                     filenode = hex(mf[file]),
+                     filenode = hex(mf.get(file, nullid)),
                      node = changeset,
                      rev = self.repo.changelog.rev(n),
                      p1 = hex(p1),