/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 bzrlib/tests/repository_implementations/test_fileid_involved.py

  • Committer: Robert Collins
  • Date: 2007-03-28 22:31:41 UTC
  • mto: (2018.5.116 hpss)
  • mto: This revision was merged to the branch mainline in revision 2383.
  • Revision ID: robertc@robertcollins.net-20070328223141-sfyiqllwuimpvj06
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
class FileIdInvolvedBase(TestCaseWithRepository):
29
29
 
30
30
    def touch(self, tree, filename):
 
31
        # use the trees transport to not depend on the tree's location or type.
31
32
        tree.bzrdir.root_transport.append_bytes(filename, "appended line\n")
32
33
 
33
34
    def compare_tree_fileids(self, branch, old_rev, new_rev):
67
68
 
68
69
        main_wt = self.make_branch_and_tree('main')
69
70
        main_branch = main_wt.branch
70
 
        self.build_tree(["a","b","c"], transport=main_wt.bzrdir.root_transport)
 
71
        self.build_tree(["main/a","main/b","main/c"])
71
72
 
72
73
        main_wt.add(['a', 'b', 'c'], ['a-file-id-2006-01-01-abcd',
73
74
                                 'b-file-id-2006-01-01-defg',
89
90
        bt1 = self.make_branch_and_tree('branch1')
90
91
        bt1.pull(main_branch)
91
92
        b1 = bt1.branch
92
 
        self.build_tree(["d"], transport=bt1.bzrdir.root_transport)
 
93
        self.build_tree(["branch1/d"])
93
94
        bt1.add(['d'], ['file-d'])
94
95
        bt1.commit("branch1, Commit one", rev_id="rev-E")
95
96
 
225
226
    def test_utf8_file_ids_and_revision_ids(self):
226
227
        main_wt = self.make_branch_and_tree('main')
227
228
        main_branch = main_wt.branch
228
 
        self.build_tree(["a"], transport=main_wt.bzrdir.root_transport)
 
229
        self.build_tree(["main/a"])
229
230
 
230
231
        file_id = u'a-f\xedle-id'.encode('utf8')
231
232
        main_wt.add(['a'], [file_id])
255
256
        self.branch = None
256
257
        main_wt = self.make_branch_and_tree('main')
257
258
        main_branch = main_wt.branch
258
 
        self.build_tree(["a","b","c"], transport=main_wt.bzrdir.root_transport)
 
259
        self.build_tree(["main/a","main/b","main/c"])
259
260
 
260
261
        main_wt.add(['a', 'b', 'c'], ['a-file-id-2006-01-01-abcd',
261
262
                                 'b-file-id-2006-01-01-defg',