731 fm.plain('\n') |
731 fm.plain('\n') |
732 |
732 |
733 fm.end() |
733 fm.end() |
734 |
734 |
735 @command('debugdirstate|debugstate', |
735 @command('debugdirstate|debugstate', |
736 [('', 'nodates', None, _('do not display the saved mtime')), |
736 [('', 'nodates', None, _('do not display the saved mtime (DEPRECATED)')), |
737 ('', 'datesort', None, _('sort by saved mtime'))], |
737 ('', 'dates', True, _('display the saved mtime')), |
|
738 ('', 'datesort', None, _('sort by saved mtime'))], |
738 _('[OPTION]...')) |
739 _('[OPTION]...')) |
739 def debugstate(ui, repo, **opts): |
740 def debugstate(ui, repo, **opts): |
740 """show the contents of the current dirstate""" |
741 """show the contents of the current dirstate""" |
741 |
742 |
742 nodates = opts.get(r'nodates') |
743 nodates = not opts[r'dates'] |
|
744 if opts.get(r'nodates') is not None: |
|
745 nodates = True |
743 datesort = opts.get(r'datesort') |
746 datesort = opts.get(r'datesort') |
744 |
747 |
745 timestr = "" |
748 timestr = "" |
746 if datesort: |
749 if datesort: |
747 keyfunc = lambda x: (x[1][3], x[0]) # sort by mtime, then by filename |
750 keyfunc = lambda x: (x[1][3], x[0]) # sort by mtime, then by filename |