##// END OF EJS Templates
mtime can be -1 after a merge and cause tracebacks on win32....
Benoit Boissinot -
r4053:994fec0e default
parent child Browse files
Show More
@@ -775,10 +775,16 def debugstate(ui, repo):
775 775 keys = dc.keys()
776 776 keys.sort()
777 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 785 ui.write("%c %3o %10d %s %s\n"
779 786 % (dc[file_][0], dc[file_][1] & 0777, dc[file_][2],
780 time.strftime("%x %X",
781 time.localtime(dc[file_][3])), file_))
787 timestr, file_))
782 788 for f in repo.dirstate.copies():
783 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