comparison mercurial/commands.py @ 264:4c1d7072d5cd

Attempt to make diff deal with null sources properly -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Attempt to make diff deal with null sources properly manifest hash: 7766ed2b885640157b93474b6e42573ec061fcfb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCpJsdywK+sNU5EO8RAr5gAJ9sIik+3FDyI8UvIvrWlku4QgMZWQCcDFvh MvtqY8pFYTFLp7tM2zzTlu4= =a0oy -----END PGP SIGNATURE-----
author mpm@selenic.com
date Mon, 06 Jun 2005 10:51:09 -0800
parents 3db700146536
children 4af7677de4a9
comparison
equal deleted inserted replaced
263:e8eb427c6d71 264:4c1d7072d5cd
59 for f in c: 59 for f in c:
60 to = repo.file(f).read(mmap[f]) 60 to = repo.file(f).read(mmap[f])
61 tn = read(f) 61 tn = read(f)
62 sys.stdout.write(mdiff.unidiff(to, date1, tn, date2, f)) 62 sys.stdout.write(mdiff.unidiff(to, date1, tn, date2, f))
63 for f in a: 63 for f in a:
64 to = "" 64 to = None
65 tn = read(f) 65 tn = read(f)
66 sys.stdout.write(mdiff.unidiff(to, date1, tn, date2, f)) 66 sys.stdout.write(mdiff.unidiff(to, date1, tn, date2, f))
67 for f in d: 67 for f in d:
68 to = repo.file(f).read(mmap[f]) 68 to = repo.file(f).read(mmap[f])
69 tn = "" 69 tn = None
70 sys.stdout.write(mdiff.unidiff(to, date1, tn, date2, f)) 70 sys.stdout.write(mdiff.unidiff(to, date1, tn, date2, f))
71 71
72 def help(ui, cmd=None): 72 def help(ui, cmd=None):
73 '''show help for a given command or all commands''' 73 '''show help for a given command or all commands'''
74 if cmd: 74 if cmd: