diff mercurial/context.py @ 28307:86de91c56355

changelog: lazy decode user (API) This appears to show a similar speedup as the previous patch.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 27 Feb 2016 22:34:18 -0800
parents 1778770e1982
children 918b64c91e6c
line wrap: on
line diff
--- a/mercurial/context.py	Sat Feb 27 22:25:14 2016 -0800
+++ b/mercurial/context.py	Sat Feb 27 22:34:18 2016 -0800
@@ -548,7 +548,7 @@
         return self._changeset[0]
 
     def user(self):
-        return self._changeset[1]
+        return encoding.tolocal(self._changeset[1])
     def date(self):
         return self._changeset[2]
     def files(self):