shortname: truncate at '.' too
authorMatt Mackall <mpm@selenic.com>
Fri, 27 Oct 2006 11:30:20 -0500
changeset 3533 bb44489b901f
parent 3532 26b556c1d01d
child 3534 549cb7b640fb
shortname: truncate at '.' too
mercurial/util.py
--- a/mercurial/util.py	Fri Oct 27 11:24:10 2006 -0500
+++ b/mercurial/util.py	Fri Oct 27 11:30:20 2006 -0500
@@ -952,6 +952,9 @@
     f = user.find(' ')
     if f >= 0:
         user = user[:f]
+    f = user.find('.')
+    if f >= 0:
+        user = user[:f]
     return user
 
 def walkrepos(path):