Fixup for
bug 559964 to make the hook work with python 2.4
--- a/mozhghooks/try_gcc45.py
+++ b/mozhghooks/try_gcc45.py
@@ -55,16 +55,22 @@ def TryParser(message):
help='provide a list of talos tests, or specify all (default is None)')
(options, unknown_args) = parser.parse_known_args(processMessage(message))
options.user_platforms = options.user_platforms.split(',')
return options
+def any(iterable):
+ for element in iterable:
+ if element:
+ return True
+ return False
+
def hook(ui, repo, **kwargs):
name = os.path.basename(repo.root)
if name != "try":
return 0;
options = TryParser(repo.changectx('tip').description())
if options.do_everything or any(p in options.user_platforms for p in ['all', 'linux', 'linux64']):
try: