--- a/mercurial/util.py Fri Oct 27 19:24:57 2006 +0200
+++ b/mercurial/util.py Fri Oct 27 23:09:46 2006 +0200
@@ -128,10 +128,12 @@
def unique(g):
"""return the uniq elements of iterable g"""
seen = {}
+ l = []
for f in g:
if f not in seen:
seen[f] = 1
- yield f
+ l.append(f)
+ return l
class Abort(Exception):
"""Raised if a command needs to print an error and exit."""
@@ -985,6 +987,9 @@
f = user.find(' ')
if f >= 0:
user = user[:f]
+ f = user.find('.')
+ if f >= 0:
+ user = user[:f]
return user
def walkrepos(path):