Rev 466: Fix broken tests. in http://people.samba.org/bzr/jelmer/bzr-svn/bzr.dev

Jelmer Vernooij jelmer at samba.org
Sun May 27 17:35:14 BST 2007


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

------------------------------------------------------------
revno: 466
revision-id: jelmer at samba.org-20070527163512-x5blyfvkewd0pz6d
parent: jelmer at samba.org-20070527161422-yub39px85sn7i44y
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: main
timestamp: Sun 2007-05-27 18:35:12 +0200
message:
  Fix broken tests.
modified:
  repository.py                  repository.py-20060306123302-1f8c5069b3fe0265
  tests/test_repos.py            test_repos.py-20060508151940-ddc49a59257ca712
=== modified file 'repository.py'
--- a/repository.py	2007-05-27 14:52:52 +0000
+++ b/repository.py	2007-05-27 16:35:12 +0000
@@ -459,7 +459,7 @@
             for (branch, revno, exists) in self.find_branches():
                 # Look at their bzr:revision-id-vX
                 revids = self.branchprop_list.get_property(branch, revno, 
-                        SVN_PROP_BZR_REVISION_ID, "")
+                        SVN_PROP_BZR_REVISION_ID, "").splitlines()
 
                 # If there are any new entries that are not yet in the cache, 
                 # add them

=== modified file 'tests/test_repos.py'
--- a/tests/test_repos.py	2007-05-27 14:52:52 +0000
+++ b/tests/test_repos.py	2007-05-27 16:35:12 +0000
@@ -421,7 +421,7 @@
         self.client_commit("dc", "My Message")
         self.build_tree({'dc/foo': "data2"})
         self.client_set_prop("dc", "bzr:revision-id-v%d" % MAPPING_VERSION, 
-                            "myrevid")
+                            "myrevid\n")
         (num, date, author) = self.client_commit("dc", "Second Message")
         repository = Repository.open("svn+%s" % repos_url)
         revid = generate_svn_revision_id(repository.uuid, 2, "")




More information about the bazaar-commits mailing list