Mercurial > hg-stable
changeset 18758:6aca4d1c744e
blackbox: fix exception when logging commands with format characters
When running commands like 'hg export -o mypatch-%N.patch', the blackbox
would throw an exception because it tried to format %N. This change
prevents it from trying to format the command string.
author | Durham Goode <durham@fb.com> |
---|---|
date | Thu, 28 Feb 2013 10:12:26 -0800 |
parents | fabbaa250977 |
children | 9baf4330d88f |
files | mercurial/dispatch.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dispatch.py Sat Feb 09 21:51:21 2013 +0000 +++ b/mercurial/dispatch.py Thu Feb 28 10:12:26 2013 -0800 @@ -737,7 +737,7 @@ ui.warn(_("warning: --repository ignored\n")) msg = ' '.join(' ' in a and repr(a) or a for a in fullargs) - ui.log("command", msg + "\n") + ui.log("command", '%s\n', msg) d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) starttime = time.time() ret = None