Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 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 | 7ad155e13f0f |
children | ddc17eaf0f1b |
comparison
equal
deleted
inserted
replaced
23838:b95b9fd7ba29 | 23839:ff6b5b058fa0 |
---|---|
2893 else: | 2893 else: |
2894 keyfunc = None # sort by filename | 2894 keyfunc = None # sort by filename |
2895 for file_, ent in sorted(repo.dirstate._map.iteritems(), key=keyfunc): | 2895 for file_, ent in sorted(repo.dirstate._map.iteritems(), key=keyfunc): |
2896 if showdate: | 2896 if showdate: |
2897 if ent[3] == -1: | 2897 if ent[3] == -1: |
2898 # Pad or slice to locale representation | 2898 timestr = 'unset ' |
2899 locale_len = len(time.strftime("%Y-%m-%d %H:%M:%S ", | |
2900 time.localtime(0))) | |
2901 timestr = 'unset' | |
2902 timestr = (timestr[:locale_len] + | |
2903 ' ' * (locale_len - len(timestr))) | |
2904 else: | 2899 else: |
2905 timestr = time.strftime("%Y-%m-%d %H:%M:%S ", | 2900 timestr = time.strftime("%Y-%m-%d %H:%M:%S ", |
2906 time.localtime(ent[3])) | 2901 time.localtime(ent[3])) |
2907 if ent[1] & 020000: | 2902 if ent[1] & 020000: |
2908 mode = 'lnk' | 2903 mode = 'lnk' |