hgext/fetch.py
changeset 36607 c6061cadb400
parent 34977 a56bf5591918
child 40293 c303d65d2e34
--- a/hgext/fetch.py	Thu Feb 08 23:27:24 2018 +0530
+++ b/hgext/fetch.py	Thu Feb 15 17:18:26 2018 +0100
@@ -23,6 +23,7 @@
     registrar,
     util,
 )
+from mercurial.utils import dateutil
 
 release = lock.release
 cmdtable = {}
@@ -64,7 +65,7 @@
     opts = pycompat.byteskwargs(opts)
     date = opts.get('date')
     if date:
-        opts['date'] = util.parsedate(date)
+        opts['date'] = dateutil.parsedate(date)
 
     parent, _p2 = repo.dirstate.parents()
     branch = repo.dirstate.branch()