mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
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:
parent
664550d95f
commit
367a4a7cea
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user