comparison mercurial/debugcommands.py @ 43884:38d6aa768310

debugcommands: finish moving `extendeddateformats` from util to dateutil Caught by pytype. Differential Revision: https://phab.mercurial-scm.org/D7671
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 15 Dec 2019 18:30:16 -0500
parents 23ad4f0c1578
children 7a2c49a3cbae
comparison
equal deleted inserted replaced
43883:e63b27fb0595 43884:38d6aa768310
651 optionalrepo=True, 651 optionalrepo=True,
652 ) 652 )
653 def debugdate(ui, date, range=None, **opts): 653 def debugdate(ui, date, range=None, **opts):
654 """parse and display a date""" 654 """parse and display a date"""
655 if opts["extended"]: 655 if opts["extended"]:
656 d = dateutil.parsedate(date, util.extendeddateformats) 656 d = dateutil.parsedate(date, dateutil.extendeddateformats)
657 else: 657 else:
658 d = dateutil.parsedate(date) 658 d = dateutil.parsedate(date)
659 ui.writenoi18n(b"internal: %d %d\n" % d) 659 ui.writenoi18n(b"internal: %d %d\n" % d)
660 ui.writenoi18n(b"standard: %s\n" % dateutil.datestr(d)) 660 ui.writenoi18n(b"standard: %s\n" % dateutil.datestr(d))
661 if range: 661 if range: