mercurial/obsolete.py
changeset 36636 c6061cadb400
parent 36453 2831d918e1b4
child 36959 b9bbcf9ffac1
--- a/mercurial/obsolete.py	Thu Feb 08 23:27:24 2018 +0530
+++ b/mercurial/obsolete.py	Thu Feb 15 17:18:26 2018 +0100
@@ -81,6 +81,7 @@
     policy,
     util,
 )
+from .utils import dateutil
 
 parsers = policy.importmod(r'parsers')
 
@@ -601,13 +602,13 @@
         if date is None:
             if 'date' in metadata:
                 # as a courtesy for out-of-tree extensions
-                date = util.parsedate(metadata.pop('date'))
+                date = dateutil.parsedate(metadata.pop('date'))
             elif ui is not None:
                 date = ui.configdate('devel', 'default-date')
                 if date is None:
-                    date = util.makedate()
+                    date = dateutil.makedate()
             else:
-                date = util.makedate()
+                date = dateutil.makedate()
         if len(prec) != 20:
             raise ValueError(prec)
         for succ in succs: