Rev 69: Implement GitBzrDirFormat.get_format_description. in http://people.samba.org/bzr/jelmer/bzr-git/trunk
Jelmer Vernooij
jelmer at samba.org
Sat Jul 26 17:27:44 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-git/trunk
------------------------------------------------------------
revno: 69
revision-id: jelmer at samba.org-20080726154658-lvf11lq3l83v0nt5
parent: jelmer at samba.org-20080726154411-2ddaucz0edsws939
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-07-26 17:46:58 +0200
message:
Implement GitBzrDirFormat.get_format_description.
modified:
git_dir.py git_dir.py-20071108234408-ygidvy5hviixghsd-1
tests/test_git_dir.py test_git_dir.py-20071108234408-ygidvy5hviixghsd-4
=== modified file 'git_dir.py'
--- a/git_dir.py 2008-07-26 13:16:06 +0000
+++ b/git_dir.py 2008-07-26 15:46:58 +0000
@@ -140,5 +140,8 @@
raise errors.bzr_errors.NotBranchError(path=transport.base)
raise errors.bzr_errors.NotBranchError(path=transport.base)
+ def get_format_description(self):
+ return "Local Git Repository"
+
bzrdir.BzrDirFormat.register_control_format(GitBzrDirFormat)
=== modified file 'tests/test_git_dir.py'
--- a/tests/test_git_dir.py 2007-12-26 20:13:49 +0000
+++ b/tests/test_git_dir.py 2008-07-26 15:46:58 +0000
@@ -33,3 +33,17 @@
gd = bzrdir.BzrDir.open('.')
self.assertIsInstance(gd, git_dir.GitDir)
+
+
+class TestGitDirFormat(tests.TestCaseInTempDir):
+
+ _test_needs_features = [tests.GitCommandFeature]
+
+ def setUp(self):
+ super(TestGitDirFormat, self).setUp()
+ self.format = git_dir.GitBzrDirFormat()
+
+ def test_get_format_description(self):
+ self.assertEquals("Local Git Repository",
+ self.format.get_format_description())
+
More information about the bazaar-commits
mailing list