debugdirstate: simplify date handling after e7ed5d07cc4c used fixed format
authorMads Kiilerich <madski@unity3d.com>
Fri, 09 Jan 2015 18:38:02 +0100
changeset 23839 ff6b5b058fa0
parent 23838 b95b9fd7ba29
child 23840 ddc17eaf0f1b
debugdirstate: simplify date handling after e7ed5d07cc4c used fixed format
mercurial/commands.py
--- 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]))