diff mercurial/commands.py @ 9421:c8e4dc218aaf

log: prevent negative date range from displaying entire log (issue1805)
author Christian Ebert <blacktrash@gmx.net>
date Fri, 04 Sep 2009 11:51:28 +0200
parents 2705e6816d33
children b5e9037d672b
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Sep 04 10:47:55 2009 +0200
+++ b/mercurial/commands.py	Fri Sep 04 11:51:28 2009 +0200
@@ -2044,7 +2044,7 @@
             if only_branches and ctx.branch() not in only_branches:
                 continue
 
-            if df and not df(ctx.date()):
+            if df and not df(ctx.date()[0]):
                 continue
 
             if opts.get('keyword'):