MCPcopy Create free account
hub / github.com/libgit2/pygit2 / pack_delegate

Function pack_delegate

test/test_packbuilder.py:75–79  ·  view source on GitHub ↗
(pb: PackBuilder)

Source from the content-addressed store, hash-verified

73def test_pack_with_delegate(testrepo: Repository, tmp_path: Path) -> None:
74 # loop through all branches and add each commit to the packbuilder
75 def pack_delegate(pb: PackBuilder) -> None:
76 for branch in pb._repo.branches:
77 br = pb._repo.branches.get(branch)
78 for commit in br.log():
79 pb.add_recur(commit.oid_new)
80
81 confirm_same_repo_after_packing(testrepo, tmp_path, pack_delegate)
82

Callers 1

packMethod · 0.85

Calls 2

add_recurMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…