commitcloud: fix misplaced notice arg

Summary:
The `notice` arg should be provided to `ui.warn`, not the translation `_`
function.

Reviewed By: xavierd

Differential Revision: D16055534

fbshipit-source-id: bb1e0213147fc591671c2ef4c79aab3f9e4a2987
This commit is contained in:
Mark Thomas 2019-06-28 13:10:58 -07:00 committed by Facebook Github Bot
parent 664550d95f
commit 367a4a7cea

View File

@ -767,10 +767,10 @@ def backupdisable(ui, repo, **opts):
ui.warn(
_(
"'@PROG@ cloud disable' does not affect running backup processes\n"
"(kill the background process - pid %s on %s - gracefully if needed)\n",
notice=_("warning"),
"(kill the background process - pid %s on %s - gracefully if needed)\n"
)
% (e.lockinfo.uniqueid, e.lockinfo.namespace)
% (e.lockinfo.uniqueid, e.lockinfo.namespace),
notice=_("warning"),
)
return 0