Rev 1429: Add test for break-lock. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk

Jelmer Vernooij jelmer at samba.org
Fri Jul 4 05:26:21 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/trunk

------------------------------------------------------------
revno: 1429
revision-id: jelmer at samba.org-20080704042618-6udmjhkb9n0yyueg
parent: jelmer at samba.org-20080704041918-0vmtz5hqjy8kupw5
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2008-07-04 06:26:18 +0200
message:
  Add test for break-lock.
modified:
  remote.py                      format.py-20060406233823-b6fa009fe35dfde7
  tests/test_radir.py            test_radir.py-20061231173434-31utf9o4byu7wktm-1
=== modified file 'remote.py'
--- a/remote.py	2008-07-04 02:49:15 +0000
+++ b/remote.py	2008-07-04 04:26:18 +0000
@@ -67,6 +67,9 @@
             return SvnRepository(self, self.root_transport)
         raise NoSvnRepositoryPresent(self.root_transport.base)
 
+    def break_lock(self):
+        pass
+
     def find_repository(self):
         """Open the repository associated with this BzrDir.
         

=== modified file 'tests/test_radir.py'
--- a/tests/test_radir.py	2008-06-23 02:23:10 +0000
+++ b/tests/test_radir.py	2008-07-04 04:26:18 +0000
@@ -22,7 +22,7 @@
 from bzrlib.errors import (NoRepositoryPresent, NotBranchError, NotLocalUrl,
                            NoWorkingTree, AlreadyBranchError)
 
-from bzrlib.plugins.svn import core
+from bzrlib.plugins.svn import core, ra
 from bzrlib.plugins.svn.format import SvnRemoteFormat
 from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
 from bzrlib.plugins.svn.transport import SvnRaTransport
@@ -38,6 +38,12 @@
         x = self.open_checkout_bzrdir("dc")
         self.assertRaises(NotImplementedError, x.clone, "dir")
 
+    def test_break_lock(self):
+        repos_url = self.make_repository("d")
+
+        x = BzrDir.open(repos_url)
+        x.break_lock()
+
     def test_open_workingtree(self):
         repos_url = self.make_repository("d")
         x = BzrDir.open(repos_url)




More information about the bazaar-commits mailing list