Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgweb_mod.py @ 25717:46e2c57026bc
hgweb: drop the default argument for get_stat
This default argument is used twice and is making things confusing. Making it
explicit helps to clarify coming changesets
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 03 Jul 2015 10:07:51 -0700 |
parents | 328739ea70c3 |
children | 2e32f0897bcf |
comparison
equal
deleted
inserted
replaced
25716:d50677c3bf44 | 25717:46e2c57026bc |
---|---|
118 return repo.filtered(viewconfig) | 118 return repo.filtered(viewconfig) |
119 else: | 119 else: |
120 return repo.filtered('served') | 120 return repo.filtered('served') |
121 | 121 |
122 def refresh(self, request=None): | 122 def refresh(self, request=None): |
123 st = get_stat(self.repo.spath) | 123 st = get_stat(self.repo.spath, '00changelog.i') |
124 pst = get_stat(self.repo.spath, 'phaseroots') | 124 pst = get_stat(self.repo.spath, 'phaseroots') |
125 # changelog mtime and size, phaseroots mtime and size | 125 # changelog mtime and size, phaseroots mtime and size |
126 repostate = ((st.st_mtime, st.st_size), (pst.st_mtime, pst.st_size)) | 126 repostate = ((st.st_mtime, st.st_size), (pst.st_mtime, pst.st_size)) |
127 # we need to compare file size in addition to mtime to catch | 127 # we need to compare file size in addition to mtime to catch |
128 # changes made less than a second ago | 128 # changes made less than a second ago |