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
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