[llvm-commits] [LNT] r155322 - /lnt/trunk/lnt/server/ui/views.py
Daniel Dunbar
daniel at zuster.org
Sun Apr 22 13:28:26 PDT 2012
Author: ddunbar
Date: Sun Apr 22 15:28:26 2012
New Revision: 155322
URL: http://llvm.org/viewvc/llvm-project?rev=155322&view=rev
Log:
lnt.server.ui.views/v4_graph: Don't crash when plotting data with versioned numbers.
- The resulting graphs aren't particularly useful, though.
Modified:
lnt/trunk/lnt/server/ui/views.py
Modified: lnt/trunk/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/views.py?rev=155322&r1=155321&r2=155322&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Sun Apr 22 15:28:26 2012
@@ -932,7 +932,17 @@
(field.status_field.column == None))
# Aggregate by revision.
- data = util.multidict((int(r),v)
+ #
+ # FIXME: For now, we just do something stupid when we encounter release
+ # numbers like '3.0.1' and use convert to 3. This makes the graphs
+ # fairly useless...
+ def convert_revision(r):
+ if r.isdigit():
+ return int(r)
+ else:
+ return int(r.split('.',1)[0])
+ return r
+ data = util.multidict((convert_revision(r),v)
for v,r in q).items()
data.sort()
More information about the llvm-commits
mailing list