Add .client_lock and .client_unlock
authorJelmer Vernooij <jelmer@jelmer.uk>
Sat, 26 May 2018 12:27:35 +0000 (13:27 +0100)
committerJelmer Vernooij <jelmer@jelmer.uk>
Sat, 26 May 2018 12:27:35 +0000 (13:27 +0100)
subvertpy/tests/__init__.py

index 30dfdee256de2ea6fc72992a936b56c605c18ac0..c635b2a03078d6d7eaa2d8f47a9acb85be4249e1 100644 (file)
@@ -305,6 +305,12 @@ class SubversionTestCase(TestCaseInTempDir):
         """Resolve a conflict set on a local path."""
         self.client_ctx.resolve(path, depth, choice)
 
+    def client_lock(self, path, comment="A comment", steal_lock=False):
+        self.client_ctx.lock(path, comment, steal_lock)
+
+    def client_unlock(self, path, steal_lock=False):
+        self.client_ctx.unlock(path, steal_lock)
+
     def client_commit(self, dir, message=None, recursive=True):
         """Commit current changes in specified working copy.