# HG changeset patch # User Durham Goode # Date 2013-02-28 18:12:26 # Node ID 6aca4d1c744ed8f6c1305525ded7590abaa72d06 # Parent fabbaa250977ad337a36b1c4cece22da94adfe4b 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. diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -737,7 +737,7 @@ def _dispatch(req): 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