Show More
@@ -775,10 +775,16 def debugstate(ui, repo): | |||||
775 | keys = dc.keys() |
|
775 | keys = dc.keys() | |
776 | keys.sort() |
|
776 | keys.sort() | |
777 | for file_ in keys: |
|
777 | for file_ in keys: | |
|
778 | if dc[file_][3] == -1: | |||
|
779 | # Pad or slice to locale representation | |||
|
780 | locale_len = len(time.strftime("%x %X", time.localtime(0))) | |||
|
781 | timestr = 'unset' | |||
|
782 | timestr = timestr[:locale_len] + ' '*(locale_len - len(timestr)) | |||
|
783 | else: | |||
|
784 | timestr = time.strftime("%x %X", time.localtime(dc[file_][3])) | |||
778 | ui.write("%c %3o %10d %s %s\n" |
|
785 | ui.write("%c %3o %10d %s %s\n" | |
779 | % (dc[file_][0], dc[file_][1] & 0777, dc[file_][2], |
|
786 | % (dc[file_][0], dc[file_][1] & 0777, dc[file_][2], | |
780 |
time |
|
787 | timestr, file_)) | |
781 | time.localtime(dc[file_][3])), file_)) |
|
|||
782 | for f in repo.dirstate.copies(): |
|
788 | for f in repo.dirstate.copies(): | |
783 | ui.write(_("copy: %s -> %s\n") % (repo.dirstate.copied(f), f)) |
|
789 | ui.write(_("copy: %s -> %s\n") % (repo.dirstate.copied(f), f)) | |
784 |
|
790 |
General Comments 0
You need to be logged in to leave comments.
Login now