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

Function test_merge_reference

test/test_merge.py:373–379  ·  view source on GitHub ↗
(mergerepo: Repository)

Source from the content-addressed store, hash-verified

371
372
373def test_merge_reference(mergerepo: Repository) -> None:
374 branch = mergerepo.branches.local['branch-conflicts']
375 branch_head_hex = '1b2bae55ac95a4be3f8983b86cd579226d0eb247'
376 mergerepo.merge(branch)
377
378 assert mergerepo.message.startswith("Merge branch 'branch-conflicts'")
379 assert mergerepo.listall_mergeheads() == [pygit2.Oid(hex=branch_head_hex)]

Callers

nothing calls this directly

Calls 1

mergeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…