Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/common.py @ 3853:c0b449154a90
switch to the .hg/store layout, fix the tests
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 01 Dec 2006 13:34:09 +0100 |
parents | db9d2a624521 |
children | abaee83ce0a6 |
line wrap: on
line diff
--- a/mercurial/hgweb/common.py Sun Dec 10 00:07:02 2006 +0100 +++ b/mercurial/hgweb/common.py Fri Dec 01 13:34:09 2006 +0100 @@ -10,12 +10,14 @@ import os.path def get_mtime(repo_path): - hg_path = os.path.join(repo_path, ".hg") - cl_path = os.path.join(hg_path, "00changelog.i") - if os.path.exists(os.path.join(cl_path)): + store_path = os.path.join(repo_path, ".hg") + if not os.path.isdir(os.path.join(store_path, "data")): + store_path = os.path.join(store_path, "store") + cl_path = os.path.join(store_path, "00changelog.i") + if os.path.exists(cl_path): return os.stat(cl_path).st_mtime else: - return os.stat(hg_path).st_mtime + return os.stat(store_path).st_mtime def staticfile(directory, fname, req): """return a file inside directory with guessed content-type header