--- a/mercurial/obsutil.py Thu Feb 08 23:27:24 2018 +0530
+++ b/mercurial/obsutil.py Thu Feb 15 17:18:26 2018 +0100
@@ -15,6 +15,7 @@
phases,
util,
)
+from .utils import dateutil
class marker(object):
"""Wrap obsolete marker raw data"""
@@ -841,11 +842,11 @@
max_date = max(dates)
if min_date == max_date:
- fmtmin_date = util.datestr(min_date, '%Y-%m-%d %H:%M %1%2')
+ fmtmin_date = dateutil.datestr(min_date, '%Y-%m-%d %H:%M %1%2')
line.append(" (at %s)" % fmtmin_date)
else:
- fmtmin_date = util.datestr(min_date, '%Y-%m-%d %H:%M %1%2')
- fmtmax_date = util.datestr(max_date, '%Y-%m-%d %H:%M %1%2')
+ fmtmin_date = dateutil.datestr(min_date, '%Y-%m-%d %H:%M %1%2')
+ fmtmax_date = dateutil.datestr(max_date, '%Y-%m-%d %H:%M %1%2')
line.append(" (between %s and %s)" % (fmtmin_date, fmtmax_date))
return "".join(line)