Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 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 | 2c2f7593ffc4 |
comparison
equal
deleted
inserted
replaced
9667:8743f2e1bc54 | 9668:2c24471d478c |
---|---|
1028 results = {} | 1028 results = {} |
1029 | 1029 |
1030 def prep(ctx, fns): | 1030 def prep(ctx, fns): |
1031 d = ctx.date() | 1031 d = ctx.date() |
1032 if df(d[0]): | 1032 if df(d[0]): |
1033 results[rev] = d | 1033 results[ctx.rev()] = d |
1034 | 1034 |
1035 for ctx in walkchangerevs(repo, m, {'rev': None}, prep): | 1035 for ctx in walkchangerevs(repo, m, {'rev': None}, prep): |
1036 rev = ctx.rev() | 1036 rev = ctx.rev() |
1037 if rev in results: | 1037 if rev in results: |
1038 ui.status(_("Found revision %s from %s\n") % | 1038 ui.status(_("Found revision %s from %s\n") % |