diff mercurial/hgweb/hgwebdir_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 5d748045c2ae
children d6512b3e9ac0
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Dec 13 18:29:16 2009 +0100
+++ b/mercurial/hgweb/hgwebdir_mod.py	Tue Dec 15 12:33:04 2009 -0800
@@ -235,7 +235,8 @@
 
                 # update time with local timezone
                 try:
-                    d = (get_mtime(path), util.makedate()[1])
+                    r = hg.repository(self.ui, path)
+                    d = (get_mtime(r.spath), util.makedate()[1])
                 except OSError:
                     continue