--- a/mercurial/util.py Wed Jul 27 15:20:34 2016 -0500
+++ b/mercurial/util.py Wed Jul 27 15:22:36 2016 -0500
@@ -440,7 +440,14 @@
# used by parsedate
defaultdateformats = (
- '%Y-%m-%d %H:%M:%S',
+ '%Y-%m-%dT%H:%M:%S', # the 'real' ISO8601
+ '%Y-%m-%dT%H:%M', # without seconds
+ '%Y-%m-%dT%H%M%S', # another awful but legal variant without :
+ '%Y-%m-%dT%H%M', # without seconds
+ '%Y-%m-%d %H:%M:%S', # our common legal variant
+ '%Y-%m-%d %H:%M', # without seconds
+ '%Y-%m-%d %H%M%S', # without :
+ '%Y-%m-%d %H%M', # without seconds
'%Y-%m-%d %I:%M:%S%p',
'%Y-%m-%d %H:%M',
'%Y-%m-%d %I:%M%p',