--- a/hg Wed May 18 17:33:46 2005 -0800
+++ b/hg Wed May 18 17:37:49 2005 -0800
@@ -72,16 +72,13 @@
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 @@
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