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

Function test_revparse_range_1

test/test_revparse.py:65–69  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

63
64
65def test_revparse_range_1(testrepo: Repository) -> None:
66 s = testrepo.revparse('HEAD^1..acecd5e')
67 assert s.from_object.id == PARENT_SHA
68 assert str(s.to_object.id).startswith('acecd5e')
69 assert s.flags == RevSpecFlag.RANGE
70
71
72def test_revparse_range_2(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…