cmdutil: fix bug in finddate() implementation
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Fri, 30 Oct 2009 09:54:39 +0100
changeset 9668 2c24471d478c
parent 9667 8743f2e1bc54
child 9669 9b127e888640
cmdutil: fix bug in finddate() implementation
mercurial/cmdutil.py
--- 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()