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

Function test_push

test/test_revwalk.py:89–94  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

87
88
89def test_push(testrepo: Repository) -> None:
90 walker = testrepo.walk(log[-1], SortMode.TIME)
91 assert [x.id for x in walker] == log[-1:]
92 walker.reset()
93 walker.push(log[0])
94 assert [x.id for x in walker] == log
95
96
97def test_sort(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…