Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 39375:cde75233c415
rename: quote hg commands in warnings
I think we usally use single quotes around hg commands in messages.
Differential Revision: https://phab.mercurial-scm.org/D4417
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 29 Aug 2018 09:50:39 -0700 |
parents | 6b81d2ff118f |
children | 534e451b6dda |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Tue Aug 21 21:05:01 2018 +0800 +++ b/mercurial/cmdutil.py Wed Aug 29 09:50:39 2018 -0700 @@ -1207,17 +1207,17 @@ else: flags = '--force' if rename: - hint = _('(hg rename %s to replace the file by ' + hint = _("('hg rename %s' to replace the file by " 'recording a rename)\n') % flags else: - hint = _('(hg copy %s to replace the file by ' + hint = _("('hg copy %s' to replace the file by " 'recording a copy)\n') % flags else: msg = _('%s: not overwriting - file exists\n') if rename: - hint = _('(hg rename --after to record the rename)\n') + hint = _("('hg rename --after' to record the rename)\n") else: - hint = _('(hg copy --after to record the copy)\n') + hint = _("('hg copy --after' to record the copy)\n") ui.warn(msg % reltarget) ui.warn(hint) return