author | mpm@selenic.com |
Sat, 21 May 2005 17:26:44 -0800 | |
changeset 130 | e6678a1beb6a |
parent 129 | 1db9207def07 |
child 137 | b45b1b00fc9e |
--- a/hg +++ b/hg @@ -76,7 +76,9 @@ def diff(files = None, node1 = None, nod c, a, d = map(lambda x: filterfiles(x, files), (c, a, d)) for f in c: - to = repo.file(f).read(mmap[f]) + to = "" + if mmap.has_key(f): + to = repo.file(f).read(mmap[f]) tn = read(f) sys.stdout.write(mdiff.unidiff(to, date1, tn, date2, f)) for f in a: