changeset 106:e8d4bbf4c9e2

Don't diff unknown files Fix syntax error from log date
author mpm@selenic.com
date Wed, 18 May 2005 17:37:49 -0800
parents 6eeb50050486
children 707a7481a861
files hg
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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