Mercurial > hg
comparison mercurial/hgweb/hgweb_mod.py @ 3304:98ec107ce723
hgweb: remove obsolete listfiles function
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 09 Oct 2006 23:46:05 -0500 |
parents | db9d2a624521 |
children | 0708bdb4987a |
comparison
equal
deleted
inserted
replaced
3303:488d3062d225 | 3304:98ec107ce723 |
---|---|
56 def archivelist(self, nodeid): | 56 def archivelist(self, nodeid): |
57 allowed = self.repo.ui.configlist("web", "allow_archive") | 57 allowed = self.repo.ui.configlist("web", "allow_archive") |
58 for i, spec in self.archive_specs.iteritems(): | 58 for i, spec in self.archive_specs.iteritems(): |
59 if i in allowed or self.repo.ui.configbool("web", "allow" + i): | 59 if i in allowed or self.repo.ui.configbool("web", "allow" + i): |
60 yield {"type" : i, "extension" : spec[2], "node" : nodeid} | 60 yield {"type" : i, "extension" : spec[2], "node" : nodeid} |
61 | |
62 def listfiles(self, files, mf): | |
63 for f in files[:self.maxfiles]: | |
64 yield self.t("filenodelink", node=hex(mf[f]), file=f) | |
65 if len(files) > self.maxfiles: | |
66 yield self.t("fileellipses") | |
67 | 61 |
68 def listfilediffs(self, files, changeset): | 62 def listfilediffs(self, files, changeset): |
69 for f in files[:self.maxfiles]: | 63 for f in files[:self.maxfiles]: |
70 yield self.t("filedifflink", node=hex(changeset), file=f) | 64 yield self.t("filedifflink", node=hex(changeset), file=f) |
71 if len(files) > self.maxfiles: | 65 if len(files) > self.maxfiles: |