changeset 874:e695efec5b28

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.
author osimons
date Thu, 21 Oct 2010 08:32:36 +0000
parents f320205ca1f9
children a68027e2245d
files bitten/web_ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
Copyright (C) 2012-2017 Edgewall Software