# HG changeset patch # User Martin Geisler # Date 1304590603 -7200 # Node ID c124341c4cea86b2fd15e410c9dc1741ce18f6e0 # Parent e7483ec3c374212e29b0ac9ebb32c2b1fd15ad82 commands: use double-quotes for strings with single-quotes The globalopts table contain a couple of \' still, but it was normalized like that in 83238c1db6de. diff -r e7483ec3c374 -r c124341c4cea mercurial/commands.py --- a/mercurial/commands.py Thu May 05 12:46:02 2011 +0200 +++ b/mercurial/commands.py Thu May 05 12:16:43 2011 +0200 @@ -2925,18 +2925,18 @@ bheads = repo.branchheads(branch) if len(bheads) > 2: raise util.Abort(_( - 'branch \'%s\' has %d heads - ' - 'please merge with an explicit rev\n' - '(run \'hg heads .\' to see heads)') + "branch '%s' has %d heads - " + "please merge with an explicit rev\n" + "(run 'hg heads .' to see heads)") % (branch, len(bheads))) parent = repo.dirstate.p1() if len(bheads) == 1: if len(repo.heads()) > 1: raise util.Abort(_( - 'branch \'%s\' has one head - ' - 'please merge with an explicit rev\n' - '(run \'hg heads\' to see all heads)') + "branch '%s' has one head - " + "please merge with an explicit rev\n" + "(run 'hg heads' to see all heads)") % branch) msg = _('there is nothing to merge') if parent != repo.lookup(repo[None].branch()): @@ -4084,7 +4084,7 @@ raise util.Abort(_('tag names must be unique')) for n in names: if n in ['tip', '.', 'null']: - raise util.Abort(_('the name \'%s\' is reserved') % n) + raise util.Abort(_("the name '%s' is reserved") % n) if not n: raise util.Abort(_('tag names cannot consist entirely of whitespace')) if opts.get('rev') and opts.get('remove'): @@ -4096,12 +4096,12 @@ expectedtype = opts.get('local') and 'local' or 'global' for n in names: if not repo.tagtype(n): - raise util.Abort(_('tag \'%s\' does not exist') % n) + raise util.Abort(_("tag '%s' does not exist") % n) if repo.tagtype(n) != expectedtype: if expectedtype == 'global': - raise util.Abort(_('tag \'%s\' is not a global tag') % n) + raise util.Abort(_("tag '%s' is not a global tag") % n) else: - raise util.Abort(_('tag \'%s\' is not a local tag') % n) + raise util.Abort(_("tag '%s' is not a local tag") % n) rev_ = nullid if not message: # we don't translate commit messages @@ -4109,8 +4109,8 @@ elif not opts.get('force'): for n in names: if n in repo.tags(): - raise util.Abort(_('tag \'%s\' already exists ' - '(use -f to force)') % n) + raise util.Abort(_("tag '%s' already exists " + "(use -f to force)") % n) if not opts.get('local'): p1, p2 = repo.dirstate.parents() if p2 != nullid: