diff mercurial/commands.py @ 791:040655ea0cc4

Show all dirstate info for 'hg debugstate'.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 23 Jul 2005 17:11:29 +0100
parents b3820ce0e88a
children 445970ccf57a
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -514,7 +514,10 @@ def debugstate(ui, repo):
     keys = dc.keys()
     keys.sort()
     for file_ in keys:
-        ui.write("%c %s\n" % (dc[file_][0], file_))
+        ui.write("%c %3o %10d %s %s\n"
+                 % (dc[file_][0], dc[file_][1] & 0777, dc[file_][2],
+                    time.strftime("%x %X",
+                                  time.localtime(dc[file_][3])), file_))
 
 def debugindex(ui, file_):
     """dump the contents of an index file"""