# HG changeset patch # User Matt Mackall # Date 1161966620 18000 # Node ID bb44489b901f5280bdb90e41df7cd4ab38930e8c # Parent 26b556c1d01dca6dac0e7f776a141188473652b6 shortname: truncate at '.' too diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -952,6 +952,9 @@ def shortuser(user): f = user.find(' ') if f >= 0: user = user[:f] + f = user.find('.') + if f >= 0: + user = user[:f] return user def walkrepos(path):