convert/mtn: handle subsecond commit dates (issue1616)
authorPaul Aurich <paul@darkrain42.org>
Tue, 21 Apr 2009 15:57:15 +0200
changeset 8101 d8229670710f
parent 8099 3cdf4872941a
child 8102 18710802cd49
child 8105 0019be957555
child 8123 933b874e402f
convert/mtn: handle subsecond commit dates (issue1616)
hgext/convert/monotone.py
--- a/hgext/convert/monotone.py	Tue Apr 21 14:17:29 2009 +0200
+++ b/hgext/convert/monotone.py	Tue Apr 21 15:57:15 2009 +0200
@@ -106,6 +106,8 @@
                 value = value.replace(r'\"', '"')
                 value = value.replace(r'\\', '\\')
                 certs[name] = value
+        # Monotone may have subsecond dates: 2005-02-05T09:39:12.364306
+        certs["date"] = certs["date"].split('.')[0]
         return certs
 
     # implement the converter_source interface: