##// END OF EJS Templates
Handle transcoding of username and description in changelog
Matt Mackall -
r3771:29d91e57 default
parent child Browse files
Show More
@@ -61,10 +61,10 b' class changelog(revlog):'
61 if not text:
61 if not text:
62 return (nullid, "", (0, 0), [], "", {})
62 return (nullid, "", (0, 0), [], "", {})
63 last = text.index("\n\n")
63 last = text.index("\n\n")
64 desc = text[last + 2:]
64 desc = util.tolocal(text[last + 2:])
65 l = text[:last].split('\n')
65 l = text[:last].split('\n')
66 manifest = bin(l[0])
66 manifest = bin(l[0])
67 user = l[1]
67 user = util.tolocal(l[1])
68
68
69 extra_data = l[2].split(' ', 2)
69 extra_data = l[2].split(' ', 2)
70 if len(extra_data) != 3:
70 if len(extra_data) != 3:
@@ -88,6 +88,8 b' class changelog(revlog):'
88 def add(self, manifest, list, desc, transaction, p1=None, p2=None,
88 def add(self, manifest, list, desc, transaction, p1=None, p2=None,
89 user=None, date=None, extra={}):
89 user=None, date=None, extra={}):
90
90
91 user, desc = util.fromlocal(user), util.fromlocal(desc)
92
91 if date:
93 if date:
92 parseddate = "%d %d" % util.parsedate(date)
94 parseddate = "%d %d" % util.parsedate(date)
93 else:
95 else:
General Comments 0
You need to be logged in to leave comments. Login now