Mercurial > hg
comparison mercurial/commands.py @ 5858:e7ed5d07cc4c
Display debugstate dates as '%Y-%m-%d %H:%M:%S'
author | Giorgos Keramidas <keramida@ceid.upatras.gr> |
---|---|
date | Fri, 11 Jan 2008 23:30:56 +0200 |
parents | a76395713691 |
children | 00dfc810dae4 |
comparison
equal
deleted
inserted
replaced
5857:c704b03884ef | 5858:e7ed5d07cc4c |
---|---|
668 k = repo.dirstate._map.items() | 668 k = repo.dirstate._map.items() |
669 k.sort() | 669 k.sort() |
670 for file_, ent in k: | 670 for file_, ent in k: |
671 if ent[3] == -1: | 671 if ent[3] == -1: |
672 # Pad or slice to locale representation | 672 # Pad or slice to locale representation |
673 locale_len = len(time.strftime("%x %X", time.localtime(0))) | 673 locale_len = len(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(0))) |
674 timestr = 'unset' | 674 timestr = 'unset' |
675 timestr = timestr[:locale_len] + ' '*(locale_len - len(timestr)) | 675 timestr = timestr[:locale_len] + ' '*(locale_len - len(timestr)) |
676 else: | 676 else: |
677 timestr = time.strftime("%x %X", time.localtime(ent[3])) | 677 timestr = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(ent[3])) |
678 if ent[1] & 020000: | 678 if ent[1] & 020000: |
679 mode = 'lnk' | 679 mode = 'lnk' |
680 else: | 680 else: |
681 mode = '%3o' % (ent[1] & 0777) | 681 mode = '%3o' % (ent[1] & 0777) |
682 ui.write("%c %s %10d %s %s\n" % (ent[0], mode, ent[2], timestr, file_)) | 682 ui.write("%c %s %10d %s %s\n" % (ent[0], mode, ent[2], timestr, file_)) |