Rev 71: Implement GitRepositoryFormat.get_format_description. in http://people.samba.org/bzr/jelmer/bzr-git/trunk

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


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

------------------------------------------------------------
revno: 71
revision-id: jelmer at samba.org-20080726155048-uhuig15aj5e21u8o
parent: jelmer at samba.org-20080726154845-9rhhan5gds05rf8k
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-07-26 17:50:48 +0200
message:
  Implement GitRepositoryFormat.get_format_description.
modified:
  git_repository.py              git_repository.py-20071108234408-ygidvy5hviixghsd-2
  tests/test_git_repository.py   test_git_repository.-20071108234408-ygidvy5hviixghsd-5
=== modified file 'git_repository.py'
--- a/git_repository.py	2008-07-26 15:37:41 +0000
+++ b/git_repository.py	2008-07-26 15:50:48 +0000
@@ -333,3 +333,6 @@
 class GitFormat(object):
 
     supports_tree_reference = False
+
+    def get_format_description(self):
+        return "Git Repository"

=== modified file 'tests/test_git_repository.py'
--- a/tests/test_git_repository.py	2008-07-26 15:37:41 +0000
+++ b/tests/test_git_repository.py	2008-07-26 15:50:48 +0000
@@ -149,3 +149,12 @@
         self.assertEqual(tree.get_revision_id(), revision.NULL_REVISION)
         self.assertIsNullInventory(tree.inventory)
 
+
+class GitRepositoryFormat(tests.TestCase):
+
+    def setUp(self):
+        super(GitRepositoryFormat, self).setUp()
+        self.format = git_repository.GitFormat()
+
+    def test_get_format_description(self):
+        self.assertEquals("Git Repository", self.format.get_format_description())




More information about the bazaar-commits mailing list