# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from buildbot.changes import svnpoller

from master import build_utils

def SyzygyFileSplitter(path):
  """split_file for Syzygy."""
  projects = ['trunk']
  return build_utils.SplitPath(projects, path)

def Update(config, active_master, c):
  syzygy_url = config.Master.syzygy_url
  syzygy_revlinktmpl = config.Master.googlecode_revlinktmpl % ('syzygy', '%s')

  syzygy_poller = svnpoller.SVNPoller(svnurl=syzygy_url,
                                      split_file=SyzygyFileSplitter,
                                      pollinterval=30,
                                      revlinktmpl=syzygy_revlinktmpl)
  c['change_source'].append(syzygy_poller)

# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from buildbot.changes import svnpoller

from master import build_utils

def SyzygyFileSplitter(path):
  """split_file for Syzygy."""
  projects = ['trunk']
  return build_utils.SplitPath(projects, path)

def Update(config, active_master, c):
  syzygy_url = config.Master.syzygy_url
  syzygy_revlinktmpl = config.Master.googlecode_revlinktmpl % ('sawbuck', '%s')

  syzygy_poller = svnpoller.SVNPoller(svnurl=syzygy_url,
                                      split_file=SyzygyFileSplitter,
                                      pollinterval=30,
                                      revlinktmpl=syzygy_revlinktmpl)
  c['change_source'].append(syzygy_poller)

Fix link to revision to use 'sawbuck' rather than 'syzygy'
Fix link to revision to use 'sawbuck' rather than 'syzygy'

Review URL: http://codereview.chromium.org/6992029

git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@86449 0039d316-1c4b-4281-b951-d872f2087c98
