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

Function update_ref1

test/test_transaction.py:150–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 thread2_ref2_locked = threading.Event()
149
150 def update_ref1() -> None:
151 try:
152 with testrepo.transaction() as txn:
153 txn.lock_ref(ref1_name)
154 thread1_ref1_locked.set()
155 thread2_ref2_locked.wait(timeout=5)
156 txn.set_target(ref1_name, target2, message='Thread 1 update')
157 results.append('thread1_success')
158 except Exception as e:
159 errors.append(('thread1', str(e)))
160
161 def update_ref2() -> None:
162 try:

Callers

nothing calls this directly

Calls 3

transactionMethod · 0.80
lock_refMethod · 0.80
set_targetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…