Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 3984:f82b3f915605
Fix a pygettext complaint
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 14 Dec 2006 17:32:25 -0600 |
parents | 9f5c46c50118 |
children | e492ab235b4d 78a0dd93db0b |
comparison
equal
deleted
inserted
replaced
3983:c22251414b46 | 3984:f82b3f915605 |
---|---|
348 if not user: | 348 if not user: |
349 try: | 349 try: |
350 user = '%s@%s' % (util.getuser(), socket.getfqdn()) | 350 user = '%s@%s' % (util.getuser(), socket.getfqdn()) |
351 except KeyError: | 351 except KeyError: |
352 raise util.Abort(_("Please specify a username.")) | 352 raise util.Abort(_("Please specify a username.")) |
353 self.warn(_("No username found, using '%s' instead\n" % user)) | 353 self.warn(_("No username found, using '%s' instead\n") % user) |
354 return user | 354 return user |
355 | 355 |
356 def shortuser(self, user): | 356 def shortuser(self, user): |
357 """Return a short representation of a user name or email address.""" | 357 """Return a short representation of a user name or email address.""" |
358 if not self.verbose: user = util.shortuser(user) | 358 if not self.verbose: user = util.shortuser(user) |