Mercurial > public > mercurial-scm > hg
comparison mercurial/dispatch.py @ 11985:81edef14922e
log: add logging for commands
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 19 Aug 2010 11:14:09 -0500 |
parents | aae1dd12fce6 |
children | f853873fc66d |
comparison
equal
deleted
inserted
replaced
11984:2db0fccc8143 | 11985:81edef14922e |
---|---|
509 raise | 509 raise |
510 args.insert(0, repo) | 510 args.insert(0, repo) |
511 elif rpath: | 511 elif rpath: |
512 ui.warn(_("warning: --repository ignored\n")) | 512 ui.warn(_("warning: --repository ignored\n")) |
513 | 513 |
514 msg = ' '.join(' ' in a and repr(a) or a for a in fullargs) | |
515 ui.log("command", msg + "\n") | |
514 d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) | 516 d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) |
515 return runcommand(lui, repo, cmd, fullargs, ui, options, d, | 517 return runcommand(lui, repo, cmd, fullargs, ui, options, d, |
516 cmdpats, cmdoptions) | 518 cmdpats, cmdoptions) |
517 | 519 |
518 def _runcommand(ui, options, cmd, cmdfunc): | 520 def _runcommand(ui, options, cmd, cmdfunc): |