# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1521632035 -19800 # Node ID 944a8c27d27be969a6fa72159ee063c72bbc6765 # Parent 8d93f76aa04d26d77d52455bb39e7bce1ed40406 __init__: show some internationalization love diff -r 8d93f76aa04d -r 944a8c27d27b hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Wed Mar 21 17:04:41 2018 +0530 +++ b/hgext3rd/evolve/__init__.py Wed Mar 21 17:03:55 2018 +0530 @@ -960,10 +960,10 @@ def _prevupdate(repo, displayer, target, bookmark, dryrun): if dryrun: - repo.ui.write(('hg update %s;\n' % target)) + repo.ui.write(_('hg update %s;\n') % target) if bookmark is not None: - repo.ui.write(('hg bookmark %s -r %s;\n' - % (bookmark, target))) + repo.ui.write(_('hg bookmark %s -r %s;\n') + % (bookmark, target)) else: ret = hg.update(repo, target.rev()) if not ret: @@ -1040,7 +1040,7 @@ wkctx = repo[None] wparents = wkctx.parents() if len(wparents) != 1: - raise error.Abort('merge in progress') + raise error.Abort(_('merge in progress')) if not opts['merge']: try: cmdutil.bailifchanged(repo) @@ -1094,7 +1094,7 @@ wkctx = repo[None] wparents = wkctx.parents() if len(wparents) != 1: - raise error.Abort('merge in progress') + raise error.Abort(_('merge in progress')) if not opts['merge']: try: cmdutil.bailifchanged(repo) @@ -1182,9 +1182,9 @@ bm = repo._activebookmark shouldmove = opts.get('move_bookmark') and bm is not None if opts.get('dry_run'): - ui.write(('hg update %s;\n' % children)) + ui.write(_('hg update %s;\n') % children) if shouldmove: - ui.write(('hg bookmark %s -r %s;\n' % (bm, children))) + ui.write(_('hg bookmark %s -r %s;\n') % (bm, children)) else: ret = hg.update(repo, children) if not ret: