Mercurial > hg
changeset 369:09f24af48b82
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-----
author | mpm@selenic.com |
---|---|
date | Wed, 15 Jun 2005 19:23:09 -0800 |
parents | 4b1cec05f3eb |
children | c90385d82aec |
files | mercurial/hgweb.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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])