diff mercurial/hgweb/webcommands.py @ 6564:ccc2481e3954

webcommands: pass full author to annotate, fix templates (issue 1054)
author Patrick Mezard <pmezard@gmail.com>
date Wed, 23 Apr 2008 22:45:53 +0200
parents 101526031d06
children a51093361e1c
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Wed Apr 23 11:40:33 2008 +0200
+++ b/mercurial/hgweb/webcommands.py	Wed Apr 23 22:45:53 2008 +0200
@@ -464,7 +464,6 @@
             lines = enumerate(fctx.annotate(follow=True, linenumber=True))
         for lineno, ((f, targetline), l) in lines:
             fnode = f.filenode()
-            name = web.repo.ui.shortuser(f.user())
 
             if last != fnode:
                 last = fnode
@@ -472,7 +471,7 @@
             yield {"parity": parity.next(),
                    "node": hex(f.node()),
                    "rev": f.rev(),
-                   "author": name,
+                   "author": f.user(),
                    "file": f.path(),
                    "targetline": targetline,
                    "line": l,