##// END OF EJS Templates
hgweb: fix date bug in hgweb diff generation
mpm@selenic.com -
r1333:901c645c default
parent child Browse files
Show More
@@ -184,9 +184,6 b' class hgweb:'
184 184 self.maxfiles = int(self.repo.ui.config("web", "maxfiles", 10))
185 185 self.allowpull = self.repo.ui.configbool("web", "allowpull", True)
186 186
187 def date(self, t):
188 return util.datestr(t)
189
190 187 def listfiles(self, files, mf):
191 188 for f in files[:self.maxfiles]:
192 189 yield self.t("filenodelink", node=hex(mf[f]), file=f)
@@ -247,8 +244,8 b' class hgweb:'
247 244 change2 = cl.read(node2)
248 245 mmap1 = mf.read(change1[0])
249 246 mmap2 = mf.read(change2[0])
250 date1 = self.date(change1)
251 date2 = self.date(change2)
247 date1 = util.datestr(change1[2])
248 date2 = util.datestr(change2[2])
252 249
253 250 c, a, d, u = r.changes(node1, node2)
254 251 if files:
General Comments 0
You need to be logged in to leave comments. Login now