# HG changeset patch # User mpm@selenic.com # Date 1116466669 28800 # Node ID e8d4bbf4c9e24bf008001ce95f6fc5187d11ce5b # Parent 6eeb5005048662bc3619e474bb04555ca100a3a3 Don't diff unknown files Fix syntax error from log date diff --git a/hg b/hg --- a/hg +++ b/hg @@ -72,16 +72,13 @@ def diff(files = None, node1 = None, nod date1 = date(change) if files: - (c, a, d) = map(lambda x: filterfiles(x, files), (c, a, d)) + c = filterfiles(c, files) + d = filterfiles(d, files) for f in c: to = repo.file(f).read(mmap[f]) tn = read(f) sys.stdout.write(mdiff.unidiff(to, date1, tn, date2, f)) - for f in a: - to = "" - tn = read(f) - sys.stdout.write(mdiff.unidiff(to, date1, tn, date2, f)) for f in d: to = repo.file(f).read(mmap[f]) tn = "" @@ -322,7 +319,7 @@ elif cmd == "log": changes = repo.changelog.read(repo.changelog.node(cr)) print "user: %s" % changes[1] print "date: %s" % time.asctime( - time.localtime(float(changes[2].split(' ')[0])))) + time.localtime(float(changes[2].split(' ')[0]))) print "description:" print changes[4] print