changeset 9668:2c24471d478c

cmdutil: fix bug in finddate() implementation
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 30 Oct 2009 09:54:39 +0100
parents 8743f2e1bc54
children 9b127e888640
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Fri Oct 30 09:53:39 2009 +0100
+++ b/mercurial/cmdutil.py	Fri Oct 30 09:54:39 2009 +0100
@@ -1030,7 +1030,7 @@
     def prep(ctx, fns):
         d = ctx.date()
         if df(d[0]):
-            results[rev] = d
+            results[ctx.rev()] = d
 
     for ctx in walkchangerevs(repo, m, {'rev': None}, prep):
         rev = ctx.rev()