# HG changeset patch # User Thomas Arendsen Hein # Date 1159382092 -7200 # Node ID 7492b33bdd9f18f0e6150349325f1101e6a564fa # Parent fc379b91f6022703cfe0f5e147e9593e633449fc shortuser should stop before the first space character. Examples: "Foo Bar " -> "foo.bar" (instead of "foo.bar AT example DOT com>" as it was before.) "Foo Bar" -> "Foo" diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -948,6 +948,9 @@ def shortuser(user): f = user.find('<') if f >= 0: user = user[f+1:] + f = user.find(' ') + if f >= 0: + user = user[:f] return user def walkrepos(path):