changeset 1903 | e4abeafd6eb1 |
parent 1637 | 3b1b44b917f4 |
child 1920 | b7cc0f323a4c |
--- a/mercurial/ui.py Mon Feb 27 11:18:56 2006 -0800 +++ b/mercurial/ui.py Mon Feb 27 11:32:10 2006 -0800 @@ -104,13 +104,7 @@ def shortuser(self, user): """Return a short representation of a user name or email address.""" - if not self.verbose: - f = user.find('@') - if f >= 0: - user = user[:f] - f = user.find('<') - if f >= 0: - user = user[f+1:] + if not self.verbose: user = util.shortuser(user) return user def expandpath(self, loc, root=""):