Rev 72: Implement Branch.get_physical_lock_status. in http://people.samba.org/bzr/jelmer/bzr-git/trunk

Jelmer Vernooij jelmer at samba.org
Sat Jul 26 17:27:46 BST 2008


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

------------------------------------------------------------
revno: 72
revision-id: jelmer at samba.org-20080726155448-51vhp9hty71sc80d
parent: jelmer at samba.org-20080726155048-uhuig15aj5e21u8o
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-07-26 17:54:48 +0200
message:
  Implement Branch.get_physical_lock_status.
modified:
  git_branch.py                  git_branch.py-20071108230535-su8dxk529f4uk9fx-2
  tests/test_git_branch.py       test_git_branch.py-20071108234408-ygidvy5hviixghsd-3
=== modified file 'git_branch.py'
--- a/git_branch.py	2008-07-26 15:48:45 +0000
+++ b/git_branch.py	2008-07-26 15:54:48 +0000
@@ -104,6 +104,9 @@
     def unlock(self):
         self.control_files.unlock()
 
+    def get_physical_lock_status(self):
+        return False
+
     def get_push_location(self):
         """See Branch.get_push_location."""
         push_loc = self.get_config().get_user_option('push_location')

=== modified file 'tests/test_git_branch.py'
--- a/tests/test_git_branch.py	2008-07-26 15:48:45 +0000
+++ b/tests/test_git_branch.py	2008-07-26 15:54:48 +0000
@@ -85,6 +85,9 @@
     def test_get_stacked_on_url(self):
         self.assertIs(None, self.git_branch.get_stacked_on_url())
 
+    def test_get_physical_lock_status(self):
+        self.assertFalse(self.git_branch.get_physical_lock_status())
+
 
 class TestGitBranchFormat(tests.TestCase):
 




More information about the bazaar-commits mailing list