##// END OF EJS Templates
made update repoinfo script more failsafe when dealing with database entries not synced with filesystem
marcink -
r3118:56cdbcf0 beta
parent child Browse files
Show More
@@ -73,7 +73,8 b' class UpdateCommand(BasePasterCommand):'
73 73 else:
74 74 repo_list = Repository.getAll()
75 75 for repo in repo_list:
76 last_change = repo.scm_instance.last_change
76 last_change = (repo.scm_instance.last_change if repo.scm_instance
77 else datetime.datetime.utcfromtimestamp(0))
77 78 repo.update_last_change(last_change)
78 79
79 80 def update_parser(self):
General Comments 0
You need to be logged in to leave comments. Login now