Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb.py @ 1129:ee4f60abad93
Move generating short username to display in hg/hgweb annotate to ui module.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 28 Aug 2005 17:29:28 +0200 |
parents | 457c23af92bd |
children | 1ad52c7679e1 |
line wrap: on
line diff
--- a/mercurial/hgweb.py Sun Aug 28 16:41:16 2005 +0200 +++ b/mercurial/hgweb.py Sun Aug 28 17:29:28 2005 +0200 @@ -507,14 +507,7 @@ name = bcache[r] except KeyError: cl = self.repo.changelog.read(cnode) - name = cl[1] - f = name.find('@') - if f >= 0: - name = name[:f] - f = name.find('<') - if f >= 0: - name = name[f+1:] - bcache[r] = name + bcache[r] = name = self.repo.ui.shortuser(cl[1]) if last != cnode: parity = 1 - parity