# HG changeset patch # User FUJIWARA Katsunori # Date 1469999306 -32400 # Node ID a8a5dd8986f0be6655409daa41e0679eff1c2db8 # Parent 3b4d69b3988da4a6bbaa8e6c19686a3536cd5d22 revset: refactor to make xgettext put i18n comments into hg.pot file xgettext expects both "_()" and (a part of) text to be placed at just next line of "i18n:" comment. diff -r 3b4d69b3988d -r a8a5dd8986f0 mercurial/revset.py --- a/mercurial/revset.py Mon Aug 01 06:08:26 2016 +0900 +++ b/mercurial/revset.py Mon Aug 01 06:08:26 2016 +0900 @@ -1866,8 +1866,8 @@ if len(keyflags) > 1 and any(k == 'topo' for k, reverse in keyflags): # i18n: "topo" is a keyword - raise error.ParseError(_( - 'topo sort order cannot be combined with other sort keys')) + raise error.ParseError(_('topo sort order cannot be combined ' + 'with other sort keys')) opts = {} if 'topo.firstbranch' in args: @@ -1875,9 +1875,8 @@ opts['topo.firstbranch'] = args['topo.firstbranch'] else: # i18n: "topo" and "topo.firstbranch" are keywords - raise error.ParseError(_( - 'topo.firstbranch can only be used when using the topo sort ' - 'key')) + raise error.ParseError(_('topo.firstbranch can only be used ' + 'when using the topo sort key')) return args['set'], keyflags, opts