mercurial/commands.py
changeset 495 e94cebc60d96
parent 485 c5705ab9cebd
parent 493 30752b14f759
child 496 6ce95a04999d
--- a/mercurial/commands.py	Mon Jun 27 22:23:56 2005 -0800
+++ b/mercurial/commands.py	Mon Jun 27 22:29:44 2005 -0800
@@ -123,7 +123,13 @@
     ui.status("user:        %s\n" % changes[1])
     ui.status("date:        %s\n" % time.asctime(
         time.localtime(float(changes[2].split(' ')[0]))))
-    ui.note("files:       %s\n" % " ".join(changes[3]))
+    if ui.debugflag:
+        files = repo.diffrevs(changelog.parents(changenode)[0], changenode)
+        for key, value in zip(["files:", "files+:", "files-:"], files):
+            if value:
+                ui.note("%-12s %s\n" % (key, " ".join(value)))
+    else:
+        ui.note("files:       %s\n" % " ".join(changes[3]))
     description = changes[4].strip()
     if description:
         if ui.verbose: