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

Function create_transaction

test/test_transaction.py:259–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257 txn: ReferenceTransaction | None = None
258
259 def create_transaction() -> None:
260 nonlocal txn
261 txn = testrepo.transaction().__enter__()
262 ref_name = 'refs/heads/wrong-thread-test'
263 target = Oid(hex='5ebeeebb320790caf276b9fc8b24546d63316533')
264 testrepo.create_reference(ref_name, target)
265 txn.lock_ref(ref_name)
266
267 # Create transaction in thread 1
268 thread = threading.Thread(target=create_transaction)

Callers

nothing calls this directly

Calls 4

transactionMethod · 0.80
create_referenceMethod · 0.80
lock_refMethod · 0.80
__enter__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…