mercurial/hgweb/common.py
changeset 36781 ffa3026d4196
parent 36648 6585ac350fd9
child 36853 7066617187c1
--- a/mercurial/hgweb/common.py	Mon Mar 05 15:07:32 2018 -0500
+++ b/mercurial/hgweb/common.py	Mon Mar 05 12:30:20 2018 -0500
@@ -12,6 +12,7 @@
 import errno
 import mimetypes
 import os
+import stat
 
 from .. import (
     encoding,
@@ -132,7 +133,7 @@
         return os.stat(spath)
 
 def get_mtime(spath):
-    return get_stat(spath, "00changelog.i").st_mtime
+    return get_stat(spath, "00changelog.i")[stat.ST_MTIME]
 
 def ispathsafe(path):
     """Determine if a path is safe to use for filesystem access."""