# HG changeset patch # User Pierre-Yves David # Date 2014-05-27 21:45:31 # Node ID 0f73ed6293629f69aa2f01d8940e91faeded49ae # Parent 5f98ad8fb8d9fcda8b94e3cff0a5b199487128cb wireproto: rephrase the error message for unknown getbundle parameters In case of an unknown parameter passed to ``getbundle``, the server prints a message and ignores the parameter. This message was misleadingly prefixed with "abort: ". The use of "abort: " here is clearly wrong as nothing is actually aborted and the ``getbundle`` call proceeds without the parameter. The message is now prefixed with "warning: " and rephrased to make it clearer that the parameter was simply ignored. diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -507,7 +507,7 @@ def options(cmd, keys, others): opts[k] = others[k] del others[k] if others: - sys.stderr.write("abort: %s got unexpected arguments %s\n" + sys.stderr.write("warning: %s ignored unexpected arguments %s\n" % (cmd, ",".join(others))) return opts