Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/hgweb.py @ 265:7ca05593bd30
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-----
author | mpm@selenic.com |
---|---|
date | Mon, 06 Jun 2005 10:52:19 -0800 |
parents | 268bcb5a072a |
children | 24e9e140485f |
comparison
equal
deleted
inserted
replaced
264:4c1d7072d5cd | 265:7ca05593bd30 |
---|---|
201 for f in c: | 201 for f in c: |
202 to = r.file(f).read(mmap1[f]) | 202 to = r.file(f).read(mmap1[f]) |
203 tn = r.file(f).read(mmap2[f]) | 203 tn = r.file(f).read(mmap2[f]) |
204 yield diffblock(mdiff.unidiff(to, date1, tn, date2, f), f, tn) | 204 yield diffblock(mdiff.unidiff(to, date1, tn, date2, f), f, tn) |
205 for f in a: | 205 for f in a: |
206 to = "" | 206 to = None |
207 tn = r.file(f).read(mmap2[f]) | 207 tn = r.file(f).read(mmap2[f]) |
208 yield diffblock(mdiff.unidiff(to, date1, tn, date2, f), f, tn) | 208 yield diffblock(mdiff.unidiff(to, date1, tn, date2, f), f, tn) |
209 for f in d: | 209 for f in d: |
210 to = r.file(f).read(mmap1[f]) | 210 to = r.file(f).read(mmap1[f]) |
211 tn = "" | 211 tn = None |
212 yield diffblock(mdiff.unidiff(to, date1, tn, date2, f), f, tn) | 212 yield diffblock(mdiff.unidiff(to, date1, tn, date2, f), f, tn) |
213 | 213 |
214 def header(self): | 214 def header(self): |
215 yield self.t("header", repo = self.reponame) | 215 yield self.t("header", repo = self.reponame) |
216 | 216 |