Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 28962:ad2cd2ef25d9
config: use single quotes around command hint
Windows command lines use double quotes to quote arguments with spaces.
This change is in a series to unify around using single quotes around
commands, and double quotes around interior arguments.
author | timeless <timeless@mozdev.org> |
---|---|
date | Thu, 14 Apr 2016 15:18:59 +0000 |
parents | 77e566fe31ec |
children | 77de985d7c91 |
comparison
equal
deleted
inserted
replaced
28961:2e58dc022caa | 28962:ad2cd2ef25d9 |
---|---|
581 self.warn(_("no username found, using '%s' instead\n") % user) | 581 self.warn(_("no username found, using '%s' instead\n") % user) |
582 except KeyError: | 582 except KeyError: |
583 pass | 583 pass |
584 if not user: | 584 if not user: |
585 raise error.Abort(_('no username supplied'), | 585 raise error.Abort(_('no username supplied'), |
586 hint=_('use "hg config --edit" ' | 586 hint=_("use 'hg config --edit' " |
587 'to set your username')) | 587 'to set your username')) |
588 if "\n" in user: | 588 if "\n" in user: |
589 raise error.Abort(_("username %s contains a newline\n") | 589 raise error.Abort(_("username %s contains a newline\n") |
590 % repr(user)) | 590 % repr(user)) |
591 return user | 591 return user |