mercurial/hgweb/common.py
branchstable
changeset 22577 a111e460318a
parent 19951 d51c4d85ec23
child 25660 328739ea70c3
--- a/mercurial/hgweb/common.py	Mon Sep 29 16:42:12 2014 -0500
+++ b/mercurial/hgweb/common.py	Sat Sep 27 21:59:55 2014 +0900
@@ -112,9 +112,9 @@
 def statusmessage(code, message=None):
     return '%d %s' % (code, message or _statusmessage(code))
 
-def get_stat(spath):
-    """stat changelog if it exists, spath otherwise"""
-    cl_path = os.path.join(spath, "00changelog.i")
+def get_stat(spath, fn="00changelog.i"):
+    """stat fn (00changelog.i by default) if it exists, spath otherwise"""
+    cl_path = os.path.join(spath, fn)
     if os.path.exists(cl_path):
         return os.stat(cl_path)
     else: