##// END OF EJS Templates
changelog: lazy decode user (API)...
Gregory Szorc -
r28307:86de91c5 default
parent child Browse files
Show More
@@ -337,7 +337,7 b' class changelog(revlog.revlog):'
337
337
338 Returns a 6-tuple consisting of the following:
338 Returns a 6-tuple consisting of the following:
339 - manifest node (binary)
339 - manifest node (binary)
340 - user (encoding.localstr)
340 - user (binary)
341 - (time, timezone) 2-tuple of a float and int offset
341 - (time, timezone) 2-tuple of a float and int offset
342 - list of files modified by the cset
342 - list of files modified by the cset
343 - commit message / description (binary)
343 - commit message / description (binary)
@@ -350,7 +350,7 b' class changelog(revlog.revlog):'
350 desc = text[last + 2:]
350 desc = text[last + 2:]
351 l = text[:last].split('\n')
351 l = text[:last].split('\n')
352 manifest = bin(l[0])
352 manifest = bin(l[0])
353 user = encoding.tolocal(l[1])
353 user = l[1]
354
354
355 tdata = l[2].split(' ', 2)
355 tdata = l[2].split(' ', 2)
356 if len(tdata) != 3:
356 if len(tdata) != 3:
@@ -548,7 +548,7 b' class changectx(basectx):'
548 return self._changeset[0]
548 return self._changeset[0]
549
549
550 def user(self):
550 def user(self):
551 return self._changeset[1]
551 return encoding.tolocal(self._changeset[1])
552 def date(self):
552 def date(self):
553 return self._changeset[2]
553 return self._changeset[2]
554 def files(self):
554 def files(self):
General Comments 0
You need to be logged in to leave comments. Login now