debugdirstate: simplify date handling after
e7ed5d07cc4c used fixed format
--- a/mercurial/commands.py Sun Jan 11 23:25:23 2015 -0500
+++ b/mercurial/commands.py Fri Jan 09 18:38:02 2015 +0100
@@ -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]))