comparison mercurial/util.py @ 3169:7492b33bdd9f

shortuser should stop before the first space character. Examples: "Foo Bar <foo.bar AT example DOT com>" -> "foo.bar" (instead of "foo.bar AT example DOT com>" as it was before.) "Foo Bar" -> "Foo"
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 27 Sep 2006 20:34:52 +0200
parents 97420a49188d
children e96d2956eb4a
comparison
equal deleted inserted replaced
3168:fc379b91f602 3169:7492b33bdd9f
946 if f >= 0: 946 if f >= 0:
947 user = user[:f] 947 user = user[:f]
948 f = user.find('<') 948 f = user.find('<')
949 if f >= 0: 949 if f >= 0:
950 user = user[f+1:] 950 user = user[f+1:]
951 f = user.find(' ')
952 if f >= 0:
953 user = user[:f]
951 return user 954 return user
952 955
953 def walkrepos(path): 956 def walkrepos(path):
954 '''yield every hg repository under path, recursively.''' 957 '''yield every hg repository under path, recursively.'''
955 def errhandler(err): 958 def errhandler(err):