[PATCH 2 of 6 STABLE] doc: omit useless _() invocation

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Sun Jul 31 17:41:02 EDT 2016


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1469999306 -32400
#      Mon Aug 01 06:08:26 2016 +0900
# Branch stable
# Node ID e1d879c97b9cb59ee82805a0123f8e3653e2cd6e
# Parent  20b41351782f75045d9afb4e7987e7d697f240f7
doc: omit useless _() invocation

In this case, column positioning isn't needed for i18n, too.

Maybe, check-code warning "missing _() in ui message" caused this
useless _() invocation in 92d37fb3f1aa.

diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -896,7 +896,7 @@ def verify(repo):
                         ret = (ctx.sub(subpath, allowcreate=False).verify()
                                or ret)
                     except error.RepoError as e:
-                        repo.ui.warn(_('%s: %s\n') % (rev, e))
+                        repo.ui.warn(('%s: %s\n') % (rev, e))
             except Exception:
                 repo.ui.warn(_('.hgsubstate is corrupt in revision %s\n') %
                              node.short(ctx.node()))


More information about the Mercurial-devel mailing list