# HG changeset patch # User Matt Mackall # Date 1412267720 18000 # Node ID 2805d23e1f885ff183b900e4407d3c31758d5b59 # Parent 808df84fba83ac89a68cced30a36fb412e640799 exchange: remove a broken i18n abuse diff -r 808df84fba83 -r 2805d23e1f88 mercurial/exchange.py --- a/mercurial/exchange.py Fri Sep 26 11:31:15 2014 -0700 +++ b/mercurial/exchange.py Thu Oct 02 11:35:20 2014 -0500 @@ -344,11 +344,9 @@ if unfi.obsstore: # this message are here for 80 char limit reason mso = _("push includes obsolete changeset: %s!") - mst = "push includes %s changeset: %s!" - # plain versions for i18n tool to detect them - _("push includes unstable changeset: %s!") - _("push includes bumped changeset: %s!") - _("push includes divergent changeset: %s!") + mst = {"unstable": _("push includes unstable changeset: %s!"), + "bumped": _("push includes bumped changeset: %s!"), + "divergent": _("push includes divergent changeset: %s!")} # If we are to push if there is at least one # obsolete or unstable changeset in missing, at # least one of the missinghead will be obsolete or @@ -358,9 +356,7 @@ if ctx.obsolete(): raise util.Abort(mso % ctx) elif ctx.troubled(): - raise util.Abort(_(mst) - % (ctx.troubles()[0], - ctx)) + raise util.Abort(mst[ctx.troubles()[0]] % ctx) newbm = pushop.ui.configlist('bookmarks', 'pushing') discovery.checkheads(unfi, pushop.remote, outgoing, pushop.remoteheads,