| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from buildbot.changes import svnpoller | |
| 6 | |
| 7 from master import build_utils | |
| 8 | |
| 9 def ChromeTreeFileSplitter(path): | |
| 10 """split_file for the 'src' project in the trunk.""" | |
| 11 | |
| 12 # Exclude .DEPS.git from triggering builds on chrome. | |
| 13 if path == 'src/.DEPS.git': | |
| 14 return None | |
| 15 | |
| 16 # List of projects we are interested in. The project names must exactly | |
| 17 # match paths in the Subversion repository, relative to the 'path' URL | |
| 18 # argument. build_utils.SplitPath() will use them as branch names to | |
| 19 # kick off the Schedulers for different projects. | |
| 20 projects = ['src'] | |
| 21 return build_utils.SplitPath(projects, path) | |
| 22 | |
| 23 def WebkitFileSplitter(path): | |
| 24 """split_file for webkit.org repository.""" | |
| 25 projects = ['trunk'] | |
| 26 return build_utils.SplitPath(projects, path) | |
| 27 | |
| 28 | |
| 29 def Update(config, active_master, c): | |
| 30 # Polls config.Master.trunk_url for changes | |
| 31 chromium_url = "http://src.chromium.org/viewvc/chrome?view=rev&revision=%s" | |
| 32 #webkit_url = "http://trac.webkit.org/changeset/%s" | |
| 33 cr_poller = svnpoller.SVNPoller(svnurl=config.Master.trunk_url, | |
| 34 split_file=ChromeTreeFileSplitter, | |
| 35 pollinterval=30, | |
| 36 revlinktmpl=chromium_url) | |
| 37 c['change_source'].append(cr_poller) | |
| 38 | |
| 39 #webkit_poller = svnpoller.SVNPoller(svnurl = config.Master.webkit_root_url, | |
| 40 # split_file=WebkitFileSplitter, | |
| 41 # pollinterval=30, | |
| 42 # revlinktmpl=webkit_url) | |
| 43 #c['change_source'].append(webkit_poller) | |
| OLD | NEW |