diff 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
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Sun Dec 13 18:29:16 2009 +0100
+++ b/mercurial/hgweb/hgweb_mod.py	Tue Dec 15 12:33:04 2009 -0800
@@ -57,7 +57,7 @@
     def refresh(self, request=None):
         if request:
             self.repo.ui.environ = request.env
-        mtime = get_mtime(self.repo.root)
+        mtime = get_mtime(self.repo.spath)
         if mtime != self.mtime:
             self.mtime = mtime
             self.repo = hg.repository(self.repo.ui, self.repo.root)