changeset 23839: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	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]))