[PATCH 03 of 11] Add support for RFC2822 to util.parsedate()

Markus F.X.J. Oberhumer markus at oberhumer.com
Mon Jun 25 07:50:40 CDT 2007


# HG changeset patch
# User Markus F.X.J. Oberhumer <markus at oberhumer.com>
# Date 1182775580 -7200
# Node ID 698118ce38aa53350be929fd902140581311640c
# Parent  c0dd8ad2b83da63eb4bfa4f5e9bb37e4d34f101e
Add support for RFC2822 to util.parsedate().

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -105,6 +105,7 @@ defaultdateformats = (
     '%m/%d/%Y',
     '%a %b %d %H:%M:%S %Y',
     '%a %b %d %I:%M:%S%p %Y',
+    '%a, %d %b %Y %H:%M:%S',        #  GNU coreutils "/bin/date --rfc-2822"
     '%b %d %H:%M:%S %Y',
     '%b %d %I:%M:%S%p %Y',
     '%b %d %H:%M:%S',


More information about the Mercurial-devel mailing list