/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tests/test_cache.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-14 13:52:10 UTC
  • mto: (0.200.1571 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20120214135210-r0972vn6u0suttd4
Pass tuples around for cache entries, rather than inventory entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
        updater.add_object(self._get_test_commit(), { "testament3-sha1": "Test" }, None)
96
96
        b = Blob()
97
97
        b.data = "TEH BLOB"
98
 
        ie = InventoryFile("myfileid", "somename", ROOT_ID)
99
 
        ie.revision = "myrevid"
100
 
        updater.add_object(b, ie, None)
 
98
        updater.add_object(b, ("myfileid", "myrevid"), None)
101
99
        updater.finish()
102
100
        self.map.commit_write_group()
103
101
        self.assertEquals(
113
111
            "testament3-sha1": "mytestamentsha" }, None)
114
112
        t = Tree()
115
113
        t.add("somename", stat.S_IFREG, Blob().id)
116
 
        ie = InventoryDirectory("fileid", "myname", ROOT_ID)
117
 
        ie.revision = "irrelevant"
118
 
        updater.add_object(t, ie, "")
 
114
        updater.add_object(t, ("fileid", ), "")
119
115
        updater.finish()
120
116
        self.map.commit_write_group()
121
117
        self.assertEquals([("tree", ("fileid", "myrevid"))],