shortname: truncate at '.' too
authorMatt Mackall <mpm@selenic.com>
Fri, 27 Oct 2006 11:30:20 -0500
changeset 3564 bb44489b901f
parent 3563 26b556c1d01d
child 3565 549cb7b640fb
shortname: truncate at '.' too
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):