def startVC(self, branch, revision, patch):
     """
     * If a branch name starts with /branches/, cut it off before referring
       to it in git commands.
     * If a "git_revision" property is provided in the Change, use it
       instead of the base revision number.
     """
     branch = mungeBranch(branch)
     id = self.getRepository()
     s = self.build.getSourceStamp(id)
     if s.changes:
         latest_properties = s.changes[-1].properties
         if "git_revision" in latest_properties:
             revision = latest_properties["git_revision"]
     return Git.startVC(self, branch, revision, patch)
 def startVC(self, branch, revision, patch):
     """
     * If a branch name starts with /branches/, cut it off before referring
       to it in git commands.
     * If a "git_revision" property is provided in the Change, use it
       instead of the base revision number.
     """
     branch = mungeBranch(branch)
     id = self.getRepository()
     s = self.build.getSourceStamp(id)
     if s.changes:
         latest_properties = s.changes[-1].properties
         if "git_revision" in latest_properties:
             revision = latest_properties["git_revision"]
     return Git.startVC(self, branch, revision, patch)
Example #3
0
    def startVC(self, branch, revision, patch):
        if not isSafeBranch(branch):
            raise ValueError("No building on pull requests.")

        return Git.startVC(self, branch, revision, patch)
Example #4
0
File: git.py Project: rodrigc/braid
    def startVC(self, branch, revision, patch):
        if not isSafeBranch(branch):
            raise ValueError("No building on pull requests.")

        return Git.startVC(self, branch, revision, patch)