changeset 3533:bb44489b901f

shortname: truncate at '.' too
author Matt Mackall <mpm@selenic.com>
date Fri, 27 Oct 2006 11:30:20 -0500
parents 26b556c1d01d
children 549cb7b640fb
files mercurial/util.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):