Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: ppapi/generators/idl_node.py

Issue 7751001: More multi-version support (part 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/generators/idl_namespace.py ('k') | ppapi/generators/test_cgen_range/versions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/idl_node.py
===================================================================
--- ppapi/generators/idl_node.py (revision 98271)
+++ ppapi/generators/idl_node.py (working copy)
@@ -273,6 +273,17 @@
if not label: return None
return label.GetVersion(release)
+ def GetUniqueReleases(self, releases):
+ # Given a list of release, return a subset of releases that change.
+ last_hash = None
+ build_list = []
+ for rel in releases:
+ cur_hash = self.GetHash(rel)
+ if last_hash != cur_hash:
+ build_list.append(rel)
+ last_hash = cur_hash
+ return build_list
+
def SetProperty(self, name, val):
self.property_node.SetProperty(name, val)
« no previous file with comments | « ppapi/generators/idl_namespace.py ('k') | ppapi/generators/test_cgen_range/versions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698