Rev 61: Fix tests. in http://people.samba.org/bzr/jelmer/bzr-git/trunk

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


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

------------------------------------------------------------
revno: 61
revision-id: jelmer at samba.org-20080726135540-sl5ooldrmzwj2uu1
parent: jelmer at samba.org-20080726135326-cl02y329y9f9wqnq
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-07-26 15:55:40 +0200
message:
  Fix tests.
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 13:53:26 +0000
+++ b/git_repository.py	2008-07-26 13:55:40 +0000
@@ -49,6 +49,7 @@
     _serializer = None
 
     def __init__(self, gitdir, lockfiles):
+        self.base = gitdir.root_transport.base
         self.bzrdir = gitdir
         self.control_files = lockfiles
         self._git = git.repo.Repo(gitdir.root_transport.local_abspath("."))

=== modified file 'tests/test_git_repository.py'
--- a/tests/test_git_repository.py	2008-07-26 13:53:26 +0000
+++ b/tests/test_git_repository.py	2008-07-26 13:55:40 +0000
@@ -19,6 +19,7 @@
 import git
 
 from bzrlib import (
+    errors,
     inventory,
     repository,
     revision,
@@ -122,7 +123,7 @@
         self.assertEqual(repo.supports_rich_root(), False)
 
     def test_get_signature_text(self):
-        self.assertRaises(errors.NoSuchRevision, self.git_repo.get_signature_text(revision.NULL_REVISION))
+        self.assertRaises(errors.NoSuchRevision, self.git_repo.get_signature_text, revision.NULL_REVISION)
 
     def test_has_signature_for_revision_id(self):
         self.assertEquals(False, self.git_repo.has_signature_for_revision_id(revision.NULL_REVISION))




More information about the bazaar-commits mailing list