hgweb: fix deleted file in filediff key error
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 16 Jun 2005 05:44:05 +0100
changeset 376 fadc9e126369
parent 371 6e3436082697
child 377 e5d769afd3ef
hgweb: fix deleted file in filediff key error -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hgweb: fix deleted file in filediff key error manifest hash: f751d213d2d2d49b3631dbe72699554e58ae590a -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCsQOVW7P1GVgWeRoRAvRAAJ9cLxO+QLg6gEnn/0XPZJP1G/8/KQCfdygL b+awDXRJmE0onoNzvzzIcBg= =jDV4 -----END PGP SIGNATURE-----
mercurial/hgweb.py
--- a/mercurial/hgweb.py	Wed Jun 15 19:52:41 2005 -0800
+++ b/mercurial/hgweb.py	Thu Jun 16 05:44:05 2005 +0100
@@ -562,7 +562,7 @@
                      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),