log: add logging for commands
authorMatt Mackall <mpm@selenic.com>
Thu, 19 Aug 2010 11:14:09 -0500
changeset 11985 81edef14922e
parent 11984 2db0fccc8143
child 11988 8380ed691df8
log: add logging for commands
mercurial/dispatch.py
--- 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)