Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgweb_mod.py @ 10078:97c75ad3b1a0
hgweb: Make get_mtime use repository to find store path.
It was calculating it directly, which is redundant and caused
it to break with shared repositories.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 15 Dec 2009 12:33:04 -0800 |
parents | 6f92997dbdca |
children | d6512b3e9ac0 |
comparison
equal
deleted
inserted
replaced
10077:89617aacb495 | 10078:97c75ad3b1a0 |
---|---|
55 untrusted=untrusted) | 55 untrusted=untrusted) |
56 | 56 |
57 def refresh(self, request=None): | 57 def refresh(self, request=None): |
58 if request: | 58 if request: |
59 self.repo.ui.environ = request.env | 59 self.repo.ui.environ = request.env |
60 mtime = get_mtime(self.repo.root) | 60 mtime = get_mtime(self.repo.spath) |
61 if mtime != self.mtime: | 61 if mtime != self.mtime: |
62 self.mtime = mtime | 62 self.mtime = mtime |
63 self.repo = hg.repository(self.repo.ui, self.repo.root) | 63 self.repo = hg.repository(self.repo.ui, self.repo.root) |
64 self.maxchanges = int(self.config("web", "maxchanges", 10)) | 64 self.maxchanges = int(self.config("web", "maxchanges", 10)) |
65 self.stripecount = int(self.config("web", "stripes", 1)) | 65 self.stripecount = int(self.config("web", "stripes", 1)) |