From 367a4a7cea9afc246dca373490ae294bcf0e608e Mon Sep 17 00:00:00 2001 From: Mark Thomas Date: Fri, 28 Jun 2019 13:10:58 -0700 Subject: [PATCH] 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 --- edenscm/hgext/commitcloud/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edenscm/hgext/commitcloud/commands.py b/edenscm/hgext/commitcloud/commands.py index 91262afc13..dd6a847594 100644 --- a/edenscm/hgext/commitcloud/commands.py +++ b/edenscm/hgext/commitcloud/commands.py @@ -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