diff -r 4de15c54e59f -r c6061cadb400 hgext/fetch.py --- 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()