mercurial/hgweb/common.py
changeset 25717 46e2c57026bc
parent 25660 328739ea70c3
child 26200 461e7b700fdf
--- a/mercurial/hgweb/common.py	Thu Jul 02 23:46:18 2015 -0700
+++ b/mercurial/hgweb/common.py	Fri Jul 03 10:07:51 2015 -0700
@@ -112,8 +112,8 @@
 def statusmessage(code, message=None):
     return '%d %s' % (code, message or _statusmessage(code))
 
-def get_stat(spath, fn="00changelog.i"):
-    """stat fn (00changelog.i by default) if it exists, spath otherwise"""
+def get_stat(spath, fn):
+    """stat fn if it exists, spath otherwise"""
     cl_path = os.path.join(spath, fn)
     if os.path.exists(cl_path):
         return os.stat(cl_path)
@@ -121,7 +121,7 @@
         return os.stat(spath)
 
 def get_mtime(spath):
-    return get_stat(spath).st_mtime
+    return get_stat(spath, "00changelog.i").st_mtime
 
 def staticfile(directory, fname, req):
     """return a file inside directory with guessed Content-Type header