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>
--- a/mercurial/cmdutil.py Wed Jan 09 11:15:00 2008 +0100
+++ b/mercurial/cmdutil.py Fri Jan 11 01:36:20 2008 +0000
@@ -902,7 +902,7 @@
def finddate(ui, repo, date):
"""Find the tipmost changeset that matches the given date spec"""
- df = util.matchdate(date + " to " + date)
+ df = util.matchdate(date)
get = util.cachefunc(lambda r: repo.changectx(r).changeset())
changeiter, matchfn = walkchangerevs(ui, repo, [], get, {'rev':None})
results = {}