Rev 2250: Add test for bug 300979. in http://people.samba.org/bzr/jelmer/bzr-svn/0.5

Jelmer Vernooij jelmer at samba.org
Mon Dec 8 19:56:19 GMT 2008


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

------------------------------------------------------------
revno: 2250
revision-id: jelmer at samba.org-20081208195616-nq2ieiay16yn8jj9
parent: jelmer at samba.org-20081208195423-xswdw72i0lzobq4o
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.5
timestamp: Mon 2008-12-08 20:56:16 +0100
message:
  Add test for bug 300979.
modified:
  NEWS                           news-20061231030336-h9fhq245ie0de8bs-1
  tests/test_push.py             test_push.py-20070201165715-g2ievcdfqi33wqsy-1
=== modified file 'NEWS'
--- a/NEWS	2008-12-08 17:45:54 +0000
+++ b/NEWS	2008-12-08 19:56:16 +0000
@@ -11,6 +11,9 @@
 
    * Pass utf-8 connect string to sqlite3() connect function. (#262923)
 
+   * Fix pushing to repositories not allowing the setting of revision 
+     properties.
+
 bzr-svn 0.5.0~rc1			2008-12-08
 
   CHANGES

=== modified file 'tests/test_push.py'
--- a/tests/test_push.py	2008-12-08 19:54:23 +0000
+++ b/tests/test_push.py	2008-12-08 19:56:16 +0000
@@ -104,6 +104,22 @@
                 "", 
                 r.get_mapping()) for rev in (c.get_latest_revnum()-1, c.get_latest_revnum())]), 
                 set(revid_map.values()))
+
+    def test_dpush_add(self):
+        wt = self.bzrdir.open_workingtree()
+        self.build_tree({'dc/foo/blal': 'other data'})
+        wt.add(["foo/blal"])
+        newid1 = wt.commit(message="Commit from Bzr")
+        self.build_tree({'dc/foo/bliel': 'yet other data'})
+        wt.add(["foo/bliel"])
+        newid2 = wt.commit(message="Commit from Bzr")
+
+        revid_map = dpush(self.svndir.open_branch(), self.bzrdir.open_branch())
+
+        self.assertEquals(set([newid1, newid2]), set(revid_map.keys()))
+        repos = self.svndir.find_repository()
+        revmeta = repos._revmeta_provider.get_revision("", 3)
+        self.assertEquals(revmeta.get_paths(), {"foo/bliel": ('A', None, -1)})
  
     def test_diverged(self):
         dc = self.commit_editor()




More information about the bazaar-commits mailing list