diff mercurial/util.py @ 7953:8c6f823efcc9

Correct a bug on date formats with '>' or '<' accompanied by space characters.
author Justin Peng <justin.peng.sw@gmail.com>
date Wed, 01 Apr 2009 09:11:00 -0700
parents de377b1a9a84
children 25b63941b17b
line wrap: on
line diff
--- a/mercurial/util.py	Sun Mar 29 14:43:49 2009 +0200
+++ b/mercurial/util.py	Wed Apr 01 09:11:00 2009 -0700
@@ -1315,6 +1315,7 @@
         d["d"] = "28"
         return parsedate(date, extendeddateformats, d)[0]
 
+    date = date.strip()
     if date[0] == "<":
         when = upper(date[1:])
         return lambda x: x <= when