Mercurial > hg-stable
changeset 1333:901c645c1943
hgweb: fix date bug in hgweb diff generation
author | mpm@selenic.com |
---|---|
date | Fri, 23 Sep 2005 17:08:45 -0700 |
parents | 404484c9628e |
children | 0843e1bf2b97 |
files | mercurial/hgweb.py |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb.py Fri Sep 23 10:32:19 2005 -0700 +++ b/mercurial/hgweb.py Fri Sep 23 17:08:45 2005 -0700 @@ -184,9 +184,6 @@ self.maxfiles = int(self.repo.ui.config("web", "maxfiles", 10)) self.allowpull = self.repo.ui.configbool("web", "allowpull", True) - def date(self, t): - return util.datestr(t) - def listfiles(self, files, mf): for f in files[:self.maxfiles]: yield self.t("filenodelink", node=hex(mf[f]), file=f) @@ -247,8 +244,8 @@ change2 = cl.read(node2) mmap1 = mf.read(change1[0]) mmap2 = mf.read(change2[0]) - date1 = self.date(change1) - date2 = self.date(change2) + date1 = util.datestr(change1[2]) + date2 = util.datestr(change2[2]) c, a, d, u = r.changes(node1, node2) if files: