changeset 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 bd34f0ac3cb0
children 2580d418e3f0
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}