# HG changeset patch # User cmlenz # Date 1127948040 0 # Node ID 4a9cf87d443f24e146c68be1feffbbe1fb594134 # Parent c7ff953ebb0707d20509d9c16defebad4a61f398 Allow the build queue for a configuration to be limited to a range between `min_rev` and `max_rev`. diff --git a/bitten/queue.py b/bitten/queue.py --- a/bitten/queue.py +++ b/bitten/queue.py @@ -35,6 +35,12 @@ if path != repos.normalize_path(config.path): break + # Stay within the limits of the build config + if config.min_rev and repos.rev_older_than(rev, config.min_rev): + break + if config.max_rev and repos.rev_older_than(config.max_rev, rev): + continue + # Make sure the repository directory isn't empty at this # revision old_node = repos.get_node(path, rev) diff --git a/bitten/trac_ext/templates/bitten_config.cs b/bitten/trac_ext/templates/bitten_config.cs --- a/bitten/trac_ext/templates/bitten_config.cs +++ b/bitten/trac_ext/templates/bitten_config.cs @@ -75,9 +75,16 @@
- | - |
---|