comparison bitten/queue.py @ 883:dfbf2f857a50

Fixed handling of active configurations that points to deleted branches. Configurations and builds can now be checked and displayed even though the repository path cannot be found for last revision. It uses configuration 'last' (`max_rev`) to "close" the configuration. Closes #606. Thanks to falkb for extensive testing.
author osimons
date Fri, 10 Dec 2010 09:23:12 +0000
parents 7c80375d4817
children ed77e3e1c43f
comparison
equal deleted inserted replaced
881:15cf0edad043 883:dfbf2f857a50
47 """ 47 """
48 env = config.env 48 env = config.env
49 if not db: 49 if not db:
50 db = env.get_db_cnx() 50 db = env.get_db_cnx()
51 try: 51 try:
52 node = repos.get_node(config.path) 52 node = repos.get_node(config.path, config.max_rev)
53 except Exception, e: 53 except Exception, e:
54 env.log.warn('Error accessing path %r for configuration %r', 54 env.log.warn('Error accessing path %r for configuration %r',
55 config.path, config.name, exc_info=True) 55 config.path, config.name, exc_info=True)
56 return 56 return
57 57
Copyright (C) 2012-2017 Edgewall Software