Mercurial > hg
changeset 9666:71e081b88f3e
cmdutil: update finddate()
walkchangerevs() now returns contexts, does not take a cache func.
author | Steve Borho <steve@borho.org> |
---|---|
date | Wed, 28 Oct 2009 22:47:46 -0500 |
parents | c4f6c02e33c4 |
children | 8743f2e1bc54 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Oct 28 23:59:18 2009 +0900 +++ b/mercurial/cmdutil.py Wed Oct 28 22:47:46 2009 -0500 @@ -1023,12 +1023,12 @@ def finddate(ui, repo, date): """Find the tipmost changeset that matches the given date spec""" df = util.matchdate(date) - get = util.cachefunc(lambda r: repo[r]) m = matchall(repo) results = {} - for st, rev, fns in walkchangerevs(ui, repo, m, get, {'rev':None}): + for st, ctx, fns in walkchangerevs(ui, repo, m, {'rev': None}): + rev = ctx.rev() if st == 'add': - d = get(rev).date() + d = ctx.date() if df(d[0]): results[rev] = d elif st == 'iter':