changeset 11985:81edef14922e

log: add logging for commands
author Matt Mackall <mpm@selenic.com>
date Thu, 19 Aug 2010 11:14:09 -0500
parents 2db0fccc8143
children 8380ed691df8
files mercurial/dispatch.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py	Thu Aug 19 11:14:02 2010 -0500
+++ b/mercurial/dispatch.py	Thu Aug 19 11:14:09 2010 -0500
@@ -511,6 +511,8 @@
     elif rpath:
         ui.warn(_("warning: --repository ignored\n"))
 
+    msg = ' '.join(' ' in a and repr(a) or a for a in fullargs)
+    ui.log("command", msg + "\n")
     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
     return runcommand(lui, repo, cmd, fullargs, ui, options, d,
                       cmdpats, cmdoptions)