# HG changeset patch # User Matt Mackall # Date 1282234449 18000 # Node ID 81edef14922e704d9efb75aa20850f000baf2ed6 # Parent 2db0fccc81438a18329d4a1da0a694d2f8eae378 log: add logging for commands diff -r 2db0fccc8143 -r 81edef14922e 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)