hgweb: fix non-existent source or destination for diff
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hgweb: fix non-existent source or destination for diff
manifest hash: c076bc00ba04911392085f3d0697106f4d24b808
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCpJtjywK+sNU5EO8RAsaTAKCso0BDI3GQxN9ZZRNeMXjeZXCXLgCfYM+R
JpTBR7gUZtV+pEexSfFlRDQ=
=moF8
-----END PGP SIGNATURE-----
--- a/mercurial/hgweb.py Mon Jun 06 10:51:09 2005 -0800
+++ b/mercurial/hgweb.py Mon Jun 06 10:52:19 2005 -0800
@@ -203,12 +203,12 @@
tn = r.file(f).read(mmap2[f])
yield diffblock(mdiff.unidiff(to, date1, tn, date2, f), f, tn)
for f in a:
- to = ""
+ to = None
tn = r.file(f).read(mmap2[f])
yield diffblock(mdiff.unidiff(to, date1, tn, date2, f), f, tn)
for f in d:
to = r.file(f).read(mmap1[f])
- tn = ""
+ tn = None
yield diffblock(mdiff.unidiff(to, date1, tn, date2, f), f, tn)
def header(self):