Mercurial > hg > mercurial-source
changeset 23851:ff6b5b058fa0
debugdirstate: simplify date handling after e7ed5d07cc4c used fixed format
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 09 Jan 2015 18:38:02 +0100 |
parents | b95b9fd7ba29 |
children | ddc17eaf0f1b |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2895,12 +2895,7 @@ for file_, ent in sorted(repo.dirstate._map.iteritems(), key=keyfunc): if showdate: if ent[3] == -1: - # Pad or slice to locale representation - locale_len = len(time.strftime("%Y-%m-%d %H:%M:%S ", - time.localtime(0))) - timestr = 'unset' - timestr = (timestr[:locale_len] + - ' ' * (locale_len - len(timestr))) + timestr = 'unset ' else: timestr = time.strftime("%Y-%m-%d %H:%M:%S ", time.localtime(ent[3]))