# HG changeset patch # User Marcin Kuzminski # Date 2013-01-25 01:33:52 # Node ID b17a8090b6d194f79eb6fe9964ac1237932f9c64 # Parent 6f82f8bdd22c7519cf5f7ba399fe35768191d7c8 update repo-info shouldn't allow setting empty values NEVER ! diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -1004,7 +1004,8 @@ class Repository(Base, BaseModel): cs_cache = cs_cache.__json__() if cs_cache != self.changeset_cache: - last_change = cs_cache.get('date') or self.last_change + _default = datetime.datetime.fromtimestamp(0) + last_change = cs_cache.get('date') or self.last_change or _default log.debug('updated repo %s with new cs cache %s' % (self, cs_cache)) self.updated_on = last_change self.changeset_cache = cs_cache