diff mercurial/util.py @ 3564:bb44489b901f

shortname: truncate at '.' too
author Matt Mackall <mpm@selenic.com>
date Fri, 27 Oct 2006 11:30:20 -0500
parents 8b55c0ba8048
children 4d97184a06ad
line wrap: on
line diff
--- 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):