Tweak finddate to pass date directly.
authormark.williamson@cl.cam.ac.uk
Fri, 11 Jan 2008 01:36:20 +0000
changeset 5836 c5c9a022bd9a
parent 5835 bd34f0ac3cb0
child 5837 2580d418e3f0
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>
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 = {}