# HG changeset patch # User mark.williamson@cl.cam.ac.uk # Date 1200015380 0 # Node ID c5c9a022bd9ae50f160429f422113cc0cc636442 # Parent bd34f0ac3cb0f704517afeb4380fa1c16218fdcf 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 diff -r bd34f0ac3cb0 -r c5c9a022bd9a mercurial/cmdutil.py --- 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 = {}