def addChange(self, change):
     """Call Scheduler.addChange only if the branch name (eg. project name
     in your case) is in the repository url"""
     if isinstance(change.branch, basestring):
         if self.repository.endswith(change.branch):
             self.branch = change.branch
             Scheduler.addChange(self, change)
 def addChange(self, change):
     """Call Scheduler.addChange only if the branch name (eg. project name
     in your case) is in the repository url"""
     if isinstance(change.branch, basestring):
         if change.branch in self.repository:
             change.branch = None
             Scheduler.addChange(self, change)
 def addChange(self, change):
     """Call Scheduler.addChange only if the branch name (eg. project name
     in your case) is in the repository url"""
     if 'repository' in change.properties:
         if change.properties['repository'] == self.repository:
             change.branch = None
             Scheduler.addChange(self, change)
 def addChange(self, change):
     """ for some vcs, e.g. git, the default branch cannot be determined
         leading to "ignored off-branch changes" in the log.  this can be
         fixed by explicitly setting a branch, which is made a little
         clearer here """
     if not self.branch:
         log.msg('%s ignoring change due to unknown default branch. '
                 'please set one using `branch = ...`' % self)
     Scheduler.addChange(self, change)
 def addChange(self, change):
     """ the documentation states that setting `branch` to `None` should
         make the scheduler only consider changes on the default branch;
         as there seems to be neither support for determining that default
         branch nor for checking for `None`, this gets fixed by always
         adding the change if `branch` was set to `None` """
     if self.branch is None and change.branch is not None:
         change.branch = None
         Scheduler.addChange(self, change)
 def addChange(self, change):
     if (not hasattr(change, "repo_name") or
         change.repo_name in self.repo_names):
         return Scheduler.addChange(self, change)