OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from master import build_utils | 5 from master import build_utils |
6 | 6 |
7 from buildbot.changes import svnpoller | 7 from buildbot.changes import svnpoller |
8 | 8 |
9 | 9 |
10 def WebRTCFileSplitter(path): | 10 def WebRTCFileSplitter(path): |
11 """Splits the SVN path into branch and filename sections.""" | 11 """Splits the SVN path into branch and filename sections.""" |
12 | 12 |
13 # List of projects we are interested in. The project names must exactly | 13 # List of projects we are interested in. The project names must exactly |
14 # match paths in the Subversion repository, relative to the 'path' URL | 14 # match paths in the Subversion repository, relative to the 'path' URL |
15 # argument. build_utils.SplitPath() will use them as branch names to | 15 # argument. build_utils.SplitPath() will use them as branch names to |
16 # kick off the Schedulers for different projects. | 16 # kick off the Schedulers for different projects. |
17 projects = ['trunk'] | 17 projects = ['trunk'] |
18 return build_utils.SplitPath(projects, path) | 18 return build_utils.SplitPath(projects, path) |
19 | 19 |
20 | 20 |
21 def Update(config, c): | 21 def Update(config, c): |
22 poller = svnpoller.SVNPoller( | 22 poller = svnpoller.SVNPoller( |
23 svnurl=config.Master.webrtc_url, | 23 svnurl=config.Master.webrtc_url, |
24 split_file=WebRTCFileSplitter, | 24 split_file=WebRTCFileSplitter, |
25 pollinterval=30, | 25 pollinterval=30, |
26 histmax=10, | 26 histmax=10, |
27 revlinktmpl='http://code.google.com/p/webrtc/source/detail?r=%s') | 27 revlinktmpl='http://code.google.com/p/webrtc/source/detail?r=%s') |
28 c['change_source'].append(poller) | 28 c['change_source'].append(poller) |
OLD | NEW |