コード例 #1
0
ファイル: branches.py プロジェクト: Evgenus/yggdrasil
    def on_all_branch_revisions(self, request, bid):
        branch = self.runtime.get_branch(BranchId.from_string(bid))
        if branch is None:
            raise NotFound()
        revisions = list(self.runtime.get_revisions(branch.id))

        result = Record()
        result.revisions = revisions

        return result
コード例 #2
0
    def on_all_branch_revisions(self, request, bid):
        branch = self.runtime.get_branch(BranchId.from_string(bid))
        if branch is None:
            raise NotFound()
        revisions = list(self.runtime.get_revisions(branch.id))

        result = Record()
        result.revisions = revisions

        return result
コード例 #3
0
ファイル: branches.py プロジェクト: Evgenus/yggdrasil
    def on_branch_by_id(self, request, bid):
        branch = self.runtime.get_branch(BranchId.from_string(bid))
        if branch is None:
            raise NotFound()

        result = Record()  
        result.bid = branch.id
        result.revision = branch.revision
        result.wc = branch.wc.id

        return result
コード例 #4
0
    def on_branch_by_id(self, request, bid):
        branch = self.runtime.get_branch(BranchId.from_string(bid))
        if branch is None:
            raise NotFound()

        result = Record()
        result.bid = branch.id
        result.revision = branch.revision
        result.wc = branch.wc.id

        return result