# HG changeset patch # User osimons # Date 1287649956 0 # Node ID e695efec5b2817c26572cb069607d6d524fdbf69 # Parent f320205ca1f94aecf26ab018c2d1f6bba7250453 Fix revision sorting for in-progress builds using `rev_time` instead of `rev` - where `rev` would also fail when using non-Subversion repository. Thanks to the ever elusive 'anonymous' for report and patch. Closes #636. diff --git a/bitten/web_ui.py b/bitten/web_ui.py --- a/bitten/web_ui.py +++ b/bitten/web_ui.py @@ -321,7 +321,7 @@ builds = [] # sort correctly by revision. for build in sorted(in_progress_builds, - cmp=lambda x, y: int(y.rev) - int(x.rev)): + cmp=lambda x, y: int(y.rev_time) - int(x.rev_time)): rev = build.rev build_data = _get_build_data(self.env, req, build) build_data['rev'] = rev