f.write("modified")
self.client_add("checkout/bla.txt")
context = wc.Context()
+ lock = wc.Lock()
self.assertEqual((False, False), context.locked("checkout"))
- context.add_lock("checkout", ())
+ context.add_lock("checkout", lock)
self.assertEqual((True, True), context.locked("checkout"))
- context.remove_lock("checkout")
+ context.remove_lock("checkout", lock)
def test_add_from_disk(self):
self.make_client("repos", "checkout")
PyModule_AddObject(mod, "Adm", (PyObject *)&Adm_Type);
Py_INCREF(&Adm_Type);
+ PyModule_AddObject(mod, "Lock", (PyObject *)&Lock_Type);
+ Py_INCREF(&Lock_Type);
+
PyModule_AddObject(mod, "CommittedQueue", (PyObject *)&CommittedQueue_Type);
Py_INCREF(&CommittedQueue_Type);