Submitter | Christian Delahousse |
---|---|
Date | Nov. 12, 2015, 6:17 a.m. |
Message ID | <88237bdf95f715685488.1447309075@dev4253.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/11364/ |
State | Superseded |
Commit | 487cca1bf61ffa2d0827634b662aea451ca6da10 |
Headers | show |
Comments
Patch
diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3162,8 +3162,12 @@ [('', 'nodates', None, _('do not display the saved mtime')), ('', 'datesort', None, _('sort by saved mtime'))], _('[OPTION]...')) -def debugstate(ui, repo, nodates=None, datesort=None): +def debugstate(ui, repo, **opts): """show the contents of the current dirstate""" + + nodates = opts.get('nodates') + datesort = opts.get('datesort') + timestr = "" if datesort: keyfunc = lambda x: (x[1][3], x[0]) # sort by mtime, then by filename