Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/util.py @ 3568:23f7d9621783
Merge with upstream
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 27 Oct 2006 23:09:46 +0200 |
parents | eda9e7c9300d 4d97184a06ad |
children | 4cfb72bcb978 |
line wrap: on
line diff
--- a/mercurial/util.py +++ b/mercurial/util.py @@ -128,10 +128,12 @@ def binary(s): 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 @@ def shortuser(user): f = user.find(' ') if f >= 0: user = user[:f] + f = user.find('.') + if f >= 0: + user = user[:f] return user def walkrepos(path):