# HG changeset patch # User Paul Aurich # Date 2009-04-21 13:57:15 # Node ID d8229670710fa17ed594b036f815318968fd5e8b # Parent 3cdf4872941a9ebcbb91b5c3157b6c0ac4d7ad54 convert/mtn: handle subsecond commit dates (issue1616) diff --git a/hgext/convert/monotone.py b/hgext/convert/monotone.py --- a/hgext/convert/monotone.py +++ b/hgext/convert/monotone.py @@ -106,6 +106,8 @@ class monotone_source(converter_source, 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: