Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 5836:c5c9a022bd9a
Tweak finddate to pass date directly.
Previous implementation was passing (date + "to" + date), which fails
when "<" and friends are prepended to the date specifier.
Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
author | mark.williamson@cl.cam.ac.uk |
---|---|
date | Fri, 11 Jan 2008 01:36:20 +0000 |
parents | 784073457a0f |
children | 83c354c4d529 |
comparison
equal
deleted
inserted
replaced
5835:bd34f0ac3cb0 | 5836:c5c9a022bd9a |
---|---|
900 return t | 900 return t |
901 return changeset_printer(ui, repo, patch, buffered) | 901 return changeset_printer(ui, repo, patch, buffered) |
902 | 902 |
903 def finddate(ui, repo, date): | 903 def finddate(ui, repo, date): |
904 """Find the tipmost changeset that matches the given date spec""" | 904 """Find the tipmost changeset that matches the given date spec""" |
905 df = util.matchdate(date + " to " + date) | 905 df = util.matchdate(date) |
906 get = util.cachefunc(lambda r: repo.changectx(r).changeset()) | 906 get = util.cachefunc(lambda r: repo.changectx(r).changeset()) |
907 changeiter, matchfn = walkchangerevs(ui, repo, [], get, {'rev':None}) | 907 changeiter, matchfn = walkchangerevs(ui, repo, [], get, {'rev':None}) |
908 results = {} | 908 results = {} |
909 for st, rev, fns in changeiter: | 909 for st, rev, fns in changeiter: |
910 if st == 'add': | 910 if st == 'add': |