Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 322:a0acae914e95
hgweb: Fix reloading of index
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hgweb: Fix reloading of index
We were reloading every request because we weren't saving the old
mtime.
manifest hash: 507330727957ff53c48b38f427f0b70469a49271
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCreVpywK+sNU5EO8RAp/YAJ9cXh2II4DGAQtRc58yj4hi49C8jgCfT7bV
22w73T2FiYBjzMk8N8STUVI=
=eghX
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Mon, 13 Jun 2005 11:58:33 -0800 |
parents | 35acefbf0ae6 |
children | 27d08c0c2a7e |
comparison
equal
deleted
inserted
replaced
321:73b8a8a059ec | 322:a0acae914e95 |
---|---|
133 } | 133 } |
134 | 134 |
135 def refresh(self): | 135 def refresh(self): |
136 s = os.stat(os.path.join(self.path, ".hg", "00changelog.i")) | 136 s = os.stat(os.path.join(self.path, ".hg", "00changelog.i")) |
137 if s.st_mtime != self.mtime: | 137 if s.st_mtime != self.mtime: |
138 self.mtime = s.st_mtime | |
138 self.repo = repository(ui(), self.path) | 139 self.repo = repository(ui(), self.path) |
139 | 140 |
140 def date(self, cs): | 141 def date(self, cs): |
141 return time.asctime(time.gmtime(float(cs[2].split(' ')[0]))) | 142 return time.asctime(time.gmtime(float(cs[2].split(' ')[0]))) |
142 | 143 |