##// END OF EJS Templates
hgweb: run with "served" filter...
Pierre-Yves David -
r18429:e9ea0f0f default
parent child Browse files
Show More
@@ -59,6 +59,7 b' class hgweb(object):'
59 else:
59 else:
60 self.repo = repo
60 self.repo = repo
61
61
62 self.repo = self.repo.filtered('served')
62 self.repo.ui.setconfig('ui', 'report_untrusted', 'off')
63 self.repo.ui.setconfig('ui', 'report_untrusted', 'off')
63 self.repo.ui.setconfig('ui', 'nontty', 'true')
64 self.repo.ui.setconfig('ui', 'nontty', 'true')
64 hook.redirect(True)
65 hook.redirect(True)
@@ -95,6 +96,7 b' class hgweb(object):'
95 self.mtime = st.st_mtime
96 self.mtime = st.st_mtime
96 self.size = st.st_size
97 self.size = st.st_size
97 self.repo = hg.repository(self.repo.ui, self.repo.root)
98 self.repo = hg.repository(self.repo.ui, self.repo.root)
99 self.repo = self.repo.filtered('served')
98 self.maxchanges = int(self.config("web", "maxchanges", 10))
100 self.maxchanges = int(self.config("web", "maxchanges", 10))
99 self.stripecount = int(self.config("web", "stripes", 1))
101 self.stripecount = int(self.config("web", "stripes", 1))
100 self.maxshortchanges = int(self.config("web", "maxshortchanges",
102 self.maxshortchanges = int(self.config("web", "maxshortchanges",
General Comments 0
You need to be logged in to leave comments. Login now