Mercurial > kallithea
changeset 3118:56cdbcf0678a beta
made update repoinfo script more failsafe when dealing with database entries not synced with filesystem
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 18 Dec 2012 18:44:33 +0100 |
parents | 0c1c17db467c |
children | 36b18edeca48 |
files | rhodecode/lib/update_repoinfo.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/update_repoinfo.py Tue Dec 18 18:42:06 2012 +0100 +++ b/rhodecode/lib/update_repoinfo.py Tue Dec 18 18:44:33 2012 +0100 @@ -73,7 +73,8 @@ else: repo_list = Repository.getAll() for repo in repo_list: - last_change = repo.scm_instance.last_change + last_change = (repo.scm_instance.last_change if repo.scm_instance + else datetime.datetime.utcfromtimestamp(0)) repo.update_last_change(last_change) def update_parser(self):