diff hgext/convert/monotone.py @ 8101:d8229670710f

convert/mtn: handle subsecond commit dates (issue1616)
author Paul Aurich <paul@darkrain42.org>
date Tue, 21 Apr 2009 15:57:15 +0200
parents 3cdf4872941a
children 18710802cd49 933b874e402f
line wrap: on
line diff
--- 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: