Mercurial > evolve
diff hgext3rd/evolve/cmdrewrite.py @ 3514:498f782ccb4b
compat: add compat layer for date related functions
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sat, 03 Mar 2018 23:17:26 -0500 |
parents | 6b4272bbb65d |
children | 7fa887cb1a6e |
line wrap: on
line diff
--- a/hgext3rd/evolve/cmdrewrite.py Sat Mar 03 22:25:24 2018 -0500 +++ b/hgext3rd/evolve/cmdrewrite.py Sat Mar 03 23:17:26 2018 -0500 @@ -74,7 +74,7 @@ """ # N.B. this is extremely similar to setupheaderopts() in mq.py if not opts.get('date') and opts.get('current_date'): - opts['date'] = '%d %d' % util.makedate() + opts['date'] = '%d %d' % compat.makedate() if not opts.get('user') and opts.get('current_user'): opts['user'] = ui.username() @@ -771,7 +771,7 @@ date = opts.get('date') user = opts.get('user') if date: - metadata['date'] = '%i %i' % util.parsedate(date) + metadata['date'] = '%i %i' % compat.parsedate(date) if user: metadata['user'] = user return metadata