# HG changeset patch # User mpm@selenic.com # Date 1118892189 28800 # Node ID 09f24af48b8221d1a3631105132fa40f436b4f2a # Parent 4b1cec05f3eb85987e336619cef25168105fa57b hgweb: fix deleted file in changeset key error -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hgweb: fix deleted file in changeset key error We simply point to nullid. This is very arguably the correct thing to do. manifest hash: c16f1c05a087e5d3274cb84dfd09d048430f0495 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCsPCdywK+sNU5EO8RAuJzAJ9j2Yn7KHceFxYgKvOd5V4fNNLKmQCfTZ9s jorkRZcX2hdZqRkxM8q8VMk= =+bEb -----END PGP SIGNATURE----- diff -r 4b1cec05f3eb -r 09f24af48b82 mercurial/hgweb.py --- a/mercurial/hgweb.py Wed Jun 15 17:35:09 2005 -0800 +++ b/mercurial/hgweb.py Wed Jun 15 19:23:09 2005 -0800 @@ -173,7 +173,7 @@ lines = prettyprintlines(diff), parity = parity[0], file = f, - filenode = hex(fn)) + filenode = hex(fn or nullid)) parity[0] = 1 - parity[0] def prettyprintlines(diff): @@ -301,7 +301,7 @@ mf = self.repo.manifest.read(changes[0]) for f in changes[3]: files.append(self.t("filenodelink", - filenode = hex(mf[f]), file = f)) + filenode = hex(mf.get(f, nullid)), file = f)) def diff(): yield self.diff(p1, n, changes[3])