Next: BonsaiPoller, Previous: PBChangeSource, Up: Change Sources
P4Source periodically polls a Perforce depot for changes. It accepts the following arguments:
p4base, to a (branch, filename) tuple. The default just returns (None, branchfile), which effectively disables branch support. You should supply a function which understands your repository structure.
This configuration uses the
specified in the buildmaster's environment. It watches a project in which the
branch name is simply the next path component, and the file is all path
from buildbot.changes import p4poller s = p4poller.P4Source(p4base='//depot/project/', split_file=lambda branchfile: branchfile.split('/',1), ) c['change_source'] = s